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