aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/e820.h14
-rw-r--r--include/asm-x86/e820_32.h12
-rw-r--r--include/asm-x86/e820_64.h12
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
24extern struct e820map e820;
25
26extern int e820_any_mapped(u64 start, u64 end, unsigned type);
27extern int e820_all_mapped(u64 start, u64 end, unsigned type);
28extern void add_memory_region(u64 start, u64 size, int type);
29extern void e820_print_map(char *who);
30extern int sanitize_e820_map(struct e820entry *biosmap, char *pnr_map);
31extern int copy_e820_map(struct e820entry *biosmap, int nr_map);
32extern u64 update_memory_range(u64 start, u64 size, unsigned old_type,
33 unsigned new_type);
34extern void update_e820(void);
35extern 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 @@
21extern void setup_memory_map(void); 21extern void setup_memory_map(void);
22extern void finish_e820_parsing(void); 22extern void finish_e820_parsing(void);
23 23
24extern struct e820map e820;
25extern void update_e820(void);
26
27extern int e820_all_mapped(unsigned long start, unsigned long end,
28 unsigned type);
29extern int e820_any_mapped(u64 start, u64 end, unsigned type);
30extern void propagate_e820_map(void); 24extern void propagate_e820_map(void);
31extern void register_bootmem_low_pages(unsigned long max_low_pfn); 25extern void register_bootmem_low_pages(unsigned long max_low_pfn);
32extern void add_memory_region(unsigned long long start,
33 unsigned long long size, int type);
34extern u64 update_memory_range(u64 start, u64 size, unsigned old_type,
35 unsigned new_type);
36extern void e820_register_memory(void);
37extern void limit_regions(unsigned long long size); 26extern void limit_regions(unsigned long long size);
38extern void init_iomem_resources(struct resource *code_resource, 27extern 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,
19extern unsigned long find_e820_area_size(unsigned long start, 19extern 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);
22extern void add_memory_region(unsigned long start, unsigned long size,
23 int type);
24extern u64 update_memory_range(u64 start, u64 size, unsigned old_type,
25 unsigned new_type);
26extern void setup_memory_region(void); 22extern void setup_memory_region(void);
27extern void contig_e820_setup(void); 23extern void contig_e820_setup(void);
28extern unsigned long e820_end_of_ram(void); 24extern unsigned long e820_end_of_ram(void);
29extern void e820_reserve_resources(void); 25extern void e820_reserve_resources(void);
30extern void e820_mark_nosave_regions(void); 26extern void e820_mark_nosave_regions(void);
31extern int e820_any_mapped(unsigned long start, unsigned long end,
32 unsigned type);
33extern int e820_all_mapped(unsigned long start, unsigned long end,
34 unsigned type);
35extern int e820_any_non_reserved(unsigned long start, unsigned long end); 27extern int e820_any_non_reserved(unsigned long start, unsigned long end);
36extern int is_memory_any_valid(unsigned long start, unsigned long end); 28extern int is_memory_any_valid(unsigned long start, unsigned long end);
37extern int e820_all_non_reserved(unsigned long start, unsigned long end); 29extern int e820_all_non_reserved(unsigned long start, unsigned long end);
38extern int is_memory_all_valid(unsigned long start, unsigned long end); 30extern int is_memory_all_valid(unsigned long start, unsigned long end);
39extern unsigned long e820_hole_size(unsigned long start, unsigned long end); 31extern unsigned long e820_hole_size(unsigned long start, unsigned long end);
40 32
41extern void e820_setup_gap(void);
42extern void e820_register_active_regions(int nid, unsigned long start_pfn, 33extern void e820_register_active_regions(int nid, unsigned long start_pfn,
43 unsigned long end_pfn); 34 unsigned long end_pfn);
44 35
45extern void finish_e820_parsing(void); 36extern void finish_e820_parsing(void);
46 37
47extern struct e820map e820;
48extern void update_e820(void);
49
50extern void reserve_early(unsigned long start, unsigned long end, char *name); 38extern void reserve_early(unsigned long start, unsigned long end, char *name);
51extern void free_early(unsigned long start, unsigned long end); 39extern void free_early(unsigned long start, unsigned long end);
52extern void early_res_to_bootmem(unsigned long start, unsigned long end); 40extern void early_res_to_bootmem(unsigned long start, unsigned long end);