]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - include/asm-x86/e820_32.h
x86_32: trim memory by updating e820
[mirror_ubuntu-eoan-kernel.git] / include / asm-x86 / e820_32.h
CommitLineData
1da177e4
LT
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
c9cce83d
BW
15#include <linux/ioport.h>
16
1da177e4
LT
17#define HIGH_MEMORY (1024*1024)
18
19#ifndef __ASSEMBLY__
20
1da177e4 21extern struct e820map e820;
093af8d7 22extern void update_e820(void);
95222368
AV
23
24extern int e820_all_mapped(unsigned long start, unsigned long end,
25 unsigned type);
b92e9fac 26extern int e820_any_mapped(u64 start, u64 end, unsigned type);
b2dff6a8 27extern void find_max_pfn(void);
b5b24057 28extern void register_bootmem_low_pages(unsigned long max_low_pfn);
093af8d7
YL
29extern void add_memory_region(unsigned long long start,
30 unsigned long long size, int type);
5c95da9f 31extern void e820_register_memory(void);
cef518e8 32extern void limit_regions(unsigned long long size);
33extern void print_memory_map(char *who);
2215e69d 34extern void init_iomem_resources(struct resource *code_resource,
c9cce83d
BW
35 struct resource *data_resource,
36 struct resource *bss_resource);
95222368 37
b0cb1a19 38#if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION)
1c10070a
RW
39extern void e820_mark_nosave_regions(void);
40#else
41static inline void e820_mark_nosave_regions(void)
42{
43}
44#endif
45
c9cce83d 46
1da177e4 47#endif/*!__ASSEMBLY__*/
1da177e4 48#endif/*__E820_HEADER*/