]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/x86/include/asm/setup.h
x86: corruption check: move the corruption checks into their own file
[linux-2.6-omap-h63xx.git] / arch / x86 / include / asm / setup.h
1 #ifndef _ASM_X86_SETUP_H
2 #define _ASM_X86_SETUP_H
3
4 #define COMMAND_LINE_SIZE 2048
5
6 #ifndef __ASSEMBLY__
7
8 /* Interrupt control for vSMPowered x86_64 systems */
9 void vsmp_init(void);
10
11
12 void setup_bios_corruption_check(void);
13
14
15 #ifdef CONFIG_X86_VISWS
16 extern void visws_early_detect(void);
17 extern int is_visws_box(void);
18 #else
19 static inline void visws_early_detect(void) { }
20 static inline int is_visws_box(void) { return 0; }
21 #endif
22
23 /*
24  * Any setup quirks to be performed?
25  */
26 struct mpc_config_processor;
27 struct mpc_config_bus;
28 struct mp_config_oemtable;
29 struct x86_quirks {
30         int (*arch_pre_time_init)(void);
31         int (*arch_time_init)(void);
32         int (*arch_pre_intr_init)(void);
33         int (*arch_intr_init)(void);
34         int (*arch_trap_init)(void);
35         char * (*arch_memory_setup)(void);
36         int (*mach_get_smp_config)(unsigned int early);
37         int (*mach_find_smp_config)(unsigned int reserve);
38
39         int *mpc_record;
40         int (*mpc_apic_id)(struct mpc_config_processor *m);
41         void (*mpc_oem_bus_info)(struct mpc_config_bus *m, char *name);
42         void (*mpc_oem_pci_bus)(struct mpc_config_bus *m);
43         void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable,
44                                     unsigned short oemsize);
45         int (*setup_ioapic_ids)(void);
46 };
47
48 extern struct x86_quirks *x86_quirks;
49 extern unsigned long saved_video_mode;
50
51 #ifndef CONFIG_PARAVIRT
52 #define paravirt_post_allocator_init()  do {} while (0)
53 #endif
54 #endif /* __ASSEMBLY__ */
55
56 #ifdef __KERNEL__
57
58 #ifdef __i386__
59
60 #include <linux/pfn.h>
61 /*
62  * Reserved space for vmalloc and iomap - defined in asm/page.h
63  */
64 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
65 #define MAX_NONPAE_PFN  (1 << 20)
66
67 #endif /* __i386__ */
68
69 #define PARAM_SIZE 4096         /* sizeof(struct boot_params) */
70
71 #define OLD_CL_MAGIC            0xA33F
72 #define OLD_CL_ADDRESS          0x020   /* Relative to real mode data */
73 #define NEW_CL_POINTER          0x228   /* Relative to real mode data */
74
75 #ifndef __ASSEMBLY__
76 #include <asm/bootparam.h>
77
78 #ifndef _SETUP
79
80 /*
81  * This is set up by the setup-routine at boot-time
82  */
83 extern struct boot_params boot_params;
84
85 /*
86  * Do NOT EVER look at the BIOS memory size location.
87  * It does not work on many machines.
88  */
89 #define LOWMEMSIZE()    (0x9f000)
90
91 #ifdef __i386__
92
93 void __init i386_start_kernel(void);
94 extern void probe_roms(void);
95
96 extern unsigned long init_pg_tables_start;
97 extern unsigned long init_pg_tables_end;
98
99 #else
100 void __init x86_64_init_pda(void);
101 void __init x86_64_start_kernel(char *real_mode);
102 void __init x86_64_start_reservations(char *real_mode_data);
103
104 #endif /* __i386__ */
105 #endif /* _SETUP */
106 #endif /* __ASSEMBLY__ */
107 #endif  /*  __KERNEL__  */
108
109 #endif /* _ASM_X86_SETUP_H */