diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-05-11 03:30:15 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 04:55:10 -0400 |
commit | b79cd8f1268bab57ff85b19d131f7f23deab2dee (patch) | |
tree | 9f7c90389329bf76ba5f0ced29a3dc4c6ec7680b /include/asm-x86/e820.h | |
parent | 833e78bfeeef628f0201349a0a05a54f48f07884 (diff) |
x86: make e820.c to have common functions
remove the duplicated copy of these functions.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/e820.h')
-rw-r--r-- | include/asm-x86/e820.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h index 7004251fc66b..b5b519feba1d 100644 --- a/include/asm-x86/e820.h +++ b/include/asm-x86/e820.h | |||
@@ -20,6 +20,20 @@ struct e820map { | |||
20 | __u32 nr_map; | 20 | __u32 nr_map; |
21 | struct e820entry map[E820MAX]; | 21 | struct e820entry map[E820MAX]; |
22 | }; | 22 | }; |
23 | |||
24 | extern struct e820map e820; | ||
25 | |||
26 | extern int e820_any_mapped(u64 start, u64 end, unsigned type); | ||
27 | extern int e820_all_mapped(u64 start, u64 end, unsigned type); | ||
28 | extern void add_memory_region(u64 start, u64 size, int type); | ||
29 | extern void e820_print_map(char *who); | ||
30 | extern int sanitize_e820_map(struct e820entry *biosmap, char *pnr_map); | ||
31 | extern int copy_e820_map(struct e820entry *biosmap, int nr_map); | ||
32 | extern u64 update_memory_range(u64 start, u64 size, unsigned old_type, | ||
33 | unsigned new_type); | ||
34 | extern void update_e820(void); | ||
35 | extern void e820_setup_gap(void); | ||
36 | |||
23 | #endif /* __ASSEMBLY__ */ | 37 | #endif /* __ASSEMBLY__ */ |
24 | 38 | ||
25 | #define ISA_START_ADDRESS 0xa0000 | 39 | #define ISA_START_ADDRESS 0xa0000 |