aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/bootsetup.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-x86_64/bootsetup.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-x86_64/bootsetup.h')
-rw-r--r--include/asm-x86_64/bootsetup.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/asm-x86_64/bootsetup.h b/include/asm-x86_64/bootsetup.h
new file mode 100644
index 000000000000..b570a484dc50
--- /dev/null
+++ b/include/asm-x86_64/bootsetup.h
@@ -0,0 +1,39 @@
1
2#ifndef _X86_64_BOOTSETUP_H
3#define _X86_64_BOOTSETUP_H 1
4
5extern char x86_boot_params[2048];
6
7/*
8 * This is set up by the setup-routine at boot-time
9 */
10#define PARAM ((unsigned char *)x86_boot_params)
11#define SCREEN_INFO (*(struct screen_info *) (PARAM+0))
12#define EXT_MEM_K (*(unsigned short *) (PARAM+2))
13#define ALT_MEM_K (*(unsigned int *) (PARAM+0x1e0))
14#define E820_MAP_NR (*(char*) (PARAM+E820NR))
15#define E820_MAP ((struct e820entry *) (PARAM+E820MAP))
16#define APM_BIOS_INFO (*(struct apm_bios_info *) (PARAM+0x40))
17#define DRIVE_INFO (*(struct drive_info_struct *) (PARAM+0x80))
18#define SYS_DESC_TABLE (*(struct sys_desc_table_struct*)(PARAM+0xa0))
19#define MOUNT_ROOT_RDONLY (*(unsigned short *) (PARAM+0x1F2))
20#define RAMDISK_FLAGS (*(unsigned short *) (PARAM+0x1F8))
21#define SAVED_VIDEO_MODE (*(unsigned short *) (PARAM+0x1FA))
22#define ORIG_ROOT_DEV (*(unsigned short *) (PARAM+0x1FC))
23#define AUX_DEVICE_INFO (*(unsigned char *) (PARAM+0x1FF))
24#define LOADER_TYPE (*(unsigned char *) (PARAM+0x210))
25#define KERNEL_START (*(unsigned int *) (PARAM+0x214))
26#define INITRD_START (*(unsigned int *) (PARAM+0x218))
27#define INITRD_SIZE (*(unsigned int *) (PARAM+0x21c))
28#define EDID_INFO (*(struct edid_info *) (PARAM+0x140))
29#define EDD_NR (*(unsigned char *) (PARAM+EDDNR))
30#define EDD_MBR_SIG_NR (*(unsigned char *) (PARAM+EDD_MBR_SIG_NR_BUF))
31#define EDD_MBR_SIGNATURE ((unsigned int *) (PARAM+EDD_MBR_SIG_BUF))
32#define EDD_BUF ((struct edd_info *) (PARAM+EDDBUF))
33#define COMMAND_LINE saved_command_line
34
35#define RAMDISK_IMAGE_START_MASK 0x07FF
36#define RAMDISK_PROMPT_FLAG 0x8000
37#define RAMDISK_LOAD_FLAG 0x4000
38
39#endif