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