aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mach-generic/ioremap.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2005-06-30 10:48:40 +0000
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 19:31:34 +0100
commitc3455b0efc2b5b1bdc755602f77ce7f43725bf61 (patch)
tree835ffe4b5509053c0623146157d92c4ca2d32aea /include/asm-mips/mach-generic/ioremap.h
parentAvoid defining variables in the middle of a block which breaks older (diff)
downloadlinux-dev-c3455b0efc2b5b1bdc755602f77ce7f43725bf61.tar.xz
linux-dev-c3455b0efc2b5b1bdc755602f77ce7f43725bf61.zip
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-generic/ioremap.h')
-rw-r--r--include/asm-mips/mach-generic/ioremap.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asm-mips/mach-generic/ioremap.h b/include/asm-mips/mach-generic/ioremap.h
new file mode 100644
index 000000000000..9b64ff6e485d
--- /dev/null
+++ b/include/asm-mips/mach-generic/ioremap.h
@@ -0,0 +1,23 @@
+/*
+ * include/asm-mips/mach-generic/ioremap.h
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+#ifndef __ASM_MACH_GENERIC_IOREMAP_H
+#define __ASM_MACH_GENERIC_IOREMAP_H
+
+#include <linux/types.h>
+
+/*
+ * Allow physical addresses to be fixed up to help peripherals located
+ * outside the low 32-bit range -- generic pass-through version.
+ */
+static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size)
+{
+ return phys_addr;
+}
+
+#endif /* __ASM_MACH_GENERIC_IOREMAP_H */