Merge branch 'cpus4096-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.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 extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip);
24 extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip);
25 /*
26  * Any setup quirks to be performed?
27  */
28 struct mpc_config_processor;
29 struct mpc_config_bus;
30 struct mp_config_oemtable;
31 struct x86_quirks {
32         int (*arch_pre_time_init)(void);
33         int (*arch_time_init)(void);
34         int (*arch_pre_intr_init)(void);
35         int (*arch_intr_init)(void);
36         int (*arch_trap_init)(void);
37         char * (*arch_memory_setup)(void);
38         int (*mach_get_smp_config)(unsigned int early);
39         int (*mach_find_smp_config)(unsigned int reserve);
40
41         int *mpc_record;
42         int (*mpc_apic_id)(struct mpc_config_processor *m);
43         void (*mpc_oem_bus_info)(struct mpc_config_bus *m, char *name);
44         void (*mpc_oem_pci_bus)(struct mpc_config_bus *m);
45         void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable,
46                                     unsigned short oemsize);
47         int (*setup_ioapic_ids)(void);
48         int (*update_genapic)(void);
49 };
50
51 extern struct x86_quirks *x86_quirks;
52 extern unsigned long saved_video_mode;
53
54 #ifndef CONFIG_PARAVIRT
55 #define paravirt_post_allocator_init()  do {} while (0)
56 #endif
57 #endif /* __ASSEMBLY__ */
58
59 #ifdef __KERNEL__
60
61 #ifdef __i386__
62
63 #include <linux/pfn.h>
64 /*
65  * Reserved space for vmalloc and iomap - defined in asm/page.h
66  */
67 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
68 #define MAX_NONPAE_PFN  (1 << 20)
69
70 #endif /* __i386__ */
71
72 #define PARAM_SIZE 4096         /* sizeof(struct boot_params) */
73
74 #define OLD_CL_MAGIC            0xA33F
75 #define OLD_CL_ADDRESS          0x020   /* Relative to real mode data */
76 #define NEW_CL_POINTER          0x228   /* Relative to real mode data */
77
78 #ifndef __ASSEMBLY__
79 #include <asm/bootparam.h>
80
81 #ifndef _SETUP
82
83 /*
84  * This is set up by the setup-routine at boot-time
85  */
86 extern struct boot_params boot_params;
87
88 /*
89  * Do NOT EVER look at the BIOS memory size location.
90  * It does not work on many machines.
91  */
92 #define LOWMEMSIZE()    (0x9f000)
93
94 #ifdef __i386__
95
96 void __init i386_start_kernel(void);
97 extern void probe_roms(void);
98
99 extern unsigned long init_pg_tables_start;
100 extern unsigned long init_pg_tables_end;
101
102 #else
103 void __init x86_64_init_pda(void);
104 void __init x86_64_start_kernel(char *real_mode);
105 void __init x86_64_start_reservations(char *real_mode_data);
106
107 #endif /* __i386__ */
108 #endif /* _SETUP */
109 #endif /* __ASSEMBLY__ */
110 #endif  /*  __KERNEL__  */
111
112 #endif /* _ASM_X86_SETUP_H */