diff options
author | Dan Williams <dan.j.williams@intel.com> | 2006-12-28 19:30:24 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-12-30 12:05:08 -0500 |
commit | b0b1d60a64054697ef828e0565f006cc0f823590 (patch) | |
tree | 3ca024704b8f7967d460f954db68f0aaadaf7d25 /include/asm-arm | |
parent | 4cc2f7a84d64d25a16bb9383148c1467284e2356 (diff) |
[ARM] 4077/1: iop13xx: fix __io() macro
Since iop13xx defines the PCI I/O spaces with physical resource addresses
the __io macro needs to perform the physical to virtual conversion. I
incorrectly assumed that this would be handled by ioremap, but drivers
(like e1000) directly dereference the address returned from __io.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/arch-iop13xx/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-arm/arch-iop13xx/io.h b/include/asm-arm/arch-iop13xx/io.h index db6de2480a24..5a7bdb526606 100644 --- a/include/asm-arm/arch-iop13xx/io.h +++ b/include/asm-arm/arch-iop13xx/io.h | |||
@@ -21,10 +21,11 @@ | |||
21 | 21 | ||
22 | #define IO_SPACE_LIMIT 0xffffffff | 22 | #define IO_SPACE_LIMIT 0xffffffff |
23 | 23 | ||
24 | #define __io(a) (a) | 24 | #define __io(a) __iop13xx_io(a) |
25 | #define __mem_pci(a) (a) | 25 | #define __mem_pci(a) (a) |
26 | #define __mem_isa(a) (a) | 26 | #define __mem_isa(a) (a) |
27 | 27 | ||
28 | extern void __iomem * __iop13xx_io(unsigned long io_addr); | ||
28 | extern void __iomem * __ioremap(unsigned long, size_t, unsigned long); | 29 | extern void __iomem * __ioremap(unsigned long, size_t, unsigned long); |
29 | extern void __iomem *__iop13xx_ioremap(unsigned long cookie, size_t size, | 30 | extern void __iomem *__iop13xx_ioremap(unsigned long cookie, size_t size, |
30 | unsigned long flags); | 31 | unsigned long flags); |