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