Andrew Morton | ac50ab3 | 2006-04-10 22:55:47 -0700 | [diff] [blame] | 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 | |
Paul Gortmaker | 187f188 | 2011-11-23 20:12:59 -0500 | [diff] [blame] | 10 | #include <linux/bug.h> |
Andrew Morton | ac50ab3 | 2006-04-10 22:55:47 -0700 | [diff] [blame] | 11 | #include <asm/types.h> |
| 12 | |
| 13 | #define VT_BUF_HAVE_RW |
| 14 | |
| 15 | #undef scr_writew |
| 16 | #undef scr_readw |
| 17 | |
| 18 | static inline void scr_writew(u16 val, u16 *addr) |
| 19 | { |
| 20 | BUG_ON((long) addr >= 0); |
| 21 | |
| 22 | *addr = val; |
| 23 | } |
| 24 | |
| 25 | static inline u16 scr_readw(const u16 *addr) |
| 26 | { |
| 27 | BUG_ON((long) addr >= 0); |
| 28 | |
| 29 | return *addr; |
| 30 | } |
| 31 | |
| 32 | #define VGA_MAP_MEM(x,s) (x) |
| 33 | |
| 34 | #endif |