diff options
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/e820.h | 14 | ||||
-rw-r--r-- | include/asm-x86/e820_32.h | 12 | ||||
-rw-r--r-- | include/asm-x86/e820_64.h | 12 |
3 files changed, 14 insertions, 24 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 |
diff --git a/include/asm-x86/e820_32.h b/include/asm-x86/e820_32.h index af0711b220df..9576b438fbd9 100644 --- a/include/asm-x86/e820_32.h +++ b/include/asm-x86/e820_32.h | |||
@@ -21,19 +21,8 @@ | |||
21 | extern void setup_memory_map(void); | 21 | extern void setup_memory_map(void); |
22 | extern void finish_e820_parsing(void); | 22 | extern void finish_e820_parsing(void); |
23 | 23 | ||
24 | extern struct e820map e820; | ||
25 | extern void update_e820(void); | ||
26 | |||
27 | extern int e820_all_mapped(unsigned long start, unsigned long end, | ||
28 | unsigned type); | ||
29 | extern int e820_any_mapped(u64 start, u64 end, unsigned type); | ||
30 | extern void propagate_e820_map(void); | 24 | extern void propagate_e820_map(void); |
31 | extern void register_bootmem_low_pages(unsigned long max_low_pfn); | 25 | extern void register_bootmem_low_pages(unsigned long max_low_pfn); |
32 | extern void add_memory_region(unsigned long long start, | ||
33 | unsigned long long size, int type); | ||
34 | extern u64 update_memory_range(u64 start, u64 size, unsigned old_type, | ||
35 | unsigned new_type); | ||
36 | extern void e820_register_memory(void); | ||
37 | extern void limit_regions(unsigned long long size); | 26 | extern void limit_regions(unsigned long long size); |
38 | extern void init_iomem_resources(struct resource *code_resource, | 27 | extern void init_iomem_resources(struct resource *code_resource, |
39 | struct resource *data_resource, | 28 | struct resource *data_resource, |
@@ -47,6 +36,5 @@ static inline void e820_mark_nosave_regions(void) | |||
47 | } | 36 | } |
48 | #endif | 37 | #endif |
49 | 38 | ||
50 | |||
51 | #endif/*!__ASSEMBLY__*/ | 39 | #endif/*!__ASSEMBLY__*/ |
52 | #endif/*__E820_HEADER*/ | 40 | #endif/*__E820_HEADER*/ |
diff --git a/include/asm-x86/e820_64.h b/include/asm-x86/e820_64.h index 6ae3e2803286..9fac77e01441 100644 --- a/include/asm-x86/e820_64.h +++ b/include/asm-x86/e820_64.h | |||
@@ -19,34 +19,22 @@ extern unsigned long find_e820_area(unsigned long start, unsigned long end, | |||
19 | extern unsigned long find_e820_area_size(unsigned long start, | 19 | extern unsigned long find_e820_area_size(unsigned long start, |
20 | unsigned long *sizep, | 20 | unsigned long *sizep, |
21 | unsigned long align); | 21 | unsigned long align); |
22 | extern void add_memory_region(unsigned long start, unsigned long size, | ||
23 | int type); | ||
24 | extern u64 update_memory_range(u64 start, u64 size, unsigned old_type, | ||
25 | unsigned new_type); | ||
26 | extern void setup_memory_region(void); | 22 | extern void setup_memory_region(void); |
27 | extern void contig_e820_setup(void); | 23 | extern void contig_e820_setup(void); |
28 | extern unsigned long e820_end_of_ram(void); | 24 | extern unsigned long e820_end_of_ram(void); |
29 | extern void e820_reserve_resources(void); | 25 | extern void e820_reserve_resources(void); |
30 | extern void e820_mark_nosave_regions(void); | 26 | extern void e820_mark_nosave_regions(void); |
31 | extern int e820_any_mapped(unsigned long start, unsigned long end, | ||
32 | unsigned type); | ||
33 | extern int e820_all_mapped(unsigned long start, unsigned long end, | ||
34 | unsigned type); | ||
35 | extern int e820_any_non_reserved(unsigned long start, unsigned long end); | 27 | extern int e820_any_non_reserved(unsigned long start, unsigned long end); |
36 | extern int is_memory_any_valid(unsigned long start, unsigned long end); | 28 | extern int is_memory_any_valid(unsigned long start, unsigned long end); |
37 | extern int e820_all_non_reserved(unsigned long start, unsigned long end); | 29 | extern int e820_all_non_reserved(unsigned long start, unsigned long end); |
38 | extern int is_memory_all_valid(unsigned long start, unsigned long end); | 30 | extern int is_memory_all_valid(unsigned long start, unsigned long end); |
39 | extern unsigned long e820_hole_size(unsigned long start, unsigned long end); | 31 | extern unsigned long e820_hole_size(unsigned long start, unsigned long end); |
40 | 32 | ||
41 | extern void e820_setup_gap(void); | ||
42 | extern void e820_register_active_regions(int nid, unsigned long start_pfn, | 33 | extern void e820_register_active_regions(int nid, unsigned long start_pfn, |
43 | unsigned long end_pfn); | 34 | unsigned long end_pfn); |
44 | 35 | ||
45 | extern void finish_e820_parsing(void); | 36 | extern void finish_e820_parsing(void); |
46 | 37 | ||
47 | extern struct e820map e820; | ||
48 | extern void update_e820(void); | ||
49 | |||
50 | extern void reserve_early(unsigned long start, unsigned long end, char *name); | 38 | extern void reserve_early(unsigned long start, unsigned long end, char *name); |
51 | extern void free_early(unsigned long start, unsigned long end); | 39 | extern void free_early(unsigned long start, unsigned long end); |
52 | extern void early_res_to_bootmem(unsigned long start, unsigned long end); | 40 | extern void early_res_to_bootmem(unsigned long start, unsigned long end); |