| /* SPDX-License-Identifier: GPL-2.0+ */ |
| #include <linux/compiler.h> |
| static inline u8 ioread8(const volatile void __iomem *addr) |
| static inline u16 ioread16(const volatile void __iomem *addr) |
| static inline u32 ioread32(const volatile void __iomem *addr) |
| static inline u64 ioread64(const volatile void __iomem *addr) |
| #endif /* CONFIG_64BIT */ |
| static inline void iowrite8(u8 value, volatile void __iomem *addr) |
| static inline void iowrite16(u16 value, volatile void __iomem *addr) |
| static inline void iowrite32(u32 value, volatile void __iomem *addr) |
| static inline void iowrite64(u64 value, volatile void __iomem *addr) |
| #endif /* CONFIG_64BIT */ |
| #ifndef CONFIG_HAVE_ARCH_IOREMAP |
| static inline void __iomem *ioremap(resource_size_t offset, |
| return (void __iomem *)(unsigned long)offset; |
| static inline void iounmap(void __iomem *addr) |
| #define devm_ioremap(dev, offset, size) ioremap(offset, size) |