blob: a104b7e69f7c871d267f7a541683b831aed3a071 [file] [log] [blame]
Masahiro Yamadaffde0cc2015-05-15 22:05:18 +09001/*
2 * SPDX-License-Identifier: GPL-2.0+
3 */
4
5#ifndef _LINUX_IO_H
6#define _LINUX_IO_H
7
Masahiro Yamada332b8292016-06-28 10:48:42 +09008#include <linux/compiler.h>
9#include <linux/types.h>
Masahiro Yamadaffde0cc2015-05-15 22:05:18 +090010#include <asm/io.h>
11
Masahiro Yamada332b8292016-06-28 10:48:42 +090012#ifndef CONFIG_HAVE_ARCH_IOREMAP
13static inline void __iomem *ioremap(resource_size_t offset,
14 resource_size_t size)
15{
16 return (void __iomem *)(unsigned long)offset;
17}
18
19static inline void iounmap(void __iomem *addr)
20{
21}
22
23#define devm_ioremap(dev, offset, size) ioremap(offset, size)
24#endif
25
Masahiro Yamadaffde0cc2015-05-15 22:05:18 +090026#endif /* _LINUX_IO_H */