X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-m68k%2Fio.h;h=c963b138a142bb4e2306059a11722cc9e4f385b8;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=d32a489f4800fcbaff3bac59eac9d4eb3d447051;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-m68k/io.h b/include/asm-m68k/io.h index d32a489f4..c963b138a 100644 --- a/include/asm-m68k/io.h +++ b/include/asm-m68k/io.h @@ -306,6 +306,25 @@ static inline void isa_delay(void) #endif #endif /* CONFIG_PCI */ +#if !defined(CONFIG_ISA) && !defined(CONFIG_PCI) && defined(CONFIG_HP300) +/* + * We need to define dummy functions otherwise drivers/serial/8250.c doesn't link + */ +#define inb(port) 0xff +#define inb_p(port) 0xff +#define outb(val,port) do { } while (0) +#define outb_p(val,port) do { } while (0) + +/* + * These should be valid on any ioremap()ed region + */ +#define readb(addr) in_8(addr) +#define writeb(val,addr) out_8((addr),(val)) +#define readl(addr) in_le32(addr) +#define writel(val,addr) out_le32((addr),(val)) +#endif + +#define mmiowb() static inline void *ioremap(unsigned long physaddr, unsigned long size) {