OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / bionic / libc / kernel / arch-x86 / asm / e820.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __ASM_E820_H
13 #define __ASM_E820_H
14 #define E820MAP 0x2d0  
15 #define E820MAX 128  
16 #define E820NR 0x1e8  
17
18 #define E820_RAM 1
19 #define E820_RESERVED 2
20 #define E820_ACPI 3
21 #define E820_NVS 4
22
23 #ifndef __ASSEMBLY__
24 struct e820entry {
25  __u64 addr;
26  __u64 size;
27  __u32 type;
28 } __attribute__((packed));
29
30 struct e820map {
31  __u32 nr_map;
32  struct e820entry map[E820MAX];
33 };
34 #endif
35
36 #endif