xref: /openbmc/linux/arch/ia64/include/asm/vga.h (revision 4bdc0d67)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
27f30491cSTony Luck /*
37f30491cSTony Luck  *	Access to VGA videoram
47f30491cSTony Luck  *
57f30491cSTony Luck  *	(c) 1998 Martin Mares <mj@ucw.cz>
67f30491cSTony Luck  *	(c) 1999 Asit Mallick <asit.k.mallick@intel.com>
77f30491cSTony Luck  *	(c) 1999 Don Dugger <don.dugger@intel.com>
87f30491cSTony Luck  */
97f30491cSTony Luck 
107f30491cSTony Luck #ifndef __ASM_IA64_VGA_H_
117f30491cSTony Luck #define __ASM_IA64_VGA_H_
127f30491cSTony Luck 
137f30491cSTony Luck /*
147f30491cSTony Luck  * On the PC, we can just recalculate addresses and then access the
157f30491cSTony Luck  * videoram directly without any black magic.
167f30491cSTony Luck  */
177f30491cSTony Luck 
187f30491cSTony Luck extern unsigned long vga_console_iobase;
197f30491cSTony Luck extern unsigned long vga_console_membase;
207f30491cSTony Luck 
214bdc0d67SChristoph Hellwig #define VGA_MAP_MEM(x,s)	((unsigned long) ioremap(vga_console_membase + (x), s))
227f30491cSTony Luck 
237f30491cSTony Luck #define vga_readb(x)	(*(x))
247f30491cSTony Luck #define vga_writeb(x,y)	(*(y) = (x))
257f30491cSTony Luck 
267f30491cSTony Luck #endif /* __ASM_IA64_VGA_H_ */
27