io.h 483 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-License-Identifier: GPL-2.0+
  3. */
  4. #ifndef _LINUX_IO_H
  5. #define _LINUX_IO_H
  6. #include <linux/compiler.h>
  7. #include <linux/types.h>
  8. #include <asm/io.h>
  9. #ifndef CONFIG_HAVE_ARCH_IOREMAP
  10. static inline void __iomem *ioremap(resource_size_t offset,
  11. resource_size_t size)
  12. {
  13. return (void __iomem *)(unsigned long)offset;
  14. }
  15. static inline void iounmap(void __iomem *addr)
  16. {
  17. }
  18. #define devm_ioremap(dev, offset, size) ioremap(offset, size)
  19. #endif
  20. #endif /* _LINUX_IO_H */