179d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/**************************************************************************** 279d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh **************************************************************************** 379d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** 479d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** This header was automatically generated from a Linux kernel header 579d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** of the same name, to make information necessary for userspace to 679d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** call into the kernel available to libc. It contains only constants, 779d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** structures, and macros generated from the original header, and thus, 879d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** contains no copyrightable information. 979d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** 1079d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** To edit the content of this header, modify the corresponding 1179d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** source file (e.g. under external/kernel-headers/original/) then 1279d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** run bionic/libc/kernel/tools/update_all.py 1379d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** 1479d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** Any manual change here will be lost the next time this script will 1579d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** be run. You've been warned! 1679d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh *** 1779d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh **************************************************************************** 1879d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh ****************************************************************************/ 1979d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#ifndef _UAPI_ASM_X86_E820_H 2079d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define _UAPI_ASM_X86_E820_H 2179d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820MAP 0x2d0 2279d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820MAX 128 2379d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2479d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_X_MAX E820MAX 2579d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820NR 0x1e8 2679d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_RAM 1 2779d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_RESERVED 2 2879d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2979d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_ACPI 3 3079d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_NVS 4 3179d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_UNUSABLE 5 3279d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define E820_RESERVED_KERN 128 3379d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3479d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#ifndef __ASSEMBLY__ 3579d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#include <linux/types.h> 3679d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsiehstruct e820entry { 3779d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh __u64 addr; 3879d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3979d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh __u64 size; 4079d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh __u32 type; 4179d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh} __attribute__((packed)); 4279d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsiehstruct e820map { 4379d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4479d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh __u32 nr_map; 4579d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh struct e820entry map[E820_X_MAX]; 4679d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh}; 4779d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define ISA_START_ADDRESS 0xa0000 4879d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4979d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define ISA_END_ADDRESS 0x100000 5079d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define BIOS_BEGIN 0x000a0000 5179d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define BIOS_END 0x00100000 5279d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define BIOS_ROM_BASE 0xffe00000 5379d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5479d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#define BIOS_ROM_END 0xffffffff 5579d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#endif 5679d3fcb11ea752a2e49630c98c5759d2885cdd04Andrew Hsieh#endif 57