]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-x86/e820_32.h
ae5ea19623faf9c33c8a39abad80f812140283c1
[linux-2.6-omap-h63xx.git] / include / asm-x86 / e820_32.h
1 /*
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
15 #include <linux/ioport.h>
16
17 #define HIGH_MEMORY     (1024*1024)
18
19 #ifndef __ASSEMBLY__
20
21 extern struct e820map e820;
22
23 extern int e820_all_mapped(unsigned long start, unsigned long end,
24                            unsigned type);
25 extern int e820_any_mapped(u64 start, u64 end, unsigned type);
26 extern void find_max_pfn(void);
27 extern void register_bootmem_low_pages(unsigned long max_low_pfn);
28 extern void e820_register_memory(void);
29 extern void limit_regions(unsigned long long size);
30 extern void print_memory_map(char *who);
31 extern void legacy_init_iomem_resources(struct resource *code_resource,
32                             struct resource *data_resource,
33                             struct resource *bss_resource);
34
35 #if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION)
36 extern void e820_mark_nosave_regions(void);
37 #else
38 static inline void e820_mark_nosave_regions(void)
39 {
40 }
41 #endif
42
43
44 #endif/*!__ASSEMBLY__*/
45 #endif/*__E820_HEADER*/