vga.h 436 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_M32R_VGA_H
  3. #define _ASM_M32R_VGA_H
  4. /*
  5. * Access to VGA videoram
  6. *
  7. * (c) 1998 Martin Mares <mj@ucw.cz>
  8. */
  9. /*
  10. * On the PC, we can just recalculate addresses and then
  11. * access the videoram directly without any black magic.
  12. */
  13. #define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)
  14. #define vga_readb(x) (*(x))
  15. #define vga_writeb(x,y) (*(y) = (x))
  16. #endif /* _ASM_M32R_VGA_H */