1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/asm-mips/mach-au1x00/ioremap.h
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);
13 static inline phys_addr_t __fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
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,
33 static inline int plat_iounmap(const volatile void __iomem *addr)
38 #endif /* __ASM_MACH_AU1X00_IOREMAP_H */