1 #ifndef _ASM_IA64_VGA_H
2 #define _ASM_IA64_VGA_H
3 
4 /*
5  *	Access to VGA videoram
6  *
7  *	(c) 1998 Martin Mares <mj@ucw.cz>
8  *	(c) 1999 Asit Mallick <asit.k.mallick@intel.com>
9  *	(c) 1999 Don Dugger <don.dugger@intel.com>
10  *	Copyright (C) 2002 Hewlett-Packard Co
11  */
12 /*
13  * 2002/07/19	davidm@hpl.hp.com	Access frame-buffer memory via readX/writeX.
14  */
15 
16 #include <asm/io.h>
17 
18 #define VT_BUF_HAVE_RW
19 
20 #define VGA_MAP_MEM(x)	((unsigned long) ioremap((x), 0))
21 
22 #define vga_readb	__raw_readb
23 #define vga_writeb	__raw_writeb
24 
25 extern inline void
scr_writew(u16 val,volatile u16 * addr)26 scr_writew (u16 val, volatile u16 *addr)
27 {
28 	/* Note: ADDR may point to normal memory.  That's OK on ia64.  */
29 	__raw_writew(val, (unsigned long) addr);
30 }
31 
32 extern inline u16
scr_readw(volatile const u16 * addr)33 scr_readw (volatile const u16 *addr)
34 {
35 	/* Note: ADDR may point to normal memory.  That's OK on ia64.  */
36 	return __raw_readw((unsigned long) addr);
37 }
38 
39 #endif /* _ASM_IA64_VGA_H */
40