blob: 659492624e747f26a647bfd8640efd60332b4659 [file] [log] [blame]
Thomas Gleixneref685292007-10-23 22:37:24 +02001#ifndef _ASM_X86_SETUP_H
2#define _ASM_X86_SETUP_H
3
4#define COMMAND_LINE_SIZE 2048
5
Glauber de Oliveira Costa746ef0c2008-01-30 13:31:11 +01006#ifndef __ASSEMBLY__
Glauber Costa2785c8d2008-02-11 17:16:03 -02007
8/* Interrupt control for vSMPowered x86_64 systems */
9void vsmp_init(void);
10
Ingo Molnar3b335532008-07-10 17:30:40 +020011#ifdef CONFIG_X86_VISWS
12extern void visws_early_detect(void);
Ingo Molnar5548ed12008-07-10 16:53:21 +020013extern int is_visws_box(void);
Ingo Molnar3b335532008-07-10 17:30:40 +020014#else
15static inline void visws_early_detect(void) { }
Ingo Molnar5548ed12008-07-10 16:53:21 +020016static inline int is_visws_box(void) { return 0; }
Ingo Molnar3b335532008-07-10 17:30:40 +020017#endif
18
19/*
20 * Any setup quirks to be performed?
21 */
22extern int (*arch_time_init_quirk)(void);
23extern int (*arch_pre_intr_init_quirk)(void);
24extern int (*arch_intr_init_quirk)(void);
25extern int (*arch_trap_init_quirk)(void);
26extern char * (*arch_memory_setup_quirk)(void);
27extern int (*mach_get_smp_config_quirk)(unsigned int early);
28extern int (*mach_find_smp_config_quirk)(unsigned int reserve);
29
Glauber de Oliveira Costa746ef0c2008-01-30 13:31:11 +010030#ifndef CONFIG_PARAVIRT
31#define paravirt_post_allocator_init() do {} while (0)
32#endif
33#endif /* __ASSEMBLY__ */
34
Thomas Gleixner96a388d2007-10-11 11:20:03 +020035#ifdef __KERNEL__
Thomas Gleixneref685292007-10-23 22:37:24 +020036
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
Thomas Gleixneref685292007-10-23 22:37:24 +020046#endif /* __i386__ */
47
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020048#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
Thomas Gleixneref685292007-10-23 22:37:24 +020054#ifndef __ASSEMBLY__
55#include <asm/bootparam.h>
56
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020057#ifndef _SETUP
58
Thomas Gleixneref685292007-10-23 22:37:24 +020059/*
60 * This is set up by the setup-routine at boot-time
61 */
62extern struct boot_params boot_params;
63
Thomas Gleixneref685292007-10-23 22:37:24 +020064/*
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
Yinghai Lu95a71a42008-06-18 17:27:08 -070070#ifdef __i386__
71
Yinghai Luf0d43102008-05-29 12:56:36 -070072void __init i386_start_kernel(void);
Yinghai Lua9c11822008-06-21 15:39:41 -070073extern void probe_roms(void);
Yinghai Luf0d43102008-05-29 12:56:36 -070074
75extern unsigned long init_pg_tables_start;
Thomas Gleixneref685292007-10-23 22:37:24 +020076extern unsigned long init_pg_tables_end;
77
Jeremy Fitzhardinge102e3b82008-06-25 00:19:09 -040078#else
Jeremy Fitzhardinge5b09b282008-07-08 15:06:42 -070079void __init x86_64_init_pda(void);
Jeremy Fitzhardinge102e3b82008-06-25 00:19:09 -040080void __init x86_64_start_kernel(char *real_mode);
Jeremy Fitzhardingef97013f2008-06-25 00:19:18 -040081void __init x86_64_start_reservations(char *real_mode_data);
82
Thomas Gleixneref685292007-10-23 22:37:24 +020083#endif /* __i386__ */
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020084#endif /* _SETUP */
Thomas Gleixneref685292007-10-23 22:37:24 +020085#endif /* __ASSEMBLY__ */
86#endif /* __KERNEL__ */
87
88#endif /* _ASM_X86_SETUP_H */