xref: /openbmc/linux/arch/sparc/lib/iomap.c (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0
2749805dcSDavid S. Miller /*
3749805dcSDavid S. Miller  * Implement the sparc iomap interfaces
4749805dcSDavid S. Miller  */
5749805dcSDavid S. Miller #include <linux/pci.h>
6749805dcSDavid S. Miller #include <linux/module.h>
7749805dcSDavid S. Miller #include <asm/io.h>
8749805dcSDavid S. Miller 
9749805dcSDavid S. Miller /* Create a virtual mapping cookie for an IO port range */
ioport_map(unsigned long port,unsigned int nr)10749805dcSDavid S. Miller void __iomem *ioport_map(unsigned long port, unsigned int nr)
11749805dcSDavid S. Miller {
12749805dcSDavid S. Miller 	return (void __iomem *) (unsigned long) port;
13749805dcSDavid S. Miller }
14749805dcSDavid S. Miller 
ioport_unmap(void __iomem * addr)15749805dcSDavid S. Miller void ioport_unmap(void __iomem *addr)
16749805dcSDavid S. Miller {
17749805dcSDavid S. Miller 	/* Nothing to do */
18749805dcSDavid S. Miller }
19749805dcSDavid S. Miller EXPORT_SYMBOL(ioport_map);
20749805dcSDavid S. Miller EXPORT_SYMBOL(ioport_unmap);
21749805dcSDavid S. Miller 
22*d8b1e10aSLinus Torvalds #ifdef CONFIG_PCI
pci_iounmap(struct pci_dev * dev,void __iomem * addr)23749805dcSDavid S. Miller void pci_iounmap(struct pci_dev *dev, void __iomem * addr)
24749805dcSDavid S. Miller {
25749805dcSDavid S. Miller 	/* nothing to do */
26749805dcSDavid S. Miller }
27749805dcSDavid S. Miller EXPORT_SYMBOL(pci_iounmap);
28*d8b1e10aSLinus Torvalds #endif
29