- update to 2.6.1-rc2 -- first cut.
[linux-flexiantxendom0-3.2.10.git] / include / asm-i386 / setup.h
1 /*
2  *      Just a place holder. We don't want to have to test x86 before
3  *      we include stuff
4  */
5
6 #ifndef _i386_SETUP_H
7 #define _i386_SETUP_H
8
9 #define PFN_UP(x)       (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
10 #define PFN_DOWN(x)     ((x) >> PAGE_SHIFT)
11 #define PFN_PHYS(x)     ((x) << PAGE_SHIFT)
12
13 /*
14  * Reserved space for vmalloc and iomap - defined in asm/page.h
15  */
16 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
17 #define MAX_NONPAE_PFN  (1 << 20)
18
19 /*
20  * This is set up by the setup-routine at boot-time
21  */
22 #define PARAM   ((unsigned char *)empty_zero_page)
23 #define SCREEN_INFO (*(struct screen_info *) (PARAM+0))
24 #define EXT_MEM_K (*(unsigned short *) (PARAM+2))
25 #define ALT_MEM_K (*(unsigned long *) (PARAM+0x1e0))
26 #define E820_MAP_NR (*(char*) (PARAM+E820NR))
27 #define E820_MAP    ((struct e820entry *) (PARAM+E820MAP))
28 #define APM_BIOS_INFO (*(struct apm_bios_info *) (PARAM+0x40))
29 #define IST_INFO   (*(struct ist_info *) (PARAM+0x60))
30 #define DRIVE_INFO (*(struct drive_info_struct *) (PARAM+0x80))
31 #define SYS_DESC_TABLE (*(struct sys_desc_table_struct*)(PARAM+0xa0))
32 #define EFI_SYSTAB ((efi_system_table_t *) *((unsigned long *)(PARAM+0x1c4)))
33 #define EFI_MEMDESC_SIZE (*((unsigned long *) (PARAM+0x1c8)))
34 #define EFI_MEMDESC_VERSION (*((unsigned long *) (PARAM+0x1cc)))
35 #define EFI_MEMMAP ((efi_memory_desc_t *) *((unsigned long *)(PARAM+0x1d0)))
36 #define EFI_MEMMAP_SIZE (*((unsigned long *) (PARAM+0x1d4)))
37 #define MOUNT_ROOT_RDONLY (*(unsigned short *) (PARAM+0x1F2))
38 #define RAMDISK_FLAGS (*(unsigned short *) (PARAM+0x1F8))
39 #define VIDEO_MODE (*(unsigned short *) (PARAM+0x1FA))
40 #define ORIG_ROOT_DEV (*(unsigned short *) (PARAM+0x1FC))
41 #define AUX_DEVICE_INFO (*(unsigned char *) (PARAM+0x1FF))
42 #define LOADER_TYPE (*(unsigned char *) (PARAM+0x210))
43 #define KERNEL_START (*(unsigned long *) (PARAM+0x214))
44 #define INITRD_START (*(unsigned long *) (PARAM+0x218))
45 #define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c))
46 #define EDID_INFO   (*(struct edid_info *) (PARAM+0x440))
47 #define EDD_NR     (*(unsigned char *) (PARAM+EDDNR))
48 #define EDD_BUF     ((struct edd_info *) (PARAM+EDDBUF))
49 #define COMMAND_LINE ((char *) (PARAM+2048))
50 #define COMMAND_LINE_SIZE 256
51
52 #endif /* _i386_SETUP_H */