blob: c9da9f139694dafe211b5bb30e4d36892cabaf77 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
David S. Miller749805d2006-06-25 23:24:24 -07002/*
3 * Implement the sparc iomap interfaces
4 */
5#include <linux/pci.h>
6#include <linux/module.h>
7#include <asm/io.h>
8
9/* Create a virtual mapping cookie for an IO port range */
10void __iomem *ioport_map(unsigned long port, unsigned int nr)
11{
12 return (void __iomem *) (unsigned long) port;
13}
14
15void ioport_unmap(void __iomem *addr)
16{
17 /* Nothing to do */
18}
19EXPORT_SYMBOL(ioport_map);
20EXPORT_SYMBOL(ioport_unmap);
21
David S. Miller749805d2006-06-25 23:24:24 -070022void pci_iounmap(struct pci_dev *dev, void __iomem * addr)
23{
24 /* nothing to do */
25}
David S. Miller749805d2006-06-25 23:24:24 -070026EXPORT_SYMBOL(pci_iounmap);