diff options
Diffstat (limited to 'arch/arm/mach-ixp4xx/include/mach/io.h')
| -rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/io.h | 29 | 
1 files changed, 3 insertions, 26 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/io.h b/arch/arm/mach-ixp4xx/include/mach/io.h index de274a1f19d..559c69a4773 100644 --- a/arch/arm/mach-ixp4xx/include/mach/io.h +++ b/arch/arm/mach-ixp4xx/include/mach/io.h @@ -17,8 +17,6 @@  #include <mach/hardware.h> -#define IO_SPACE_LIMIT 0x0000ffff -  extern int (*ixp4xx_pci_read)(u32 addr, u32 cmd, u32* data);  extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data); @@ -41,11 +39,7 @@ extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data);   *    but in some cases the performance hit is acceptable. In addition, you   *    cannot mmap() PCI devices in this case.   */ -#ifndef	CONFIG_IXP4XX_INDIRECT_PCI - -#define __mem_pci(a)		(a) - -#else +#ifdef	CONFIG_IXP4XX_INDIRECT_PCI  /*   * In the case of using indirect PCI, we simply return the actual PCI @@ -54,29 +48,12 @@ extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data);   * fallback to the default.   */ +extern unsigned long pcibios_min_mem;  static inline int is_pci_memory(u32 addr)  { -	return (addr >= PCIBIOS_MIN_MEM) && (addr <= 0x4FFFFFFF); -} - -static inline void __iomem * __indirect_ioremap(unsigned long addr, size_t size, -						unsigned int mtype) -{ -	if (!is_pci_memory(addr)) -		return __arm_ioremap(addr, size, mtype); - -	return (void __iomem *)addr; +	return (addr >= pcibios_min_mem) && (addr <= 0x4FFFFFFF);  } -static inline void __indirect_iounmap(void __iomem *addr) -{ -	if (!is_pci_memory((__force u32)addr)) -		__iounmap(addr); -} - -#define __arch_ioremap(a, s, f)		__indirect_ioremap(a, s, f) -#define __arch_iounmap(a)		__indirect_iounmap(a) -  #define writeb(v, p)			__indirect_writeb(v, p)  #define writew(v, p)			__indirect_writew(v, p)  #define writel(v, p)			__indirect_writel(v, p)  | 
