Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Dave Hansen | 22a9835 | 2006-03-27 01:16:04 -0800 | [diff] [blame] | 9 | #include <linux/pfn.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
| 11 | /* |
| 12 | * Reserved space for vmalloc and iomap - defined in asm/page.h |
| 13 | */ |
| 14 | #define MAXMEM_PFN PFN_DOWN(MAXMEM) |
| 15 | #define MAX_NONPAE_PFN (1 << 20) |
| 16 | |
Venkatesh Pallipadi | f9ba705 | 2005-05-01 08:58:51 -0700 | [diff] [blame] | 17 | #define PARAM_SIZE 4096 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #define COMMAND_LINE_SIZE 256 |
| 19 | |
| 20 | #define OLD_CL_MAGIC_ADDR 0x90020 |
| 21 | #define OLD_CL_MAGIC 0xA33F |
| 22 | #define OLD_CL_BASE_ADDR 0x90000 |
| 23 | #define OLD_CL_OFFSET 0x90022 |
| 24 | #define NEW_CL_POINTER 0x228 /* Relative to real mode data */ |
| 25 | |
| 26 | #ifndef __ASSEMBLY__ |
| 27 | /* |
| 28 | * This is set up by the setup-routine at boot-time |
| 29 | */ |
| 30 | extern unsigned char boot_params[PARAM_SIZE]; |
| 31 | |
| 32 | #define PARAM (boot_params) |
| 33 | #define SCREEN_INFO (*(struct screen_info *) (PARAM+0)) |
| 34 | #define EXT_MEM_K (*(unsigned short *) (PARAM+2)) |
| 35 | #define ALT_MEM_K (*(unsigned long *) (PARAM+0x1e0)) |
| 36 | #define E820_MAP_NR (*(char*) (PARAM+E820NR)) |
| 37 | #define E820_MAP ((struct e820entry *) (PARAM+E820MAP)) |
| 38 | #define APM_BIOS_INFO (*(struct apm_bios_info *) (PARAM+0x40)) |
| 39 | #define IST_INFO (*(struct ist_info *) (PARAM+0x60)) |
| 40 | #define DRIVE_INFO (*(struct drive_info_struct *) (PARAM+0x80)) |
| 41 | #define SYS_DESC_TABLE (*(struct sys_desc_table_struct*)(PARAM+0xa0)) |
| 42 | #define EFI_SYSTAB ((efi_system_table_t *) *((unsigned long *)(PARAM+0x1c4))) |
| 43 | #define EFI_MEMDESC_SIZE (*((unsigned long *) (PARAM+0x1c8))) |
| 44 | #define EFI_MEMDESC_VERSION (*((unsigned long *) (PARAM+0x1cc))) |
Matt Tolentino | 7ae65fd | 2005-09-03 15:56:27 -0700 | [diff] [blame] | 45 | #define EFI_MEMMAP ((void *) *((unsigned long *)(PARAM+0x1d0))) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | #define EFI_MEMMAP_SIZE (*((unsigned long *) (PARAM+0x1d4))) |
| 47 | #define MOUNT_ROOT_RDONLY (*(unsigned short *) (PARAM+0x1F2)) |
| 48 | #define RAMDISK_FLAGS (*(unsigned short *) (PARAM+0x1F8)) |
| 49 | #define VIDEO_MODE (*(unsigned short *) (PARAM+0x1FA)) |
| 50 | #define ORIG_ROOT_DEV (*(unsigned short *) (PARAM+0x1FC)) |
| 51 | #define AUX_DEVICE_INFO (*(unsigned char *) (PARAM+0x1FF)) |
| 52 | #define LOADER_TYPE (*(unsigned char *) (PARAM+0x210)) |
| 53 | #define KERNEL_START (*(unsigned long *) (PARAM+0x214)) |
| 54 | #define INITRD_START (*(unsigned long *) (PARAM+0x218)) |
| 55 | #define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c)) |
| 56 | #define EDID_INFO (*(struct edid_info *) (PARAM+0x140)) |
| 57 | #define EDD_NR (*(unsigned char *) (PARAM+EDDNR)) |
| 58 | #define EDD_MBR_SIG_NR (*(unsigned char *) (PARAM+EDD_MBR_SIG_NR_BUF)) |
| 59 | #define EDD_MBR_SIGNATURE ((unsigned int *) (PARAM+EDD_MBR_SIG_BUF)) |
| 60 | #define EDD_BUF ((struct edd_info *) (PARAM+EDDBUF)) |
| 61 | |
| 62 | #endif /* __ASSEMBLY__ */ |
| 63 | |
| 64 | #endif /* _i386_SETUP_H */ |