Author: blueswirl Date: 2009-01-13 18:40:00 +0100 (Tue, 13 Jan 2009) New Revision: 401
Modified: openbios-devel/include/ppc/io.h Log: Fix native compilation (Aurelien Jarno)
Modified: openbios-devel/include/ppc/io.h =================================================================== --- openbios-devel/include/ppc/io.h 2009-01-13 16:42:29 UTC (rev 400) +++ openbios-devel/include/ppc/io.h 2009-01-13 17:40:00 UTC (rev 401) @@ -141,6 +141,23 @@ ns--; } } +#else /* BOOTSTRAP */ +#ifdef FCOMPILER +#define inb(reg) ((u8)0xff) +#define inw(reg) ((u16)0xffff) +#define inl(reg) ((u32)0xffffffff) +#define outb(reg, val) do{} while(0) +#define outw(reg, val) do{} while(0) +#define outl(reg, val) do{} while(0) +#else +extern u8 inb(u32 reg); +extern u16 inw(u32 reg); +extern u32 inl(u32 reg); +extern void insw(u32 reg, void *addr, unsigned long count); +extern void outb(u32 reg, u8 val); +extern void outw(u32 reg, u16 val); +extern void outl(u32 reg, u32 val); +extern void outsw(u32 reg, const void *addr, unsigned long count); #endif - +#endif #endif /* _ASM_IO_H */