io.h 821 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * OpenRISC Linux
  4. *
  5. * Linux architectural port borrowing liberally from similar works of
  6. * others. All original copyrights apply as per the original source
  7. * declaration.
  8. *
  9. * OpenRISC implementation:
  10. * Copyright (C) 2010-2011 Jonas Bonn <[email protected]>
  11. * et al.
  12. */
  13. #ifndef __ASM_OPENRISC_IO_H
  14. #define __ASM_OPENRISC_IO_H
  15. #include <linux/types.h>
  16. /*
  17. * PCI: We do not use IO ports in OpenRISC
  18. */
  19. #define IO_SPACE_LIMIT 0
  20. /* OpenRISC has no port IO */
  21. #define HAVE_ARCH_PIO_SIZE 1
  22. #define PIO_RESERVED 0X0UL
  23. #define PIO_OFFSET 0
  24. #define PIO_MASK 0
  25. #define ioremap ioremap
  26. void __iomem *ioremap(phys_addr_t offset, unsigned long size);
  27. #define iounmap iounmap
  28. extern void iounmap(volatile void __iomem *addr);
  29. #include <asm-generic/io.h>
  30. #endif