aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@parisc-linux.org>2006-03-23 02:40:10 -0500
committerKyle McMartin <kyle@hera.kernel.org>2006-03-30 12:48:49 -0500
commitcb4ab59cd6136f6ad6b3513054ac969fea02dfc6 (patch)
treeba98f94097906f75f518a696df86ff3c48908edc
parent29ef8295327653ff09a56285c35213cd31fa54b3 (diff)
[PARISC] Temporary FIXME for ioremapping EISA regions
Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
-rw-r--r--arch/parisc/mm/ioremap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/parisc/mm/ioremap.c b/arch/parisc/mm/ioremap.c
index 5a22e1cab217..21a16747e56e 100644
--- a/arch/parisc/mm/ioremap.c
+++ b/arch/parisc/mm/ioremap.c
@@ -152,20 +152,21 @@ EXPORT_SYMBOL(__raw_bad_addr);
152 */ 152 */
153void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) 153void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags)
154{ 154{
155 void *addr;
156 struct vm_struct *area;
157 unsigned long offset, last_addr;
158
155#ifdef CONFIG_EISA 159#ifdef CONFIG_EISA
156 #error FIXME.
157 unsigned long end = phys_addr + size - 1; 160 unsigned long end = phys_addr + size - 1;
158 /* Support EISA addresses */ 161 /* Support EISA addresses */
159 if ((phys_addr >= 0x00080000 && end < 0x000fffff) 162 if ((phys_addr >= 0x00080000 && end < 0x000fffff)
160 || (phys_addr >= 0x00500000 && end < 0x03bfffff)) { 163 || (phys_addr >= 0x00500000 && end < 0x03bfffff)) {
161 phys_addr |= 0xfc000000; 164 phys_addr |= 0xfc000000;
165#warning "FIXME: EISA regions do not work yet..."
166 return NULL; /* XXX */
162 } 167 }
163#endif 168#endif
164 169
165 void *addr;
166 struct vm_struct *area;
167 unsigned long offset, last_addr;
168
169 /* Don't allow wraparound or zero size */ 170 /* Don't allow wraparound or zero size */
170 last_addr = phys_addr + size - 1; 171 last_addr = phys_addr + size - 1;
171 if (!size || last_addr < phys_addr) 172 if (!size || last_addr < phys_addr)