diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 15:18:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 13:55:54 -0400 |
commit | 48c7ae674f03e56c78ff42c6796a36e90db67874 (patch) | |
tree | ecca581aa246142ac4b9ea4f3960cc7817bb3c48 /include/asm-i386/bootparam.h | |
parent | 9c25d134b3735a4b197e108b4c7d6bbec1a275e8 (diff) |
Make struct boot_params a real structure, and remove obsolete fields
Make struct boot_params a real structure, and remove the handling of
some obsolete fields, in particular hd*_info, which was only used by
the ST-506 driver, and likely to be wrong for that driver on any
modern BIOS.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-i386/bootparam.h')
-rw-r--r-- | include/asm-i386/bootparam.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/include/asm-i386/bootparam.h b/include/asm-i386/bootparam.h new file mode 100644 index 000000000000..427d8652bfde --- /dev/null +++ b/include/asm-i386/bootparam.h | |||
@@ -0,0 +1,85 @@ | |||
1 | #ifndef _ASM_BOOTPARAM_H | ||
2 | #define _ASM_BOOTPARAM_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include <linux/screen_info.h> | ||
6 | #include <linux/apm_bios.h> | ||
7 | #include <asm/e820.h> | ||
8 | #include <linux/edd.h> | ||
9 | #include <video/edid.h> | ||
10 | |||
11 | struct setup_header { | ||
12 | u8 setup_sects; | ||
13 | u16 root_flags; | ||
14 | u32 syssize; | ||
15 | u16 ram_size; | ||
16 | u16 vid_mode; | ||
17 | u16 root_dev; | ||
18 | u16 boot_flag; | ||
19 | u16 jump; | ||
20 | u32 header; | ||
21 | u16 version; | ||
22 | u32 realmode_swtch; | ||
23 | u16 start_sys; | ||
24 | u16 kernel_version; | ||
25 | u8 type_of_loader; | ||
26 | u8 loadflags; | ||
27 | #define LOADED_HIGH 0x01 | ||
28 | #define CAN_USE_HEAP 0x80 | ||
29 | u16 setup_move_size; | ||
30 | u32 code32_start; | ||
31 | u32 ramdisk_image; | ||
32 | u32 ramdisk_size; | ||
33 | u32 bootsect_kludge; | ||
34 | u16 heap_end_ptr; | ||
35 | u16 _pad1; | ||
36 | u32 cmd_line_ptr; | ||
37 | u32 initrd_addr_max; | ||
38 | u32 kernel_alignment; | ||
39 | u8 relocatable_kernel; | ||
40 | } __attribute__((packed)); | ||
41 | |||
42 | struct sys_desc_table { | ||
43 | u16 length; | ||
44 | u8 table[14]; | ||
45 | }; | ||
46 | |||
47 | struct efi_info { | ||
48 | u32 _pad1; | ||
49 | u32 efi_systab; | ||
50 | u32 efi_memdesc_size; | ||
51 | u32 efi_memdec_version; | ||
52 | u32 efi_memmap; | ||
53 | u32 fi_memmap_size; | ||
54 | u32 _pad2[2]; | ||
55 | }; | ||
56 | |||
57 | /* The so-called "zeropage" */ | ||
58 | struct boot_params { | ||
59 | struct screen_info screen_info; /* 0x000 */ | ||
60 | struct apm_bios_info apm_bios_info; /* 0x040 */ | ||
61 | u8 _pad2[12]; /* 0x054 */ | ||
62 | u32 speedstep_info[4]; /* 0x060 */ | ||
63 | u8 _pad3[16]; /* 0x070 */ | ||
64 | u8 hd0_info[16]; /* obsolete! */ /* 0x080 */ | ||
65 | u8 hd1_info[16]; /* obsolete! */ /* 0x090 */ | ||
66 | struct sys_desc_table sys_desc_table; /* 0x0a0 */ | ||
67 | u8 _pad4[144]; /* 0x0b0 */ | ||
68 | struct edid_info edid_info; /* 0x140 */ | ||
69 | struct efi_info efi_info; /* 0x1c0 */ | ||
70 | u32 alt_mem_k; /* 0x1e0 */ | ||
71 | u32 scratch; /* Scratch field! */ /* 0x1e4 */ | ||
72 | u8 e820_entries; /* 0x1e8 */ | ||
73 | u8 eddbuf_entries; /* 0x1e9 */ | ||
74 | u8 edd_mbr_sig_buf_entries; /* 0x1ea */ | ||
75 | u8 _pad6[6]; /* 0x1eb */ | ||
76 | struct setup_header hdr; /* setup header */ /* 0x1f1 */ | ||
77 | u8 _pad7[0x290-0x1f1-sizeof(struct setup_header)]; | ||
78 | u32 edd_mbr_sig_buffer[EDD_MBR_SIG_MAX]; /* 0x290 */ | ||
79 | struct e820entry e820_map[E820MAX]; /* 0x2d0 */ | ||
80 | u8 _pad8[48]; /* 0xcd0 */ | ||
81 | struct edd_info eddbuf[EDDMAXNR]; /* 0xd00 */ | ||
82 | u8 _pad9[276]; /* 0xeec */ | ||
83 | } __attribute__((packed)); | ||
84 | |||
85 | #endif /* _ASM_BOOTPARAM_H */ | ||