iomap.c 558 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Implement the sparc iomap interfaces
  4. */
  5. #include <linux/pci.h>
  6. #include <linux/module.h>
  7. #include <asm/io.h>
  8. /* Create a virtual mapping cookie for an IO port range */
  9. void __iomem *ioport_map(unsigned long port, unsigned int nr)
  10. {
  11. return (void __iomem *) (unsigned long) port;
  12. }
  13. void ioport_unmap(void __iomem *addr)
  14. {
  15. /* Nothing to do */
  16. }
  17. EXPORT_SYMBOL(ioport_map);
  18. EXPORT_SYMBOL(ioport_unmap);
  19. void pci_iounmap(struct pci_dev *dev, void __iomem * addr)
  20. {
  21. /* nothing to do */
  22. }
  23. EXPORT_SYMBOL(pci_iounmap);