io.h 808 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 <jonas@southpole.se>
  11. * et al.
  12. */
  13. #ifndef __ASM_OPENRISC_IO_H
  14. #define __ASM_OPENRISC_IO_H
  15. #include <linux/types.h>
  16. #include <asm/pgalloc.h>
  17. #include <asm/pgtable.h>
  18. /*
  19. * PCI: We do not use IO ports in OpenRISC
  20. */
  21. #define IO_SPACE_LIMIT 0
  22. /* OpenRISC has no port IO */
  23. #define HAVE_ARCH_PIO_SIZE 1
  24. #define PIO_RESERVED 0X0UL
  25. #define PIO_OFFSET 0
  26. #define PIO_MASK 0
  27. /*
  28. * I/O memory mapping functions.
  29. */
  30. #define _PAGE_IOREMAP (pgprot_val(PAGE_KERNEL) | _PAGE_CI)
  31. #include <asm-generic/io.h>
  32. #endif