diff options
| -rw-r--r-- | arch/arm/include/asm/io.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index d66605dea55a..ffb089d46a17 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h | |||
| @@ -110,6 +110,27 @@ static inline void __iomem *__typesafe_io(unsigned long addr) | |||
| 110 | #include <mach/io.h> | 110 | #include <mach/io.h> |
| 111 | 111 | ||
| 112 | /* | 112 | /* |
| 113 | * This is the limit of PC card/PCI/ISA IO space, which is by default | ||
| 114 | * 64K if we have PC card, PCI or ISA support. Otherwise, default to | ||
| 115 | * zero to prevent ISA/PCI drivers claiming IO space (and potentially | ||
| 116 | * oopsing.) | ||
| 117 | * | ||
| 118 | * Only set this larger if you really need inb() et.al. to operate over | ||
| 119 | * a larger address space. Note that SOC_COMMON ioremaps each sockets | ||
| 120 | * IO space area, and so inb() et.al. must be defined to operate as per | ||
| 121 | * readb() et.al. on such platforms. | ||
| 122 | */ | ||
| 123 | #ifndef IO_SPACE_LIMIT | ||
| 124 | #if defined(CONFIG_PCMCIA_SOC_COMMON) || defined(CONFIG_PCMCIA_SOC_COMMON_MODULE) | ||
| 125 | #define IO_SPACE_LIMIT ((resource_size_t)0xffffffff) | ||
| 126 | #elif defined(CONFIG_PCI) || defined(CONFIG_ISA) || defined(CONFIG_PCCARD) | ||
| 127 | #define IO_SPACE_LIMIT ((resource_size_t)0xffff) | ||
| 128 | #else | ||
| 129 | #define IO_SPACE_LIMIT ((resource_size_t)0) | ||
| 130 | #endif | ||
| 131 | #endif | ||
| 132 | |||
| 133 | /* | ||
| 113 | * IO port access primitives | 134 | * IO port access primitives |
| 114 | * ------------------------- | 135 | * ------------------------- |
| 115 | * | 136 | * |
