diff options
author | Huang, Ying <ying.huang@intel.com> | 2008-01-30 07:33:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:44 -0500 |
commit | beacfaac3f23b30814aafee37a055257c7062ef3 (patch) | |
tree | 9a9a25cafa5fa4b79026caa8b0b442dc54b78889 /include | |
parent | 4716e79c9946044a53a65418cfba04836f6a5c36 (diff) |
x86 32-bit boot: rename bt_ioremap() to early_ioremap()
This patch renames bt_ioremap to early_ioremap, which is used in
x86_64. This makes it easier to merge i386 and x86_64 usage.
[ mingo@elte.hu: fix ]
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/dmi.h | 7 | ||||
-rw-r--r-- | include/asm-x86/efi.h | 8 | ||||
-rw-r--r-- | include/asm-x86/io_32.h | 16 |
3 files changed, 10 insertions, 21 deletions
diff --git a/include/asm-x86/dmi.h b/include/asm-x86/dmi.h index 5008c365e6e4..1241e6ad1935 100644 --- a/include/asm-x86/dmi.h +++ b/include/asm-x86/dmi.h | |||
@@ -5,9 +5,6 @@ | |||
5 | 5 | ||
6 | #ifdef CONFIG_X86_32 | 6 | #ifdef CONFIG_X86_32 |
7 | 7 | ||
8 | /* Use early IO mappings for DMI because it's initialized early */ | ||
9 | #define dmi_ioremap bt_ioremap | ||
10 | #define dmi_iounmap bt_iounmap | ||
11 | #define dmi_alloc alloc_bootmem | 8 | #define dmi_alloc alloc_bootmem |
12 | 9 | ||
13 | #else /* CONFIG_X86_32 */ | 10 | #else /* CONFIG_X86_32 */ |
@@ -28,9 +25,9 @@ static inline void *dmi_alloc(unsigned len) | |||
28 | return dmi_alloc_data + idx; | 25 | return dmi_alloc_data + idx; |
29 | } | 26 | } |
30 | 27 | ||
28 | #endif | ||
29 | |||
31 | #define dmi_ioremap early_ioremap | 30 | #define dmi_ioremap early_ioremap |
32 | #define dmi_iounmap early_iounmap | 31 | #define dmi_iounmap early_iounmap |
33 | 32 | ||
34 | #endif | 33 | #endif |
35 | |||
36 | #endif | ||
diff --git a/include/asm-x86/efi.h b/include/asm-x86/efi.h index 10fcf20bdc73..8380131ca542 100644 --- a/include/asm-x86/efi.h +++ b/include/asm-x86/efi.h | |||
@@ -33,9 +33,6 @@ extern unsigned long asmlinkage efi_call_phys(void *, ...); | |||
33 | #define efi_call_virt6(f, a1, a2, a3, a4, a5, a6) \ | 33 | #define efi_call_virt6(f, a1, a2, a3, a4, a5, a6) \ |
34 | efi_call_virt(f, a1, a2, a3, a4, a5, a6) | 34 | efi_call_virt(f, a1, a2, a3, a4, a5, a6) |
35 | 35 | ||
36 | #define efi_early_ioremap(addr, size) bt_ioremap(addr, size) | ||
37 | #define efi_early_iounmap(vaddr, size) bt_iounmap(vaddr, size) | ||
38 | |||
39 | #define efi_ioremap(addr, size) ioremap(addr, size) | 36 | #define efi_ioremap(addr, size) ioremap(addr, size) |
40 | 37 | ||
41 | #define end_pfn_map max_low_pfn | 38 | #define end_pfn_map max_low_pfn |
@@ -91,13 +88,8 @@ extern u64 efi_call6(void *fp, u64 arg1, u64 arg2, u64 arg3, | |||
91 | efi_call6((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ | 88 | efi_call6((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ |
92 | (u64)(a3), (u64)(a4), (u64)(a5), (u64)(a6)) | 89 | (u64)(a3), (u64)(a4), (u64)(a5), (u64)(a6)) |
93 | 90 | ||
94 | #define efi_early_ioremap(addr, size) early_ioremap(addr, size) | ||
95 | #define efi_early_iounmap(vaddr, size) early_iounmap(vaddr, size) | ||
96 | |||
97 | extern void *efi_ioremap(unsigned long offset, unsigned long size); | 91 | extern void *efi_ioremap(unsigned long offset, unsigned long size); |
98 | 92 | ||
99 | extern int efi_time; | ||
100 | |||
101 | #endif /* CONFIG_X86_32 */ | 93 | #endif /* CONFIG_X86_32 */ |
102 | 94 | ||
103 | extern void efi_reserve_bootmem(void); | 95 | extern void efi_reserve_bootmem(void); |
diff --git a/include/asm-x86/io_32.h b/include/asm-x86/io_32.h index f7b733d9ace9..059a1fee4de3 100644 --- a/include/asm-x86/io_32.h +++ b/include/asm-x86/io_32.h | |||
@@ -135,20 +135,20 @@ static inline void __iomem * ioremap(unsigned long offset, unsigned long size) | |||
135 | extern void iounmap(volatile void __iomem *addr); | 135 | extern void iounmap(volatile void __iomem *addr); |
136 | 136 | ||
137 | /* | 137 | /* |
138 | * bt_ioremap() and bt_iounmap() are for temporary early boot-time | 138 | * early_ioremap() and early_iounmap() are for temporary early boot-time |
139 | * mappings, before the real ioremap() is functional. | 139 | * mappings, before the real ioremap() is functional. |
140 | * A boot-time mapping is currently limited to at most 16 pages. | 140 | * A boot-time mapping is currently limited to at most 16 pages. |
141 | */ | 141 | */ |
142 | extern void bt_ioremap_init(void); | 142 | extern void early_ioremap_init(void); |
143 | extern void bt_ioremap_clear(void); | 143 | extern void early_ioremap_clear(void); |
144 | extern void bt_ioremap_reset(void); | 144 | extern void early_ioremap_reset(void); |
145 | extern void *bt_ioremap(unsigned long offset, unsigned long size); | 145 | extern void *early_ioremap(unsigned long offset, unsigned long size); |
146 | extern void bt_iounmap(void *addr, unsigned long size); | 146 | extern void early_iounmap(void *addr, unsigned long size); |
147 | extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys); | 147 | extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys); |
148 | 148 | ||
149 | /* Use early IO mappings for DMI because it's initialized early */ | 149 | /* Use early IO mappings for DMI because it's initialized early */ |
150 | #define dmi_ioremap bt_ioremap | 150 | #define dmi_ioremap early_ioremap |
151 | #define dmi_iounmap bt_iounmap | 151 | #define dmi_iounmap early_iounmap |
152 | #define dmi_alloc alloc_bootmem | 152 | #define dmi_alloc alloc_bootmem |
153 | 153 | ||
154 | /* | 154 | /* |