| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
#ifndef _ASM_M68K_VGA_H |
| 3 |
#define _ASM_M68K_VGA_H |
| 4 |
|
| 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 |
| 11 |
|
| 12 |
#include <asm/io.h> |
| 13 |
#include <asm/kmap.h> |
| 14 |
|
| 15 |
/* |
| 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 |
| 20 |
*/ |
| 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_readb |
| 33 |
#define writeb __raw_writeb |
| 34 |
#define writew __raw_writew |
| 35 |
|
| 36 |
#endif /* CONFIG_PCI */ |
| 37 |
#endif /* _ASM_M68K_VGA_H */ |