xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-generic/ioremap.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *	include/asm-mips/mach-generic/ioremap.h
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun #ifndef __ASM_MACH_GENERIC_IOREMAP_H
6*4882a593Smuzhiyun #define __ASM_MACH_GENERIC_IOREMAP_H
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #include <linux/types.h>
9*4882a593Smuzhiyun 
plat_ioremap(phys_addr_t offset,unsigned long size,unsigned long flags)10*4882a593Smuzhiyun static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size,
11*4882a593Smuzhiyun 	unsigned long flags)
12*4882a593Smuzhiyun {
13*4882a593Smuzhiyun 	return NULL;
14*4882a593Smuzhiyun }
15*4882a593Smuzhiyun 
plat_iounmap(const volatile void __iomem * addr)16*4882a593Smuzhiyun static inline int plat_iounmap(const volatile void __iomem *addr)
17*4882a593Smuzhiyun {
18*4882a593Smuzhiyun 	return 0;
19*4882a593Smuzhiyun }
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #endif /* __ASM_MACH_GENERIC_IOREMAP_H */
22