* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / include / asm-sparc64 / vga.h
blobb637522eb768d5200b7e50e3c1de7a8d0c085a62
1 /*
2 * Access to VGA videoram
4 * (c) 1998 Martin Mares <mj@ucw.cz>
5 */
7 #ifndef _LINUX_ASM_VGA_H_
8 #define _LINUX_ASM_VGA_H_
10 #define VT_BUF_HAVE_RW
12 static inline void scr_writew(u16 val, u16 *addr)
14 if ((long) addr < 0)
15 *addr = val;
16 else
17 writew(val, (unsigned long) addr);
20 static inline u16 scr_readw(const u16 *addr)
22 if ((long) addr < 0)
23 return *addr;
24 else
25 return readw((unsigned long) addr);
28 #define VGA_MAP_MEM(x) (x)
30 #endif