vga.h 649 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Access to VGA videoram
  4. *
  5. * (c) 1998 Martin Mares <[email protected]>
  6. * (c) 1999 Asit Mallick <[email protected]>
  7. * (c) 1999 Don Dugger <[email protected]>
  8. */
  9. #ifndef __ASM_IA64_VGA_H_
  10. #define __ASM_IA64_VGA_H_
  11. /*
  12. * On the PC, we can just recalculate addresses and then access the
  13. * videoram directly without any black magic.
  14. */
  15. extern unsigned long vga_console_iobase;
  16. extern unsigned long vga_console_membase;
  17. #define VGA_MAP_MEM(x,s) ((unsigned long) ioremap(vga_console_membase + (x), s))
  18. #define vga_readb(x) (*(x))
  19. #define vga_writeb(x,y) (*(y) = (x))
  20. #endif /* __ASM_IA64_VGA_H_ */