Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 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 MOUNT_ROOT_RDONLY (*(unsigned short *) (PARAM+0x1F2))
33
#define RAMDISK_FLAGS (*(unsigned short *) (PARAM+0x1F8))
34
#define VIDEO_MODE (*(unsigned short *) (PARAM+0x1FA))
35
#define ORIG_ROOT_DEV (*(unsigned short *) (PARAM+0x1FC))
36
#define AUX_DEVICE_INFO (*(unsigned char *) (PARAM+0x1FF))
37
#define LOADER_TYPE (*(unsigned char *) (PARAM+0x210))
38
#define KERNEL_START (*(unsigned long *) (PARAM+0x214))
39
#define INITRD_START (*(unsigned long *) (PARAM+0x218))
40
#define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c))
41
#define EDID_INFO   (*(struct edid_info *) (PARAM+0x440))
42
#define EDD_NR     (*(unsigned char *) (PARAM+EDDNR))
43
#define EDD_BUF     ((struct edd_info *) (PARAM+EDDBUF))
44
#define COMMAND_LINE ((char *) (PARAM+2048))
45
#define COMMAND_LINE_SIZE 256
46
 
47
#endif /* _i386_SETUP_H */