[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>
This commit is contained in:
parent
29ef829532
commit
cb4ab59cd6
|
@ -152,20 +152,21 @@ EXPORT_SYMBOL(__raw_bad_addr);
|
||||||
*/
|
*/
|
||||||
void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags)
|
void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags)
|
||||||
{
|
{
|
||||||
|
void *addr;
|
||||||
|
struct vm_struct *area;
|
||||||
|
unsigned long offset, last_addr;
|
||||||
|
|
||||||
#ifdef CONFIG_EISA
|
#ifdef CONFIG_EISA
|
||||||
#error FIXME.
|
|
||||||
unsigned long end = phys_addr + size - 1;
|
unsigned long end = phys_addr + size - 1;
|
||||||
/* Support EISA addresses */
|
/* Support EISA addresses */
|
||||||
if ((phys_addr >= 0x00080000 && end < 0x000fffff)
|
if ((phys_addr >= 0x00080000 && end < 0x000fffff)
|
||||||
|| (phys_addr >= 0x00500000 && end < 0x03bfffff)) {
|
|| (phys_addr >= 0x00500000 && end < 0x03bfffff)) {
|
||||||
phys_addr |= 0xfc000000;
|
phys_addr |= 0xfc000000;
|
||||||
|
#warning "FIXME: EISA regions do not work yet..."
|
||||||
|
return NULL; /* XXX */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void *addr;
|
|
||||||
struct vm_struct *area;
|
|
||||||
unsigned long offset, last_addr;
|
|
||||||
|
|
||||||
/* Don't allow wraparound or zero size */
|
/* Don't allow wraparound or zero size */
|
||||||
last_addr = phys_addr + size - 1;
|
last_addr = phys_addr + size - 1;
|
||||||
if (!size || last_addr < phys_addr)
|
if (!size || last_addr < phys_addr)
|
||||||
|
|
Loading…
Reference in a new issue