vga.h 461 B

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