1 // SPDX-License-Identifier: GPL-2.0
3 * ppc64 "iomap" interface implementation.
5 * (C) Copyright 2004 Linus Torvalds
9 #include <linux/export.h>
11 #include <asm/pci-bridge.h>
12 #include <asm/isa-bridge.h>
14 void __iomem *ioport_map(unsigned long port, unsigned int len)
16 return (void __iomem *) (port + _IO_BASE);
18 EXPORT_SYMBOL(ioport_map);
21 void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
23 if (isa_vaddr_is_ioport(addr))
25 if (pcibios_vaddr_is_ioport(addr))
30 EXPORT_SYMBOL(pci_iounmap);
31 #endif /* CONFIG_PCI */