blob: e2faf5f3a0bb20e5a9dff86ce585ccef6c7c8eb5 [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
Bernhard Wallec9cce832008-01-30 13:30:32 +010015#include <linux/ioport.h>
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#define HIGH_MEMORY (1024*1024)
18
19#ifndef __ASSEMBLY__
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021extern struct e820map e820;
Arjan van de Ven95222362006-04-07 19:49:27 +020022
23extern int e820_all_mapped(unsigned long start, unsigned long end,
24 unsigned type);
Jan Beulichb92e9fa2007-05-02 19:27:11 +020025extern int e820_any_mapped(u64 start, u64 end, unsigned type);
bibo,maob2dff6a2006-12-07 02:14:06 +010026extern void find_max_pfn(void);
bibo,maob5b24052006-12-07 02:14:06 +010027extern void register_bootmem_low_pages(unsigned long max_low_pfn);
Yasunori Goto5c95da92006-12-22 01:09:54 -080028extern void e820_register_memory(void);
bibo,maocef518e2006-12-07 02:14:06 +010029extern void limit_regions(unsigned long long size);
30extern void print_memory_map(char *who);
Huang, Ying2215e692008-01-30 13:31:19 +010031extern void init_iomem_resources(struct resource *code_resource,
Bernhard Wallec9cce832008-01-30 13:30:32 +010032 struct resource *data_resource,
33 struct resource *bss_resource);
Arjan van de Ven95222362006-04-07 19:49:27 +020034
Rafael J. Wysockib0cb1a12007-07-29 23:24:36 +020035#if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION)
Rafael J. Wysocki1c100702007-07-21 17:11:09 +020036extern void e820_mark_nosave_regions(void);
37#else
38static inline void e820_mark_nosave_regions(void)
39{
40}
41#endif
42
Bernhard Wallec9cce832008-01-30 13:30:32 +010043
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#endif/*!__ASSEMBLY__*/
Linus Torvalds1da177e2005-04-16 15:20:36 -070045#endif/*__E820_HEADER*/