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