summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-iop33x/io.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-02-18 11:31:14 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-02-18 11:31:14 +0000
commit3b0eb4a195a124567cd0dd6f700f8388def542c6 (patch)
treea5302057b2d2bdfb2072cb2ff0df9e1c0990345c /include/asm-arm/arch-iop33x/io.h
parent8213084125eed3c5efbc5e13739b93dfedb88590 (diff)
parent588ef7693574cfbcb228f48d5478c2b39a9b0c9f (diff)
downloadtalos-obmc-linux-3b0eb4a195a124567cd0dd6f700f8388def542c6.tar.gz
talos-obmc-linux-3b0eb4a195a124567cd0dd6f700f8388def542c6.zip
Merge the easy part of the IOP branch
Diffstat (limited to 'include/asm-arm/arch-iop33x/io.h')
-rw-r--r--include/asm-arm/arch-iop33x/io.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-arm/arch-iop33x/io.h b/include/asm-arm/arch-iop33x/io.h
index c017402bab96..1bb5071e1fa8 100644
--- a/include/asm-arm/arch-iop33x/io.h
+++ b/include/asm-arm/arch-iop33x/io.h
@@ -13,9 +13,16 @@
#include <asm/hardware.h>
+extern void __iomem * __ioremap(unsigned long, size_t, unsigned long);
+extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
+ unsigned long flags);
+extern void __iop3xx_iounmap(void __iomem *addr);
+
#define IO_SPACE_LIMIT 0xffffffff
-#define __io(p) ((void __iomem *)(p))
+#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
#define __mem_pci(a) (a)
+#define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f)
+#define __arch_iounmap(a) __iop3xx_iounmap(a)
#endif
OpenPOWER on IntegriCloud