Masahiro Yamada | ffde0cc | 2015-05-15 22:05:18 +0900 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-License-Identifier: GPL-2.0+ |
| 3 | */ |
| 4 | |
| 5 | #ifndef _LINUX_IO_H |
| 6 | #define _LINUX_IO_H |
| 7 | |
Masahiro Yamada | 332b829 | 2016-06-28 10:48:42 +0900 | [diff] [blame^] | 8 | #include <linux/compiler.h> |
| 9 | #include <linux/types.h> |
Masahiro Yamada | ffde0cc | 2015-05-15 22:05:18 +0900 | [diff] [blame] | 10 | #include <asm/io.h> |
| 11 | |
Masahiro Yamada | 332b829 | 2016-06-28 10:48:42 +0900 | [diff] [blame^] | 12 | #ifndef CONFIG_HAVE_ARCH_IOREMAP |
| 13 | static inline void __iomem *ioremap(resource_size_t offset, |
| 14 | resource_size_t size) |
| 15 | { |
| 16 | return (void __iomem *)(unsigned long)offset; |
| 17 | } |
| 18 | |
| 19 | static inline void iounmap(void __iomem *addr) |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | #define devm_ioremap(dev, offset, size) ioremap(offset, size) |
| 24 | #endif |
| 25 | |
Masahiro Yamada | ffde0cc | 2015-05-15 22:05:18 +0900 | [diff] [blame] | 26 | #endif /* _LINUX_IO_H */ |