xref: /openbmc/linux/arch/microblaze/pci/iomap.c (revision 8730046c)
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 
13 void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
14 {
15 	if (isa_vaddr_is_ioport(addr))
16 		return;
17 	if (pcibios_vaddr_is_ioport(addr))
18 		return;
19 	iounmap(addr);
20 }
21 EXPORT_SYMBOL(pci_iounmap);
22