2 * structures and definitions for the int 15, ax=e820 memory map
5 * In a nutshell, setup.S populates a scratch table in the
6 * empty_zero_block that contains a list of usable address/size
7 * duples. setup.c, this information is transferred into the e820map,
8 * and in init.c/numa.c, that new information is used to mark pages
14 #include <linux/ioport.h>
17 extern unsigned long find_e820_area(unsigned long start
, unsigned long end
,
18 unsigned size
, unsigned long align
);
19 extern void add_memory_region(unsigned long start
, unsigned long size
,
21 extern void update_memory_range(u64 start
, u64 size
, unsigned old_type
,
23 extern void setup_memory_region(void);
24 extern void contig_e820_setup(void);
25 extern unsigned long e820_end_of_ram(void);
26 extern void e820_reserve_resources(struct resource
*code_resource
,
27 struct resource
*data_resource
, struct resource
*bss_resource
);
28 extern void e820_mark_nosave_regions(void);
29 extern int e820_any_mapped(unsigned long start
, unsigned long end
, unsigned type
);
30 extern int e820_all_mapped(unsigned long start
, unsigned long end
, unsigned type
);
31 extern int e820_any_non_reserved(unsigned long start
, unsigned long end
);
32 extern int is_memory_any_valid(unsigned long start
, unsigned long end
);
33 extern int e820_all_non_reserved(unsigned long start
, unsigned long end
);
34 extern int is_memory_all_valid(unsigned long start
, unsigned long end
);
35 extern unsigned long e820_hole_size(unsigned long start
, unsigned long end
);
37 extern void e820_setup_gap(void);
38 extern void e820_register_active_regions(int nid
,
39 unsigned long start_pfn
, unsigned long end_pfn
);
41 extern void finish_e820_parsing(void);
43 extern struct e820map e820
;
44 extern void update_e820(void);
46 extern void reserve_early(unsigned long start
, unsigned long end
, char *name
);
47 extern void early_res_to_bootmem(void);
49 #endif/*!__ASSEMBLY__*/
51 #endif/*__E820_HEADER*/