iomap.c 522 B

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