diff options
Diffstat (limited to 'arch/parisc/lib/iomap.c')
-rw-r--r-- | arch/parisc/lib/iomap.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/parisc/lib/iomap.c b/arch/parisc/lib/iomap.c index 8f470c93b16d..fb8e10a4fb39 100644 --- a/arch/parisc/lib/iomap.c +++ b/arch/parisc/lib/iomap.c | |||
@@ -436,28 +436,6 @@ void ioport_unmap(void __iomem *addr) | |||
436 | } | 436 | } |
437 | } | 437 | } |
438 | 438 | ||
439 | /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ | ||
440 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) | ||
441 | { | ||
442 | resource_size_t start = pci_resource_start(dev, bar); | ||
443 | resource_size_t len = pci_resource_len(dev, bar); | ||
444 | unsigned long flags = pci_resource_flags(dev, bar); | ||
445 | |||
446 | if (!len || !start) | ||
447 | return NULL; | ||
448 | if (maxlen && len > maxlen) | ||
449 | len = maxlen; | ||
450 | if (flags & IORESOURCE_IO) | ||
451 | return ioport_map(start, len); | ||
452 | if (flags & IORESOURCE_MEM) { | ||
453 | if (flags & IORESOURCE_CACHEABLE) | ||
454 | return ioremap(start, len); | ||
455 | return ioremap_nocache(start, len); | ||
456 | } | ||
457 | /* What? */ | ||
458 | return NULL; | ||
459 | } | ||
460 | |||
461 | void pci_iounmap(struct pci_dev *dev, void __iomem * addr) | 439 | void pci_iounmap(struct pci_dev *dev, void __iomem * addr) |
462 | { | 440 | { |
463 | if (!INDIRECT_ADDR(addr)) { | 441 | if (!INDIRECT_ADDR(addr)) { |
@@ -483,5 +461,4 @@ EXPORT_SYMBOL(iowrite16_rep); | |||
483 | EXPORT_SYMBOL(iowrite32_rep); | 461 | EXPORT_SYMBOL(iowrite32_rep); |
484 | EXPORT_SYMBOL(ioport_map); | 462 | EXPORT_SYMBOL(ioport_map); |
485 | EXPORT_SYMBOL(ioport_unmap); | 463 | EXPORT_SYMBOL(ioport_unmap); |
486 | EXPORT_SYMBOL(pci_iomap); | ||
487 | EXPORT_SYMBOL(pci_iounmap); | 464 | EXPORT_SYMBOL(pci_iounmap); |