xref: /OK3568_Linux_fs/kernel/arch/sh/mm/ioremap.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun #ifndef _SH_MM_IORMEMAP_H
2*4882a593Smuzhiyun #define _SH_MM_IORMEMAP_H 1
3*4882a593Smuzhiyun 
4*4882a593Smuzhiyun #ifdef CONFIG_IOREMAP_FIXED
5*4882a593Smuzhiyun void __iomem *ioremap_fixed(phys_addr_t, unsigned long, pgprot_t);
6*4882a593Smuzhiyun int iounmap_fixed(void __iomem *);
7*4882a593Smuzhiyun void ioremap_fixed_init(void);
8*4882a593Smuzhiyun #else
9*4882a593Smuzhiyun static inline void __iomem *
ioremap_fixed(phys_addr_t phys_addr,unsigned long size,pgprot_t prot)10*4882a593Smuzhiyun ioremap_fixed(phys_addr_t phys_addr, unsigned long size, pgprot_t prot)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	BUG();
13*4882a593Smuzhiyun 	return NULL;
14*4882a593Smuzhiyun }
ioremap_fixed_init(void)15*4882a593Smuzhiyun static inline void ioremap_fixed_init(void)
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun }
iounmap_fixed(void __iomem * addr)18*4882a593Smuzhiyun static inline int iounmap_fixed(void __iomem *addr)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	return -EINVAL;
21*4882a593Smuzhiyun }
22*4882a593Smuzhiyun #endif /* CONFIG_IOREMAP_FIXED */
23*4882a593Smuzhiyun #endif /* _SH_MM_IORMEMAP_H */
24