Merge branch 'sched/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...
[pandora-kernel.git] / include / asm-x86 / 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 #ifdef CONFIG_X86_VISWS
12 extern void visws_early_detect(void);
13 extern int is_visws_box(void);
14 #else
15 static inline void visws_early_detect(void) { }
16 static inline int is_visws_box(void) { return 0; }
17 #endif
18
19 /*
20  * Any setup quirks to be performed?
21  */
22 extern int (*arch_time_init_quirk)(void);
23 extern int (*arch_pre_intr_init_quirk)(void);
24 extern int (*arch_intr_init_quirk)(void);
25 extern int (*arch_trap_init_quirk)(void);
26 extern char * (*arch_memory_setup_quirk)(void);
27 extern int (*mach_get_smp_config_quirk)(unsigned int early);
28 extern int (*mach_find_smp_config_quirk)(unsigned int reserve);
29
30 #ifndef CONFIG_PARAVIRT
31 #define paravirt_post_allocator_init()  do {} while (0)
32 #endif
33 #endif /* __ASSEMBLY__ */
34
35 #ifdef __KERNEL__
36
37 #ifdef __i386__
38
39 #include <linux/pfn.h>
40 /*
41  * Reserved space for vmalloc and iomap - defined in asm/page.h
42  */
43 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
44 #define MAX_NONPAE_PFN  (1 << 20)
45
46 #endif /* __i386__ */
47
48 #define PARAM_SIZE 4096         /* sizeof(struct boot_params) */
49
50 #define OLD_CL_MAGIC            0xA33F
51 #define OLD_CL_ADDRESS          0x020   /* Relative to real mode data */
52 #define NEW_CL_POINTER          0x228   /* Relative to real mode data */
53
54 #ifndef __ASSEMBLY__
55 #include <asm/bootparam.h>
56
57 #ifndef _SETUP
58
59 /*
60  * This is set up by the setup-routine at boot-time
61  */
62 extern struct boot_params boot_params;
63
64 /*
65  * Do NOT EVER look at the BIOS memory size location.
66  * It does not work on many machines.
67  */
68 #define LOWMEMSIZE()    (0x9f000)
69
70 #ifdef __i386__
71
72 void __init i386_start_kernel(void);
73 extern void probe_roms(void);
74
75 extern unsigned long init_pg_tables_start;
76 extern unsigned long init_pg_tables_end;
77
78 #else
79 void __init x86_64_start_kernel(char *real_mode);
80 void __init x86_64_start_reservations(char *real_mode_data);
81
82 #endif /* __i386__ */
83 #endif /* _SETUP */
84 #endif /* __ASSEMBLY__ */
85 #endif  /*  __KERNEL__  */
86
87 #endif /* _ASM_X86_SETUP_H */