blob: 0bd4787a5d575cf3675103ef114f3ce0ea0e9c8a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * structures and definitions for the int 15, ax=e820 memory map
3 * scheme.
4 *
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
9 * reserved or not.
10 */
11#ifndef __E820_HEADER
12#define __E820_HEADER
13
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#ifndef __ASSEMBLY__
Linus Torvalds1da177e2005-04-16 15:20:36 -070015extern unsigned long find_e820_area(unsigned long start, unsigned long end,
16 unsigned size);
17extern void add_memory_region(unsigned long start, unsigned long size,
18 int type);
19extern void setup_memory_region(void);
20extern void contig_e820_setup(void);
21extern unsigned long e820_end_of_ram(void);
22extern void e820_reserve_resources(void);
Rafael J. Wysockie8eff5a2006-09-25 23:32:46 -070023extern void e820_mark_nosave_regions(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024extern void e820_print_map(char *who);
Arjan van de Veneee5a9f2006-04-07 19:49:24 +020025extern int e820_any_mapped(unsigned long start, unsigned long end, unsigned type);
Arjan van de Ven95222362006-04-07 19:49:27 +020026extern int e820_all_mapped(unsigned long start, unsigned long end, unsigned type);
Rohit Seth53fee042007-02-13 13:26:22 +010027extern unsigned long e820_hole_size(unsigned long start, unsigned long end);
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Andi Kleena1e97782005-04-16 15:25:12 -070029extern void e820_setup_gap(void);
Mel Gorman5cb248a2006-09-27 01:49:52 -070030extern void e820_register_active_regions(int nid,
31 unsigned long start_pfn, unsigned long end_pfn);
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
Andi Kleen2c8c0e62006-09-26 10:52:32 +020033extern void finish_e820_parsing(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
35extern struct e820map e820;
Andi Kleenac71d122006-05-08 15:17:28 +020036
37extern unsigned ebda_addr, ebda_size;
Amul Shah076422d2007-02-13 13:26:19 +010038extern unsigned long nodemap_addr, nodemap_size;
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#endif/*!__ASSEMBLY__*/
40
41#endif/*__E820_HEADER*/