X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc%2Fio.h;h=e1b84f2ddfde3d23e0bc25328324c6933bbda12a;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=a893418be84cf42b2afddeda3d35e003186a5548;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index a893418be..e1b84f2dd 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h @@ -140,27 +140,18 @@ extern __inline__ void name(unsigned int val, unsigned int port) \ : : "r" (val), "r" (port + _IO_BASE)); \ } +__do_in_asm(inb, "lbzx") __do_out_asm(outb, "stbx") #ifdef CONFIG_APUS -__do_in_asm(inb, "lbzx") __do_in_asm(inw, "lhz%U1%X1") __do_in_asm(inl, "lwz%U1%X1") __do_out_asm(outl,"stw%U0%X0") __do_out_asm(outw, "sth%U0%X0") -#elif defined (CONFIG_8260_PCI9) -/* in asm cannot be defined if PCI9 workaround is used */ -#define inb(port) in_8((u8 *)((port)+_IO_BASE)) -#define inw(port) in_le16((u16 *)((port)+_IO_BASE)) -#define inl(port) in_le32((u32 *)((port)+_IO_BASE)) -__do_out_asm(outw, "sthbrx") -__do_out_asm(outl, "stwbrx") #else -__do_in_asm(inb, "lbzx") __do_in_asm(inw, "lhbrx") __do_in_asm(inl, "lwbrx") __do_out_asm(outw, "sthbrx") __do_out_asm(outl, "stwbrx") - #endif #define inb_p(port) inb((port)) @@ -237,7 +228,7 @@ extern inline void * bus_to_virt(unsigned long address) { #ifndef CONFIG_APUS if (address == 0) - return NULL; + return 0; return (void *)(address - PCI_DRAM_OFFSET + KERNELBASE); #else return (void*) mm_ptov (address); @@ -400,9 +391,4 @@ static inline int isa_check_signature(unsigned long io_addr, } #endif /* _PPC_IO_H */ - -#ifdef CONFIG_8260_PCI9 -#include -#endif - #endif /* __KERNEL__ */