diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2006-10-01 02:29:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:31 -0400 |
commit | 801f92ad5a0c630646f6746f3ed1663fcab185d1 (patch) | |
tree | 4e8250fc77717c50e2d58a224545299489b98eb9 /arch/alpha/kernel/proto.h | |
parent | db71daabad0821996483dfe309c4bc81d6755a70 (diff) |
[PATCH] Generic ioremap_page_range: alpha conversion
Convert Alpha to use generic ioremap_page_range() by turning
__alpha_remap_area_pages() into an inline wrapper around ioremap_page_range().
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/alpha/kernel/proto.h')
-rw-r--r-- | arch/alpha/kernel/proto.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/arch/alpha/kernel/proto.h b/arch/alpha/kernel/proto.h index 2a6e3da8144f..21f71287b6f5 100644 --- a/arch/alpha/kernel/proto.h +++ b/arch/alpha/kernel/proto.h | |||
@@ -1,5 +1,7 @@ | |||
1 | #include <linux/interrupt.h> | 1 | #include <linux/interrupt.h> |
2 | #include <linux/io.h> | ||
2 | 3 | ||
4 | #include <asm/pgtable.h> | ||
3 | 5 | ||
4 | /* Prototypes of functions used across modules here in this directory. */ | 6 | /* Prototypes of functions used across modules here in this directory. */ |
5 | 7 | ||
@@ -181,9 +183,16 @@ extern void titan_dispatch_irqs(u64, struct pt_regs *); | |||
181 | extern void switch_to_system_map(void); | 183 | extern void switch_to_system_map(void); |
182 | extern void srm_paging_stop(void); | 184 | extern void srm_paging_stop(void); |
183 | 185 | ||
184 | /* ../mm/remap.c */ | 186 | static inline int |
185 | extern int __alpha_remap_area_pages(unsigned long, unsigned long, | 187 | __alpha_remap_area_pages(unsigned long address, unsigned long phys_addr, |
186 | unsigned long, unsigned long); | 188 | unsigned long size, unsigned long flags) |
189 | { | ||
190 | pgprot_t prot; | ||
191 | |||
192 | prot = __pgprot(_PAGE_VALID | _PAGE_ASM | _PAGE_KRE | ||
193 | | _PAGE_KWE | flags); | ||
194 | return ioremap_page_range(address, address + size, phys_addr, prot); | ||
195 | } | ||
187 | 196 | ||
188 | /* irq.c */ | 197 | /* irq.c */ |
189 | 198 | ||