1 #ifndef __ASM_MACH_BMIPS_IOREMAP_H
2 #define __ASM_MACH_BMIPS_IOREMAP_H
4 #include <linux/types.h>
6 static inline phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
11 static inline int is_bmips_internal_registers(phys_addr_t offset)
13 if (offset >= 0xfff80000)
19 static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size,
22 if (is_bmips_internal_registers(offset))
23 return (void __iomem *)offset;
28 static inline int plat_iounmap(const volatile void __iomem *addr)
30 return is_bmips_internal_registers((unsigned long)addr);
33 #endif /* __ASM_MACH_BMIPS_IOREMAP_H */