iomap.c 430 B

12345678910111213141516171819202122
  1. /*
  2. * ppc64 "iomap" interface implementation.
  3. *
  4. * (C) Copyright 2004 Linus Torvalds
  5. */
  6. #include <linux/init.h>
  7. #include <linux/pci.h>
  8. #include <linux/mm.h>
  9. #include <linux/export.h>
  10. #include <linux/io.h>
  11. #include <asm/pci-bridge.h>
  12. void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
  13. {
  14. if (isa_vaddr_is_ioport(addr))
  15. return;
  16. if (pcibios_vaddr_is_ioport(addr))
  17. return;
  18. iounmap(addr);
  19. }
  20. EXPORT_SYMBOL(pci_iounmap);