1 #ifndef _ASM_X86_SETUP_H
2 #define _ASM_X86_SETUP_H
4 #define COMMAND_LINE_SIZE 2048
8 /* Interrupt control for vSMPowered x86_64 systems */
11 #ifdef CONFIG_X86_VISWS
12 extern void visws_early_detect(void);
13 extern int is_visws_box(void);
15 static inline void visws_early_detect(void) { }
16 static inline int is_visws_box(void) { return 0; }
20 * Any setup quirks to be performed?
22 struct mpc_config_processor;
23 struct mpc_config_bus;
24 struct mp_config_oemtable;
26 int (*arch_time_init)(void);
27 int (*arch_pre_intr_init)(void);
28 int (*arch_intr_init)(void);
29 int (*arch_trap_init)(void);
30 char * (*arch_memory_setup)(void);
31 int (*mach_get_smp_config)(unsigned int early);
32 int (*mach_find_smp_config)(unsigned int reserve);
35 int (*mpc_apic_id)(struct mpc_config_processor *m);
36 void (*mpc_oem_bus_info)(struct mpc_config_bus *m, char *name);
37 void (*mpc_oem_pci_bus)(struct mpc_config_bus *m);
38 void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable,
39 unsigned short oemsize);
42 extern struct x86_quirks *x86_quirks;
44 #ifndef CONFIG_PARAVIRT
45 #define paravirt_post_allocator_init() do {} while (0)
47 #endif /* __ASSEMBLY__ */
53 #include <linux/pfn.h>
55 * Reserved space for vmalloc and iomap - defined in asm/page.h
57 #define MAXMEM_PFN PFN_DOWN(MAXMEM)
58 #define MAX_NONPAE_PFN (1 << 20)
62 #define PARAM_SIZE 4096 /* sizeof(struct boot_params) */
64 #define OLD_CL_MAGIC 0xA33F
65 #define OLD_CL_ADDRESS 0x020 /* Relative to real mode data */
66 #define NEW_CL_POINTER 0x228 /* Relative to real mode data */
69 #include <asm/bootparam.h>
74 * This is set up by the setup-routine at boot-time
76 extern struct boot_params boot_params;
79 * Do NOT EVER look at the BIOS memory size location.
80 * It does not work on many machines.
82 #define LOWMEMSIZE() (0x9f000)
86 void __init i386_start_kernel(void);
87 extern void probe_roms(void);
89 extern unsigned long init_pg_tables_start;
90 extern unsigned long init_pg_tables_end;
93 void __init x86_64_start_kernel(char *real_mode);
94 void __init x86_64_start_reservations(char *real_mode_data);
98 #endif /* __ASSEMBLY__ */
99 #endif /* __KERNEL__ */
101 #endif /* _ASM_X86_SETUP_H */