Linux 6.13-rc4
[linux.git] / arch / sh / mm / ioremap.h
blobf2544e721a35260628aa5ad720ab183ba08b6d04
1 #ifndef _SH_MM_IORMEMAP_H
2 #define _SH_MM_IORMEMAP_H 1
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)
12 BUG();
13 return NULL;
15 static inline void ioremap_fixed_init(void)
18 static inline int iounmap_fixed(void __iomem *addr)
20 return -EINVAL;
22 #endif /* CONFIG_IOREMAP_FIXED */
23 #endif /* _SH_MM_IORMEMAP_H */