[PATCH] dpt_i2o fix for deadlock condition
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-sparc64 / vga.h
blob9c57eb363b40466582d127da68f0025bac7c380f
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 #include <asm/types.h>
12 #define VT_BUF_HAVE_RW
14 #undef scr_writew
15 #undef scr_readw
17 static inline void scr_writew(u16 val, u16 *addr)
19 BUG_ON((long) addr >= 0);
21 *addr = val;
24 static inline u16 scr_readw(const u16 *addr)
26 BUG_ON((long) addr >= 0);
28 return *addr;
31 #define VGA_MAP_MEM(x) (x)
33 #endif