18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Implement the sparc iomap interfaces 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci#include <linux/pci.h> 68c2ecf20Sopenharmony_ci#include <linux/module.h> 78c2ecf20Sopenharmony_ci#include <asm/io.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* Create a virtual mapping cookie for an IO port range */ 108c2ecf20Sopenharmony_civoid __iomem *ioport_map(unsigned long port, unsigned int nr) 118c2ecf20Sopenharmony_ci{ 128c2ecf20Sopenharmony_ci return (void __iomem *) (unsigned long) port; 138c2ecf20Sopenharmony_ci} 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid ioport_unmap(void __iomem *addr) 168c2ecf20Sopenharmony_ci{ 178c2ecf20Sopenharmony_ci /* Nothing to do */ 188c2ecf20Sopenharmony_ci} 198c2ecf20Sopenharmony_ciEXPORT_SYMBOL(ioport_map); 208c2ecf20Sopenharmony_ciEXPORT_SYMBOL(ioport_unmap); 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#ifdef CONFIG_PCI 238c2ecf20Sopenharmony_civoid pci_iounmap(struct pci_dev *dev, void __iomem * addr) 248c2ecf20Sopenharmony_ci{ 258c2ecf20Sopenharmony_ci /* nothing to do */ 268c2ecf20Sopenharmony_ci} 278c2ecf20Sopenharmony_ciEXPORT_SYMBOL(pci_iounmap); 288c2ecf20Sopenharmony_ci#endif 29