io.h 478 B

1234567891011121314151617181920212223242526
  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. /* get emulated iomem (if desired) */
  6. #include <asm-generic/logic_io.h>
  7. #ifndef ioremap
  8. #define ioremap ioremap
  9. static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
  10. {
  11. return NULL;
  12. }
  13. #endif /* ioremap */
  14. #ifndef iounmap
  15. #define iounmap iounmap
  16. static inline void iounmap(void __iomem *addr)
  17. {
  18. }
  19. #endif /* iounmap */
  20. #include <asm-generic/io.h>
  21. #endif