Blame view
include/asm-x86_64/e820.h
1.88 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 4 5 6 7 8 9 10 11 12 |
/* * structures and definitions for the int 15, ax=e820 memory map * scheme. * * In a nutshell, setup.S populates a scratch table in the * empty_zero_block that contains a list of usable address/size * duples. setup.c, this information is transferred into the e820map, * and in init.c/numa.c, that new information is used to mark pages * reserved or not. */ #ifndef __E820_HEADER #define __E820_HEADER |
1da177e4c Linux-2.6.12-rc2 |
13 |
#define E820MAP 0x2d0 /* our map */ |
f9ba70535 [PATCH] Increase ... |
14 |
#define E820MAX 128 /* number of entries in E820MAP */ |
1da177e4c Linux-2.6.12-rc2 |
15 16 17 18 |
#define E820NR 0x1e8 /* # entries in E820MAP */ #define E820_RAM 1 #define E820_RESERVED 2 |
80d2679cb [PATCH] x86: Remo... |
19 |
#define E820_ACPI 3 |
1da177e4c Linux-2.6.12-rc2 |
20 |
#define E820_NVS 4 |
1da177e4c Linux-2.6.12-rc2 |
21 22 23 24 25 26 27 28 |
#ifndef __ASSEMBLY__ struct e820entry { u64 addr; /* start of memory segment */ u64 size; /* size of memory segment */ u32 type; /* type of memory segment */ } __attribute__((packed)); struct e820map { |
9c25d134b Make definitions ... |
29 |
u32 nr_map; |
1da177e4c Linux-2.6.12-rc2 |
30 31 32 33 34 35 36 37 38 39 40 |
struct e820entry map[E820MAX]; }; extern unsigned long find_e820_area(unsigned long start, unsigned long end, unsigned size); extern void add_memory_region(unsigned long start, unsigned long size, int type); extern void setup_memory_region(void); extern void contig_e820_setup(void); extern unsigned long e820_end_of_ram(void); extern void e820_reserve_resources(void); |
e8eff5ac2 [PATCH] Make swsu... |
41 |
extern void e820_mark_nosave_regions(void); |
1da177e4c Linux-2.6.12-rc2 |
42 |
extern void e820_print_map(char *who); |
eee5a9fa6 [PATCH] x86_64: R... |
43 |
extern int e820_any_mapped(unsigned long start, unsigned long end, unsigned type); |
952223683 [PATCH] x86_64: I... |
44 |
extern int e820_all_mapped(unsigned long start, unsigned long end, unsigned type); |
53fee04f3 [PATCH] x86-64: F... |
45 |
extern unsigned long e820_hole_size(unsigned long start, unsigned long end); |
1da177e4c Linux-2.6.12-rc2 |
46 |
|
a1e977820 [PATCH] x86_64: P... |
47 |
extern void e820_setup_gap(void); |
5cb248abf [PATCH] Have x86_... |
48 49 |
extern void e820_register_active_regions(int nid, unsigned long start_pfn, unsigned long end_pfn); |
1da177e4c Linux-2.6.12-rc2 |
50 |
|
2c8c0e6b8 [PATCH] Convert x... |
51 |
extern void finish_e820_parsing(void); |
1da177e4c Linux-2.6.12-rc2 |
52 53 |
extern struct e820map e820; |
ac71d12c9 [PATCH] x86_64: A... |
54 55 |
extern unsigned ebda_addr, ebda_size; |
076422d2a [PATCH] x86-64: A... |
56 |
extern unsigned long nodemap_addr, nodemap_size; |
1da177e4c Linux-2.6.12-rc2 |
57 58 59 |
#endif/*!__ASSEMBLY__*/ #endif/*__E820_HEADER*/ |