ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-sparc64 / vga.h
1 /*
2  *      Access to VGA videoram
3  *
4  *      (c) 1998 Martin Mares <mj@ucw.cz>
5  */
6
7 #ifndef _LINUX_ASM_VGA_H_
8 #define _LINUX_ASM_VGA_H_
9
10 #include <asm/types.h>
11
12 #define VT_BUF_HAVE_RW
13
14 static inline void scr_writew(u16 val, u16 *addr)
15 {
16         BUG_ON((long) addr >= 0);
17
18         *addr = val;
19 }
20
21 static inline u16 scr_readw(const u16 *addr)
22 {
23         BUG_ON((long) addr >= 0);
24
25         return *addr;
26 }
27
28 #define VGA_MAP_MEM(x) (x)
29
30 #endif