vga.h 548 B

12345678910111213141516171819202122232425
  1. /*
  2. * Access to VGA videoram
  3. *
  4. * (c) 1998 Martin Mares <mj@ucw.cz>
  5. */
  6. #ifndef __ASM_GENERIC_VGA_H
  7. #define __ASM_GENERIC_VGA_H
  8. /*
  9. * On most architectures that support VGA, we can just
  10. * recalculate addresses and then access the videoram
  11. * directly without any black magic.
  12. *
  13. * Everyone else needs to ioremap the address and use
  14. * proper I/O accesses.
  15. */
  16. #ifndef VGA_MAP_MEM
  17. #define VGA_MAP_MEM(x, s) (unsigned long)phys_to_virt(x)
  18. #endif
  19. #define vga_readb(x) (*(x))
  20. #define vga_writeb(x, y) (*(y) = (x))
  21. #endif /* _ASM_GENERIC_VGA_H */