Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 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 Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 7 | #ifndef _UAPI_ASM_X86_E820_H |
| 8 | #define _UAPI_ASM_X86_E820_H |
| 9 | #define E820MAP 0x2d0 |
| 10 | #define E820MAX 128 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 11 | #define E820_X_MAX E820MAX |
| 12 | #define E820NR 0x1e8 |
| 13 | #define E820_RAM 1 |
| 14 | #define E820_RESERVED 2 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 15 | #define E820_ACPI 3 |
| 16 | #define E820_NVS 4 |
| 17 | #define E820_UNUSABLE 5 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 18 | #define E820_PMEM 7 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 19 | #define E820_PRAM 12 |
| 20 | #define E820_RESERVED_KERN 128 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 21 | #ifndef __ASSEMBLY__ |
| 22 | #include <linux/types.h> |
| 23 | struct e820entry { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | __u64 addr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | __u64 size; |
| 26 | __u32 type; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 27 | } __attribute__((packed)); |
| 28 | struct e820map { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | __u32 nr_map; |
| 30 | struct e820entry map[E820_X_MAX]; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 31 | }; |
| 32 | #define ISA_START_ADDRESS 0xa0000 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 33 | #define ISA_END_ADDRESS 0x100000 |
| 34 | #define BIOS_BEGIN 0x000a0000 |
| 35 | #define BIOS_END 0x00100000 |
| 36 | #define BIOS_ROM_BASE 0xffe00000 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 37 | #define BIOS_ROM_END 0xffffffff |
| 38 | #endif |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 39 | #endif |