aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mach-au1x00/ioremap.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2005-06-30 06:48:40 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:31:34 -0400
commitc3455b0efc2b5b1bdc755602f77ce7f43725bf61 (patch)
tree835ffe4b5509053c0623146157d92c4ca2d32aea /include/asm-mips/mach-au1x00/ioremap.h
parentc134a5ecdb8f4aee09feca0d4d395915e752fcb8 (diff)
Inline ioremap() calls for constant addresses that map to KSEG1.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/mach-au1x00/ioremap.h')
-rw-r--r--include/asm-mips/mach-au1x00/ioremap.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-mips/mach-au1x00/ioremap.h b/include/asm-mips/mach-au1x00/ioremap.h
new file mode 100644
index 000000000000..f1c8c1087115
--- /dev/null
+++ b/include/asm-mips/mach-au1x00/ioremap.h
@@ -0,0 +1,30 @@
1/*
2 * include/asm-mips/mach-au1x00/ioremap.h
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 */
9#ifndef __ASM_MACH_AU1X00_IOREMAP_H
10#define __ASM_MACH_AU1X00_IOREMAP_H
11
12#include <linux/config.h>
13#include <linux/types.h>
14
15#ifndef CONFIG_64BIT_PHYS_ADDR
16static inline phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size)
17{
18 return phys_addr;
19}
20#endif
21
22/*
23 * Allow physical addresses to be fixed up to help 36-bit peripherals.
24 */
25static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size)
26{
27 return __fixup_bigphys_addr(phys_addr, size);
28}
29
30#endif /* __ASM_MACH_AU1X00_IOREMAP_H */