]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-x86/setup.h
x86: remove ifdef CONFIG_SWIOTLB in pci-dma.c
[linux-2.6-omap-h63xx.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 #ifndef CONFIG_PARAVIRT
12 #define paravirt_post_allocator_init()  do {} while (0)
13 #endif
14 #endif /* __ASSEMBLY__ */
15
16 #ifdef __KERNEL__
17
18 #ifdef __i386__
19
20 #include <linux/pfn.h>
21 /*
22  * Reserved space for vmalloc and iomap - defined in asm/page.h
23  */
24 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
25 #define MAX_NONPAE_PFN  (1 << 20)
26
27 #endif /* __i386__ */
28
29 #define PARAM_SIZE 4096         /* sizeof(struct boot_params) */
30
31 #define OLD_CL_MAGIC            0xA33F
32 #define OLD_CL_ADDRESS          0x020   /* Relative to real mode data */
33 #define NEW_CL_POINTER          0x228   /* Relative to real mode data */
34
35 #ifndef __ASSEMBLY__
36 #include <asm/bootparam.h>
37
38 #ifndef _SETUP
39
40 /*
41  * This is set up by the setup-routine at boot-time
42  */
43 extern struct boot_params boot_params;
44
45 /*
46  * Do NOT EVER look at the BIOS memory size location.
47  * It does not work on many machines.
48  */
49 #define LOWMEMSIZE()    (0x9f000)
50
51 #ifdef __i386__
52
53 void __init i386_start_kernel(void);
54 extern void probe_roms(void);
55
56 extern unsigned long init_pg_tables_start;
57 extern unsigned long init_pg_tables_end;
58
59 #else
60 void __init x86_64_start_kernel(char *real_mode);
61 void __init x86_64_start_reservations(char *real_mode_data);
62
63 #endif /* __i386__ */
64 #endif /* _SETUP */
65 #endif /* __ASSEMBLY__ */
66 #endif  /*  __KERNEL__  */
67
68 #endif /* _ASM_X86_SETUP_H */