xref: /linux/arch/csky/include/asm/io.h (revision bd628c1bed7902ec1f24ba0fe70758949146abbe)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3 
4 #ifndef __ASM_CSKY_IO_H
5 #define __ASM_CSKY_IO_H
6 
7 #include <abi/pgtable-bits.h>
8 #include <linux/types.h>
9 #include <linux/version.h>
10 
11 extern void __iomem *ioremap(phys_addr_t offset, size_t size);
12 
13 extern void iounmap(void *addr);
14 
15 extern int remap_area_pages(unsigned long address, phys_addr_t phys_addr,
16 		size_t size, unsigned long flags);
17 
18 #define ioremap_nocache(phy, sz)	ioremap(phy, sz)
19 #define ioremap_wc ioremap_nocache
20 #define ioremap_wt ioremap_nocache
21 
22 #include <asm-generic/io.h>
23 
24 #endif /* __ASM_CSKY_IO_H */
25