io.h 614 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_UM_IO_H
  3. #define _ASM_UM_IO_H
  4. #include <linux/types.h>
  5. #include <asm/byteorder.h>
  6. #if IS_ENABLED(CONFIG_PLATFORM_MOCK)
  7. #include <asm/io-mock-shared.h>
  8. #endif
  9. /* get emulated iomem (if desired) */
  10. #include <asm-generic/logic_io.h>
  11. #ifndef ioremap
  12. #define ioremap ioremap
  13. static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
  14. {
  15. return NULL;
  16. }
  17. #endif /* ioremap */
  18. #define ioremap_nocache ioremap
  19. #ifndef iounmap
  20. #define iounmap iounmap
  21. static inline void iounmap(void __iomem *addr)
  22. {
  23. }
  24. #endif /* iounmap */
  25. #include <asm-generic/io.h>
  26. #endif