Linux-2.3.3 and a short hiatus..
[davej-history.git] / include / asm-alpha / vga.h
blob7e66f50d3664017da7e9f4b343e9b61793103030
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/io.h>
12 #define VT_BUF_HAVE_RW
13 #define VT_BUF_HAVE_MEMSETW
14 #define VT_BUF_HAVE_MEMCPYF
16 extern inline void scr_writew(u16 val, u16 *addr)
18 if ((long) addr < 0)
19 *addr = val;
20 else
21 writew(val, (unsigned long) addr);
24 extern inline u16 scr_readw(const u16 *addr)
26 if ((long) addr < 0)
27 return *addr;
28 else
29 return readw((unsigned long) addr);
32 extern inline void scr_memsetw(u16 *s, u16 c, unsigned int count)
34 if ((long)s < 0)
35 memsetw(s, c, count);
36 else
37 memsetw_io(s, c, count);
40 extern inline void scr_memcpyw_from(u16 *d, const u16 *s, unsigned int count)
42 memcpy_fromio(d, s, count);
45 extern inline void scr_memcpyw_to(u16 *d, const u16 *s, unsigned int count)
47 memcpy_toio(d, s, count);
51 #define vga_readb readb
52 #define vga_writeb writeb
54 #define VGA_MAP_MEM(x) (x)
56 #endif