Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / include / asm-sparc64 / vga.h
blobb5471211945474a759eef253e318c50d1ae5a39c
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 static inline void scr_writew(u16 val, u16 *addr)
16 if ((long) addr < 0)
17 *addr = val;
18 else
19 writew(val, (unsigned long) addr);
22 static inline u16 scr_readw(const u16 *addr)
24 if ((long) addr < 0)
25 return *addr;
26 else
27 return readw((unsigned long) addr);
30 #define VGA_MAP_MEM(x) (x)
32 #endif