vga.h 894 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_M68K_VGA_H
  3. #define _ASM_M68K_VGA_H
  4. /*
  5. * Some ColdFire platforms do in fact have a PCI bus. So for those we want
  6. * to use the real IO access functions, don't fake them out or redirect them
  7. * for that case.
  8. */
  9. #ifndef CONFIG_PCI
  10. #include <asm/raw_io.h>
  11. #include <asm/kmap.h>
  12. /*
  13. * FIXME
  14. * Ugh, we don't have PCI space, so map readb() and friends to use raw I/O
  15. * accessors, which are identical to the z_*() Zorro bus accessors.
  16. * This should make cirrusfb work again on Amiga
  17. */
  18. #undef inb_p
  19. #undef inw_p
  20. #undef outb_p
  21. #undef outw
  22. #undef readb
  23. #undef writeb
  24. #undef writew
  25. #define inb_p(port) 0
  26. #define inw_p(port) 0
  27. #define outb_p(port, val) do { } while (0)
  28. #define outw(port, val) do { } while (0)
  29. #define readb raw_inb
  30. #define writeb raw_outb
  31. #define writew raw_outw
  32. #endif /* CONFIG_PCI */
  33. #endif /* _ASM_M68K_VGA_H */