vga.h 612 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_M68K_VGA_H
  2. #define _ASM_M68K_VGA_H
  3. #include <asm/raw_io.h>
  4. /*
  5. * FIXME
  6. * Ugh, we don't have PCI space, so map readb() and friends to use raw I/O
  7. * accessors, which are identical to the z_*() Zorro bus accessors.
  8. * This should make cirrusfb work again on Amiga
  9. */
  10. #undef inb_p
  11. #undef inw_p
  12. #undef outb_p
  13. #undef outw
  14. #undef readb
  15. #undef writeb
  16. #undef writew
  17. #define inb_p(port) 0
  18. #define inw_p(port) 0
  19. #define outb_p(port, val) do { } while (0)
  20. #define outw(port, val) do { } while (0)
  21. #define readb raw_inb
  22. #define writeb raw_outb
  23. #define writew raw_outw
  24. #endif /* _ASM_M68K_VGA_H */