1abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/**************************************************************************** 2abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes **************************************************************************** 3abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 4abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** This header was automatically generated from a Linux kernel header 5abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** of the same name, to make information necessary for userspace to 6abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** call into the kernel available to libc. It contains only constants, 7abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** structures, and macros generated from the original header, and thus, 8abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** contains no copyrightable information. 9abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 10abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** To edit the content of this header, modify the corresponding 11abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** source file (e.g. under external/kernel-headers/original/) then 12abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** run bionic/libc/kernel/tools/update_all.py 13abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 14abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** Any manual change here will be lost the next time this script will 15abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** be run. You've been warned! 16abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes *** 17abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes **************************************************************************** 18abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************/ 19abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#ifndef _ASM_X86_BOOTPARAM_H 20abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define _ASM_X86_BOOTPARAM_H 21abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define SETUP_NONE 0 22abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define SETUP_E820_EXT 1 23abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define SETUP_DTB 2 25abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define SETUP_PCI 3 2638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define SETUP_EFI 4 27abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define RAMDISK_IMAGE_START_MASK 0x07FF 28abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define RAMDISK_PROMPT_FLAG 0x8000 30abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define RAMDISK_LOAD_FLAG 0x4000 31d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define LOADED_HIGH (1 << 0) 3205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define KASLR_FLAG (1 << 1) 33abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define QUIET_FLAG (1 << 5) 35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define KEEP_SEGMENTS (1 << 6) 36d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define CAN_USE_HEAP (1 << 7) 37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define XLF_KERNEL_64 (1 << 0) 38abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define XLF_CAN_BE_LOADED_ABOVE_4G (1 << 1) 40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define XLF_EFI_HANDOVER_32 (1 << 2) 41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define XLF_EFI_HANDOVER_64 (1 << 3) 42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define XLF_EFI_KEXEC (1 << 4) 4338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#ifndef __ASSEMBLY__ 45abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <linux/types.h> 46abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <linux/screen_info.h> 47abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <linux/apm_bios.h> 4838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#include <linux/edd.h> 50abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <asm/e820.h> 51abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <asm/ist.h> 52abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <video/edid.h> 5338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5405d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct setup_data { 55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 next; 56d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 type; 57d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 len; 5838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 data[0]; 60abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes}; 61abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct setup_header { 62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 setup_sects; 63d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 6405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u16 root_flags; 65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 syssize; 66d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 ram_size; 67d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 vid_mode; 68d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 6905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u16 root_dev; 70d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 boot_flag; 71d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 jump; 72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 header; 73d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 7405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u16 version; 75d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 realmode_swtch; 76d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 start_sys; 77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 kernel_version; 78d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 7905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 type_of_loader; 80d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 loadflags; 81d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 setup_move_size; 82d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 code32_start; 83d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 8405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 ramdisk_image; 85d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 ramdisk_size; 86d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 bootsect_kludge; 87d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 heap_end_ptr; 88d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 8905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 ext_loader_ver; 90d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 ext_loader_type; 91d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 cmd_line_ptr; 92d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 initrd_addr_max; 93d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 9405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 kernel_alignment; 95d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 relocatable_kernel; 96d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 min_alignment; 97d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 xloadflags; 98d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 9905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 cmdline_size; 100d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 hardware_subarch; 101d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 hardware_subarch_data; 102d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 payload_offset; 103d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 10405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 payload_length; 105d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 setup_data; 106d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 pref_address; 107d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 init_size; 10838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 10905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 handover_offset; 110abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes} __attribute__((packed)); 111abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct sys_desc_table { 112d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u16 length; 11338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 11405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 table[14]; 115abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes}; 116abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct olpc_ofw_header { 117d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 ofw_magic; 11838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 11905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 ofw_version; 120d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 cif_handler; 121d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 irq_desc_table; 122abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes} __attribute__((packed)); 12338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 12405d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct efi_info { 125d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 efi_loader_signature; 126d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 efi_systab; 127d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 efi_memdesc_size; 12838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 12905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 efi_memdesc_version; 130d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 efi_memmap; 131d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 efi_memmap_size; 132d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 efi_systab_hi; 13338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 13405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 efi_memmap_hi; 135abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes}; 136abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct boot_params { 137d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct screen_info screen_info; 138d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 13905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris struct apm_bios_info apm_bios_info; 140d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 _pad2[4]; 141d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u64 tboot_addr; 142d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct ist_info ist_info; 143d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 14405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 _pad3[16]; 145d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 hd0_info[16]; 146d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 hd1_info[16]; 147d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct sys_desc_table sys_desc_table; 148d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 14905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris struct olpc_ofw_header olpc_ofw_header; 150d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 ext_ramdisk_image; 151d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 ext_ramdisk_size; 152d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 ext_cmd_line_ptr; 153d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 15405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 _pad4[116]; 155d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct edid_info edid_info; 156d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct efi_info efi_info; 157d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 alt_mem_k; 158d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 15905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 scratch; 160d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 e820_entries; 161d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 eddbuf_entries; 162d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 edd_mbr_sig_buf_entries; 163d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 16405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 kbd_status; 165d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 _pad5[3]; 166d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 sentinel; 167d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 _pad6[1]; 168d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 16905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris struct setup_header hdr; 170d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 _pad7[0x290 - 0x1f1 - sizeof(struct setup_header)]; 171d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 edd_mbr_sig_buffer[EDD_MBR_SIG_MAX]; 172d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct e820entry e820_map[E820MAX]; 173d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 17405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 _pad8[48]; 175d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct edd_info eddbuf[EDDMAXNR]; 176d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 _pad9[276]; 177abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes} __attribute__((packed)); 17838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 17905d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum { 180d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao X86_SUBARCH_PC = 0, 181d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao X86_SUBARCH_LGUEST, 182d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao X86_SUBARCH_XEN, 18338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 18405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris X86_SUBARCH_INTEL_MID, 185d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao X86_SUBARCH_CE4100, 186d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao X86_NR_SUBARCHS, 187abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes}; 18838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#endif 19005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#endif 191