diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2005-06-30 10:48:40 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 18:31:34 (GMT) |
commit | c3455b0efc2b5b1bdc755602f77ce7f43725bf61 (patch) | |
tree | 835ffe4b5509053c0623146157d92c4ca2d32aea /include/asm-mips/mach-generic | |
parent | c134a5ecdb8f4aee09feca0d4d395915e752fcb8 (diff) | |
download | linux-c3455b0efc2b5b1bdc755602f77ce7f43725bf61.tar.xz |
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')
-rw-r--r-- | include/asm-mips/mach-generic/ioremap.h | 23 |
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 0000000..9b64ff6 --- /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 */ |