Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 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 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _UAPI_ASM_X86_E820_H |
| 20 | #define _UAPI_ASM_X86_E820_H |
| 21 | #define E820MAP 0x2d0 |
| 22 | #define E820MAX 128 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 23 | #define E820_X_MAX E820MAX |
| 24 | #define E820NR 0x1e8 |
| 25 | #define E820_RAM 1 |
| 26 | #define E820_RESERVED 2 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 27 | #define E820_ACPI 3 |
| 28 | #define E820_NVS 4 |
| 29 | #define E820_UNUSABLE 5 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 30 | #define E820_PMEM 7 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 31 | #define E820_PRAM 12 |
| 32 | #define E820_RESERVED_KERN 128 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 33 | #ifndef __ASSEMBLY__ |
| 34 | #include <linux/types.h> |
| 35 | struct e820entry { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | __u64 addr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 37 | __u64 size; |
| 38 | __u32 type; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 39 | } __attribute__((packed)); |
| 40 | struct e820map { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 41 | __u32 nr_map; |
| 42 | struct e820entry map[E820_X_MAX]; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 43 | }; |
| 44 | #define ISA_START_ADDRESS 0xa0000 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 45 | #define ISA_END_ADDRESS 0x100000 |
| 46 | #define BIOS_BEGIN 0x000a0000 |
| 47 | #define BIOS_END 0x00100000 |
| 48 | #define BIOS_ROM_BASE 0xffe00000 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 49 | #define BIOS_ROM_END 0xffffffff |
| 50 | #endif |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 51 | #endif |