18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_M68K_VGA_H 38c2ecf20Sopenharmony_ci#define _ASM_M68K_VGA_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * Some ColdFire platforms do in fact have a PCI bus. So for those we want 78c2ecf20Sopenharmony_ci * to use the real IO access functions, don't fake them out or redirect them 88c2ecf20Sopenharmony_ci * for that case. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef CONFIG_PCI 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include <asm/raw_io.h> 138c2ecf20Sopenharmony_ci#include <asm/kmap.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* 168c2ecf20Sopenharmony_ci * FIXME 178c2ecf20Sopenharmony_ci * Ugh, we don't have PCI space, so map readb() and friends to use raw I/O 188c2ecf20Sopenharmony_ci * accessors, which are identical to the z_*() Zorro bus accessors. 198c2ecf20Sopenharmony_ci * This should make cirrusfb work again on Amiga 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_ci#undef inb_p 228c2ecf20Sopenharmony_ci#undef inw_p 238c2ecf20Sopenharmony_ci#undef outb_p 248c2ecf20Sopenharmony_ci#undef outw 258c2ecf20Sopenharmony_ci#undef readb 268c2ecf20Sopenharmony_ci#undef writeb 278c2ecf20Sopenharmony_ci#undef writew 288c2ecf20Sopenharmony_ci#define inb_p(port) 0 298c2ecf20Sopenharmony_ci#define inw_p(port) 0 308c2ecf20Sopenharmony_ci#define outb_p(port, val) do { } while (0) 318c2ecf20Sopenharmony_ci#define outw(port, val) do { } while (0) 328c2ecf20Sopenharmony_ci#define readb raw_inb 338c2ecf20Sopenharmony_ci#define writeb raw_outb 348c2ecf20Sopenharmony_ci#define writew raw_outw 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#endif /* CONFIG_PCI */ 378c2ecf20Sopenharmony_ci#endif /* _ASM_M68K_VGA_H */ 38