Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


bootparam.h
001: #ifndef _ASM_X86_BOOTPARAM_H
002: #define _ASM_X86_BOOTPARAM_H
003: 
004: #include <linux/types.h>
005: #include <linux/screen_info.h>
006: #include <linux/apm_bios.h>
007: #include <linux/edd.h>
008: #include <asm/e820.h>
009: #include <asm/ist.h>
010: #include <video/edid.h>
011: 
012: /* setup data types */
013: #define SETUP_NONE                      0
014: #define SETUP_E820_EXT                  1
015: #define SETUP_DTB                       2
016: 
017: /* extensible setup data list node */
018: struct setup_data {
019:         __u64 next;
020:         __u32 type;
021:         __u32 len;
022:         __u8 data[0];
023: };
024: 
025: struct setup_header {
026:         __u8    setup_sects;
027:         __u16   root_flags;
028:         __u32   syssize;
029:         __u16   ram_size;
030: #define RAMDISK_IMAGE_START_MASK        0x07FF
031: #define RAMDISK_PROMPT_FLAG             0x8000
032: #define RAMDISK_LOAD_FLAG               0x4000
033:         __u16   vid_mode;
034:         __u16   root_dev;
035:         __u16   boot_flag;
036:         __u16   jump;
037:         __u32   header;
038:         __u16   version;
039:         __u32   realmode_swtch;
040:         __u16   start_sys;
041:         __u16   kernel_version;
042:         __u8    type_of_loader;
043:         __u8    loadflags;
044: #define LOADED_HIGH     (1<<0)
045: #define QUIET_FLAG      (1<<5)
046: #define KEEP_SEGMENTS   (1<<6)
047: #define CAN_USE_HEAP    (1<<7)
048:         __u16   setup_move_size;
049:         __u32   code32_start;
050:         __u32   ramdisk_image;
051:         __u32   ramdisk_size;
052:         __u32   bootsect_kludge;
053:         __u16   heap_end_ptr;
054:         __u8    ext_loader_ver;
055:         __u8    ext_loader_type;
056:         __u32   cmd_line_ptr;
057:         __u32   initrd_addr_max;
058:         __u32   kernel_alignment;
059:         __u8    relocatable_kernel;
060:         __u8    _pad2[3];
061:         __u32   cmdline_size;
062:         __u32   hardware_subarch;
063:         __u64   hardware_subarch_data;
064:         __u32   payload_offset;
065:         __u32   payload_length;
066:         __u64   setup_data;
067: } __attribute__((packed));
068: 
069: struct sys_desc_table {
070:         __u16 length;
071:         __u8  table[14];
072: };
073: 
074: /* Gleaned from OFW's set-parameters in cpu/x86/pc/linux.fth */
075: struct olpc_ofw_header {
076:         __u32 ofw_magic;        /* OFW signature */
077:         __u32 ofw_version;
078:         __u32 cif_handler;      /* callback into OFW */
079:         __u32 irq_desc_table;
080: } __attribute__((packed));
081: 
082: struct efi_info {
083:         __u32 efi_loader_signature;
084:         __u32 efi_systab;
085:         __u32 efi_memdesc_size;
086:         __u32 efi_memdesc_version;
087:         __u32 efi_memmap;
088:         __u32 efi_memmap_size;
089:         __u32 efi_systab_hi;
090:         __u32 efi_memmap_hi;
091: };
092: 
093: /* The so-called "zeropage" */
094: struct boot_params {
095:         struct screen_info screen_info;                 /* 0x000 */
096:         struct apm_bios_info apm_bios_info;             /* 0x040 */
097:         __u8  _pad2[4];                                 /* 0x054 */
098:         __u64  tboot_addr;                              /* 0x058 */
099:         struct ist_info ist_info;                       /* 0x060 */
100:         __u8  _pad3[16];                                /* 0x070 */
101:         __u8  hd0_info[16];     /* obsolete! */         /* 0x080 */
102:         __u8  hd1_info[16];     /* obsolete! */         /* 0x090 */
103:         struct sys_desc_table sys_desc_table;           /* 0x0a0 */
104:         struct olpc_ofw_header olpc_ofw_header;         /* 0x0b0 */
105:         __u8  _pad4[128];                               /* 0x0c0 */
106:         struct edid_info edid_info;                     /* 0x140 */
107:         struct efi_info efi_info;                       /* 0x1c0 */
108:         __u32 alt_mem_k;                                /* 0x1e0 */
109:         __u32 scratch;          /* Scratch field! */    /* 0x1e4 */
110:         __u8  e820_entries;                             /* 0x1e8 */
111:         __u8  eddbuf_entries;                           /* 0x1e9 */
112:         __u8  edd_mbr_sig_buf_entries;                  /* 0x1ea */
113:         __u8  _pad6[6];                                 /* 0x1eb */
114:         struct setup_header hdr;    /* setup header */  /* 0x1f1 */
115:         __u8  _pad7[0x290-0x1f1-sizeof(struct setup_header)];
116:         __u32 edd_mbr_sig_buffer[EDD_MBR_SIG_MAX];      /* 0x290 */
117:         struct e820entry e820_map[E820MAX];             /* 0x2d0 */
118:         __u8  _pad8[48];                                /* 0xcd0 */
119:         struct edd_info eddbuf[EDDMAXNR];               /* 0xd00 */
120:         __u8  _pad9[276];                               /* 0xeec */
121: } __attribute__((packed));
122: 
123: enum {
124:         X86_SUBARCH_PC = 0,
125:         X86_SUBARCH_LGUEST,
126:         X86_SUBARCH_XEN,
127:         X86_SUBARCH_MRST,
128:         X86_SUBARCH_CE4100,
129:         X86_NR_SUBARCHS,
130: };
131: 
132: 
133: 
134: #endif /* _ASM_X86_BOOTPARAM_H */
135: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/