diff options
Diffstat (limited to 'arch/mips/include/asm/io.h')
-rw-r--r-- | arch/mips/include/asm/io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index b7e59853fd33..3321dd5a8872 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h | |||
@@ -170,6 +170,11 @@ static inline void * isa_bus_to_virt(unsigned long address) | |||
170 | extern void __iomem * __ioremap(phys_t offset, phys_t size, unsigned long flags); | 170 | extern void __iomem * __ioremap(phys_t offset, phys_t size, unsigned long flags); |
171 | extern void __iounmap(const volatile void __iomem *addr); | 171 | extern void __iounmap(const volatile void __iomem *addr); |
172 | 172 | ||
173 | #ifndef CONFIG_PCI | ||
174 | struct pci_dev; | ||
175 | static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr) {} | ||
176 | #endif | ||
177 | |||
173 | static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, | 178 | static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, |
174 | unsigned long flags) | 179 | unsigned long flags) |
175 | { | 180 | { |
@@ -449,6 +454,11 @@ __BUILDIO(q, u64) | |||
449 | #define readl_relaxed readl | 454 | #define readl_relaxed readl |
450 | #define readq_relaxed readq | 455 | #define readq_relaxed readq |
451 | 456 | ||
457 | #define writeb_relaxed writeb | ||
458 | #define writew_relaxed writew | ||
459 | #define writel_relaxed writel | ||
460 | #define writeq_relaxed writeq | ||
461 | |||
452 | #define readb_be(addr) \ | 462 | #define readb_be(addr) \ |
453 | __raw_readb((__force unsigned *)(addr)) | 463 | __raw_readb((__force unsigned *)(addr)) |
454 | #define readw_be(addr) \ | 464 | #define readw_be(addr) \ |