ARM: dma-api: fix max_pfn off-by-one error in __dma_supported()
[linux/fpc-iii.git] / arch / mips / include / asm / mach-au1x00 / ioremap.h
blobf6877ed8b8d090ab1aead336c27c4c08c01db3a3
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
8 #include <linux/types.h>
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)
15 return phys_addr;
17 #endif
20 * Allow physical addresses to be fixed up to help 36-bit peripherals.
22 static inline phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
24 return __fixup_bigphys_addr(phys_addr, size);
27 static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size,
28 unsigned long flags)
30 return NULL;
33 static inline int plat_iounmap(const volatile void __iomem *addr)
35 return 0;
38 #endif /* __ASM_MACH_AU1X00_IOREMAP_H */