blob: ed1d1a16b01ab08c99de297e0aaa8657855b1554 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Elliott Hughesabd62612013-11-08 11:45:48 -08007#ifndef _UAPI_ASM_X86_E820_H
8#define _UAPI_ASM_X86_E820_H
9#define E820MAP 0x2d0
10#define E820MAX 128
Elliott Hughesabd62612013-11-08 11:45:48 -080011#define E820_X_MAX E820MAX
12#define E820NR 0x1e8
13#define E820_RAM 1
14#define E820_RESERVED 2
Elliott Hughesabd62612013-11-08 11:45:48 -080015#define E820_ACPI 3
16#define E820_NVS 4
17#define E820_UNUSABLE 5
Christopher Ferris05d08e92016-02-04 13:16:38 -080018#define E820_PMEM 7
Christopher Ferris05d08e92016-02-04 13:16:38 -080019#define E820_PRAM 12
20#define E820_RESERVED_KERN 128
Elliott Hughesabd62612013-11-08 11:45:48 -080021#ifndef __ASSEMBLY__
22#include <linux/types.h>
23struct e820entry {
Tao Baod7db5942015-01-28 10:07:51 -080024 __u64 addr;
Tao Baod7db5942015-01-28 10:07:51 -080025 __u64 size;
26 __u32 type;
Elliott Hughesabd62612013-11-08 11:45:48 -080027} __attribute__((packed));
28struct e820map {
Tao Baod7db5942015-01-28 10:07:51 -080029 __u32 nr_map;
30 struct e820entry map[E820_X_MAX];
Elliott Hughesabd62612013-11-08 11:45:48 -080031};
32#define ISA_START_ADDRESS 0xa0000
Elliott Hughesabd62612013-11-08 11:45:48 -080033#define ISA_END_ADDRESS 0x100000
34#define BIOS_BEGIN 0x000a0000
35#define BIOS_END 0x00100000
36#define BIOS_ROM_BASE 0xffe00000
Elliott Hughesabd62612013-11-08 11:45:48 -080037#define BIOS_ROM_END 0xffffffff
38#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080039#endif