vga.h 438 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Access to VGA videoram
  3. *
  4. * (c) 1998 Martin Mares <mj@ucw.cz>
  5. */
  6. #ifndef _LINUX_ASM_VGA_H_
  7. #define _LINUX_ASM_VGA_H_
  8. #include <asm/types.h>
  9. #define VT_BUF_HAVE_RW
  10. #undef scr_writew
  11. #undef scr_readw
  12. static inline void scr_writew(u16 val, u16 *addr)
  13. {
  14. BUG_ON((long) addr >= 0);
  15. *addr = val;
  16. }
  17. static inline u16 scr_readw(const u16 *addr)
  18. {
  19. BUG_ON((long) addr >= 0);
  20. return *addr;
  21. }
  22. #define VGA_MAP_MEM(x,s) (x)
  23. #endif