Merge tag 'dmaengine-fix-5.2-rc4' of git://git.infradead.org/users/vkoul/slave-dma
[sfrench/cifs-2.6.git] / arch / mips / include / asm / mach-au1x00 / ioremap.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *      include/asm-mips/mach-au1x00/ioremap.h
4  */
5 #ifndef __ASM_MACH_AU1X00_IOREMAP_H
6 #define __ASM_MACH_AU1X00_IOREMAP_H
7
8 #include <linux/types.h>
9
10 #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_PCI)
11 extern phys_addr_t __fixup_bigphys_addr(phys_addr_t, phys_addr_t);
12 #else
13 static inline phys_addr_t __fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
14 {
15         return phys_addr;
16 }
17 #endif
18
19 /*
20  * Allow physical addresses to be fixed up to help 36-bit peripherals.
21  */
22 static inline phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
23 {
24         return __fixup_bigphys_addr(phys_addr, size);
25 }
26
27 static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size,
28         unsigned long flags)
29 {
30         return NULL;
31 }
32
33 static inline int plat_iounmap(const volatile void __iomem *addr)
34 {
35         return 0;
36 }
37
38 #endif /* __ASM_MACH_AU1X00_IOREMAP_H */