2 * SPDX-License-Identifier: GPL-2.0+
8 #include <linux/compiler.h>
9 #include <linux/types.h>
12 static inline u8 ioread8(const volatile void __iomem *addr)
17 static inline u16 ioread16(const volatile void __iomem *addr)
22 static inline u32 ioread32(const volatile void __iomem *addr)
28 static inline u64 ioread64(const volatile void __iomem *addr)
32 #endif /* CONFIG_64BIT */
34 static inline void iowrite8(u8 value, volatile void __iomem *addr)
39 static inline void iowrite16(u16 value, volatile void __iomem *addr)
44 static inline void iowrite32(u32 value, volatile void __iomem *addr)
50 static inline void iowrite64(u64 value, volatile void __iomem *addr)
54 #endif /* CONFIG_64BIT */
56 #ifndef CONFIG_HAVE_ARCH_IOREMAP
57 static inline void __iomem *ioremap(resource_size_t offset,
60 return (void __iomem *)(unsigned long)offset;
63 static inline void iounmap(void __iomem *addr)
67 #define devm_ioremap(dev, offset, size) ioremap(offset, size)
70 #endif /* _LINUX_IO_H */