diff options
Diffstat (limited to 'include/asm-arm/io.h')
-rw-r--r-- | include/asm-arm/io.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-arm/io.h b/include/asm-arm/io.h index 08a46302d265..cfa71a0dffb6 100644 --- a/include/asm-arm/io.h +++ b/include/asm-arm/io.h | |||
@@ -82,7 +82,7 @@ extern void __readwrite_bug(const char *fn); | |||
82 | * only. Their primary purpose is to access PCI and ISA peripherals. | 82 | * only. Their primary purpose is to access PCI and ISA peripherals. |
83 | * | 83 | * |
84 | * Note that for a big endian machine, this implies that the following | 84 | * Note that for a big endian machine, this implies that the following |
85 | * big endian mode connectivity is in place, as described by numerious | 85 | * big endian mode connectivity is in place, as described by numerous |
86 | * ARM documents: | 86 | * ARM documents: |
87 | * | 87 | * |
88 | * PCI: D0-D7 D8-D15 D16-D23 D24-D31 | 88 | * PCI: D0-D7 D8-D15 D16-D23 D24-D31 |
@@ -275,6 +275,7 @@ extern void __iounmap(void __iomem *addr); | |||
275 | /* | 275 | /* |
276 | * io{read,write}{8,16,32} macros | 276 | * io{read,write}{8,16,32} macros |
277 | */ | 277 | */ |
278 | #ifndef ioread8 | ||
278 | #define ioread8(p) ({ unsigned int __v = __raw_readb(p); __v; }) | 279 | #define ioread8(p) ({ unsigned int __v = __raw_readb(p); __v; }) |
279 | #define ioread16(p) ({ unsigned int __v = le16_to_cpu(__raw_readw(p)); __v; }) | 280 | #define ioread16(p) ({ unsigned int __v = le16_to_cpu(__raw_readw(p)); __v; }) |
280 | #define ioread32(p) ({ unsigned int __v = le32_to_cpu(__raw_readl(p)); __v; }) | 281 | #define ioread32(p) ({ unsigned int __v = le32_to_cpu(__raw_readl(p)); __v; }) |
@@ -293,6 +294,7 @@ extern void __iounmap(void __iomem *addr); | |||
293 | 294 | ||
294 | extern void __iomem *ioport_map(unsigned long port, unsigned int nr); | 295 | extern void __iomem *ioport_map(unsigned long port, unsigned int nr); |
295 | extern void ioport_unmap(void __iomem *addr); | 296 | extern void ioport_unmap(void __iomem *addr); |
297 | #endif | ||
296 | 298 | ||
297 | struct pci_dev; | 299 | struct pci_dev; |
298 | 300 | ||