blob: 03f60c690c8a147cdf1c9296e759023d1b17f054 [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, arch/i386/boot/setup.S populates a scratch table
6 * in the empty_zero_block that contains a list of usable address/size
7 * duples. In arch/i386/kernel/setup.c, this information is
8 * transferred into the e820map, and in arch/i386/mm/init.c, that
9 * new information is used to mark pages reserved or not.
10 *
11 */
12#ifndef __E820_HEADER
13#define __E820_HEADER
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#define HIGH_MEMORY (1024*1024)
16
17#ifndef __ASSEMBLY__
18
Linus Torvalds1da177e2005-04-16 15:20:36 -070019extern struct e820map e820;
Arjan van de Ven95222362006-04-07 19:49:27 +020020
21extern int e820_all_mapped(unsigned long start, unsigned long end,
22 unsigned type);
Jan Beulichb92e9fa2007-05-02 19:27:11 +020023extern int e820_any_mapped(u64 start, u64 end, unsigned type);
bibo,maob2dff6a2006-12-07 02:14:06 +010024extern void find_max_pfn(void);
bibo,maob5b24052006-12-07 02:14:06 +010025extern void register_bootmem_low_pages(unsigned long max_low_pfn);
Yasunori Goto5c95da92006-12-22 01:09:54 -080026extern void e820_register_memory(void);
bibo,maocef518e2006-12-07 02:14:06 +010027extern void limit_regions(unsigned long long size);
28extern void print_memory_map(char *who);
Arjan van de Ven95222362006-04-07 19:49:27 +020029
Rafael J. Wysockib0cb1a12007-07-29 23:24:36 +020030#if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION)
Rafael J. Wysocki1c100702007-07-21 17:11:09 +020031extern void e820_mark_nosave_regions(void);
32#else
33static inline void e820_mark_nosave_regions(void)
34{
35}
36#endif
37
Linus Torvalds1da177e2005-04-16 15:20:36 -070038#endif/*!__ASSEMBLY__*/
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#endif/*__E820_HEADER*/