Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bootparam.h
Go to the documentation of this file.
1 #ifndef _ASM_X86_BOOTPARAM_H
2 #define _ASM_X86_BOOTPARAM_H
3 
4 #include <linux/types.h>
5 #include <linux/screen_info.h>
6 #include <linux/apm_bios.h>
7 #include <linux/edd.h>
8 #include <asm/e820.h>
9 #include <asm/ist.h>
10 #include <video/edid.h>
11 
12 /* setup data types */
13 #define SETUP_NONE 0
14 #define SETUP_E820_EXT 1
15 #define SETUP_DTB 2
16 
17 /* extensible setup data list node */
18 struct setup_data {
22  __u8 data[0];
23 };
24 
25 struct setup_header {
30 #define RAMDISK_IMAGE_START_MASK 0x07FF
31 #define RAMDISK_PROMPT_FLAG 0x8000
32 #define RAMDISK_LOAD_FLAG 0x4000
44 #define LOADED_HIGH (1<<0)
45 #define QUIET_FLAG (1<<5)
46 #define KEEP_SEGMENTS (1<<6)
47 #define CAN_USE_HEAP (1<<7)
60  __u8 _pad2[3];
70 } __attribute__((packed));
71 
74  __u8 table[14];
75 };
76 
77 /* Gleaned from OFW's set-parameters in cpu/x86/pc/linux.fth */
79  __u32 ofw_magic; /* OFW signature */
81  __u32 cif_handler; /* callback into OFW */
83 } __attribute__((packed));
84 
85 struct efi_info {
94 };
95 
96 /* The so-called "zeropage" */
97 struct boot_params {
98  struct screen_info screen_info; /* 0x000 */
99  struct apm_bios_info apm_bios_info; /* 0x040 */
100  __u8 _pad2[4]; /* 0x054 */
101  __u64 tboot_addr; /* 0x058 */
102  struct ist_info ist_info; /* 0x060 */
103  __u8 _pad3[16]; /* 0x070 */
104  __u8 hd0_info[16]; /* obsolete! */ /* 0x080 */
105  __u8 hd1_info[16]; /* obsolete! */ /* 0x090 */
106  struct sys_desc_table sys_desc_table; /* 0x0a0 */
107  struct olpc_ofw_header olpc_ofw_header; /* 0x0b0 */
108  __u8 _pad4[128]; /* 0x0c0 */
109  struct edid_info edid_info; /* 0x140 */
110  struct efi_info efi_info; /* 0x1c0 */
111  __u32 alt_mem_k; /* 0x1e0 */
112  __u32 scratch; /* Scratch field! */ /* 0x1e4 */
113  __u8 e820_entries; /* 0x1e8 */
114  __u8 eddbuf_entries; /* 0x1e9 */
116  __u8 kbd_status; /* 0x1eb */
117  __u8 _pad6[5]; /* 0x1ec */
118  struct setup_header hdr; /* setup header */ /* 0x1f1 */
119  __u8 _pad7[0x290-0x1f1-sizeof(struct setup_header)];
121  struct e820entry e820_map[E820MAX]; /* 0x2d0 */
122  __u8 _pad8[48]; /* 0xcd0 */
123  struct edd_info eddbuf[EDDMAXNR]; /* 0xd00 */
124  __u8 _pad9[276]; /* 0xeec */
125 } __attribute__((packed));
127 enum {
134 };
138 #endif /* _ASM_X86_BOOTPARAM_H */