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