bootparam.h revision 05d08e9716b5974d6ed08973f44930804890b902
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 _ASM_X86_BOOTPARAM_H
20#define _ASM_X86_BOOTPARAM_H
21#define SETUP_NONE 0
22#define SETUP_E820_EXT 1
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SETUP_DTB 2
25#define SETUP_PCI 3
26#define SETUP_EFI 4
27#define RAMDISK_IMAGE_START_MASK 0x07FF
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define RAMDISK_PROMPT_FLAG 0x8000
30#define RAMDISK_LOAD_FLAG 0x4000
31#define LOADED_HIGH (1 << 0)
32#define KASLR_FLAG (1 << 1)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define QUIET_FLAG (1 << 5)
35#define KEEP_SEGMENTS (1 << 6)
36#define CAN_USE_HEAP (1 << 7)
37#define XLF_KERNEL_64 (1 << 0)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define XLF_CAN_BE_LOADED_ABOVE_4G (1 << 1)
40#define XLF_EFI_HANDOVER_32 (1 << 2)
41#define XLF_EFI_HANDOVER_64 (1 << 3)
42#define XLF_EFI_KEXEC (1 << 4)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#ifndef __ASSEMBLY__
45#include <linux/types.h>
46#include <linux/screen_info.h>
47#include <linux/apm_bios.h>
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#include <linux/edd.h>
50#include <asm/e820.h>
51#include <asm/ist.h>
52#include <video/edid.h>
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54struct setup_data {
55  __u64 next;
56  __u32 type;
57  __u32 len;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __u8 data[0];
60};
61struct setup_header {
62  __u8 setup_sects;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  __u16 root_flags;
65  __u32 syssize;
66  __u16 ram_size;
67  __u16 vid_mode;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  __u16 root_dev;
70  __u16 boot_flag;
71  __u16 jump;
72  __u32 header;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  __u16 version;
75  __u32 realmode_swtch;
76  __u16 start_sys;
77  __u16 kernel_version;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  __u8 type_of_loader;
80  __u8 loadflags;
81  __u16 setup_move_size;
82  __u32 code32_start;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  __u32 ramdisk_image;
85  __u32 ramdisk_size;
86  __u32 bootsect_kludge;
87  __u16 heap_end_ptr;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __u8 ext_loader_ver;
90  __u8 ext_loader_type;
91  __u32 cmd_line_ptr;
92  __u32 initrd_addr_max;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  __u32 kernel_alignment;
95  __u8 relocatable_kernel;
96  __u8 min_alignment;
97  __u16 xloadflags;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  __u32 cmdline_size;
100  __u32 hardware_subarch;
101  __u64 hardware_subarch_data;
102  __u32 payload_offset;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  __u32 payload_length;
105  __u64 setup_data;
106  __u64 pref_address;
107  __u32 init_size;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  __u32 handover_offset;
110} __attribute__((packed));
111struct sys_desc_table {
112  __u16 length;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114  __u8 table[14];
115};
116struct olpc_ofw_header {
117  __u32 ofw_magic;
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119  __u32 ofw_version;
120  __u32 cif_handler;
121  __u32 irq_desc_table;
122} __attribute__((packed));
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124struct efi_info {
125  __u32 efi_loader_signature;
126  __u32 efi_systab;
127  __u32 efi_memdesc_size;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129  __u32 efi_memdesc_version;
130  __u32 efi_memmap;
131  __u32 efi_memmap_size;
132  __u32 efi_systab_hi;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  __u32 efi_memmap_hi;
135};
136struct boot_params {
137  struct screen_info screen_info;
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139  struct apm_bios_info apm_bios_info;
140  __u8 _pad2[4];
141  __u64 tboot_addr;
142  struct ist_info ist_info;
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144  __u8 _pad3[16];
145  __u8 hd0_info[16];
146  __u8 hd1_info[16];
147  struct sys_desc_table sys_desc_table;
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149  struct olpc_ofw_header olpc_ofw_header;
150  __u32 ext_ramdisk_image;
151  __u32 ext_ramdisk_size;
152  __u32 ext_cmd_line_ptr;
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154  __u8 _pad4[116];
155  struct edid_info edid_info;
156  struct efi_info efi_info;
157  __u32 alt_mem_k;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159  __u32 scratch;
160  __u8 e820_entries;
161  __u8 eddbuf_entries;
162  __u8 edd_mbr_sig_buf_entries;
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164  __u8 kbd_status;
165  __u8 _pad5[3];
166  __u8 sentinel;
167  __u8 _pad6[1];
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169  struct setup_header hdr;
170  __u8 _pad7[0x290 - 0x1f1 - sizeof(struct setup_header)];
171  __u32 edd_mbr_sig_buffer[EDD_MBR_SIG_MAX];
172  struct e820entry e820_map[E820MAX];
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174  __u8 _pad8[48];
175  struct edd_info eddbuf[EDDMAXNR];
176  __u8 _pad9[276];
177} __attribute__((packed));
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179enum {
180  X86_SUBARCH_PC = 0,
181  X86_SUBARCH_LGUEST,
182  X86_SUBARCH_XEN,
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184  X86_SUBARCH_INTEL_MID,
185  X86_SUBARCH_CE4100,
186  X86_NR_SUBARCHS,
187};
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#endif
190#endif
191