blob: 85255db1e82d63bff6dd84c9f409908651be6b9f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_X8664_PROTO_H
2#define _ASM_X8664_PROTO_H 1
3
4#include <asm/ldt.h>
5
6/* misc architecture specific prototypes */
7
8struct cpuinfo_x86;
9struct pt_regs;
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011extern void start_kernel(void);
12extern void pda_init(int);
13
14extern void early_idt_handler(void);
15
16extern void mcheck_init(struct cpuinfo_x86 *c);
17extern void init_memory_mapping(unsigned long start, unsigned long end);
18
19extern void system_call(void);
20extern int kernel_syscall(void);
21extern void syscall_init(void);
22
23extern void ia32_syscall(void);
24extern void ia32_cstar_target(void);
25extern void ia32_sysenter_target(void);
26
27extern void config_acpi_tables(void);
28extern void ia32_syscall(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Andi Kleen312df5f2005-05-16 21:53:28 -070030extern int pmtimer_mark_offset(void);
Shaohua Li0dd2ea92006-02-03 21:50:56 +010031extern void pmtimer_resume(void);
Andi Kleen0c3749c2006-02-03 21:51:41 +010032extern void pmtimer_wait(unsigned);
Andi Kleen312df5f2005-05-16 21:53:28 -070033extern unsigned int do_gettimeoffset_pm(void);
Andi Kleen226d7802006-02-03 21:50:44 +010034#ifdef CONFIG_X86_PM_TIMER
Andi Kleen312df5f2005-05-16 21:53:28 -070035extern u32 pmtmr_ioport;
Andi Kleen226d7802006-02-03 21:50:44 +010036#else
37#define pmtmr_ioport 0
38#endif
Andi Kleen73dea472006-02-03 21:50:50 +010039extern int nohpet;
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
Linus Torvalds1da177e2005-04-16 15:20:36 -070041extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
42
43extern void early_identify_cpu(struct cpuinfo_x86 *c);
44
45extern int k8_scan_nodes(unsigned long start, unsigned long end);
46
47extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
48extern unsigned long numa_free_all_bootmem(void);
49
50extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
52extern void load_gs_index(unsigned gs);
53
Andi Kleen73dea472006-02-03 21:50:50 +010054extern void stop_timer_interrupt(void);
David Howells7d12e782006-10-05 14:55:46 +010055extern void main_timer_handler(void);
Andi Kleen73dea472006-02-03 21:50:50 +010056
Linus Torvalds1da177e2005-04-16 15:20:36 -070057extern unsigned long end_pfn_map;
58
Jan Beulichb538ed22006-06-26 13:57:32 +020059extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070060extern void show_registers(struct pt_regs *regs);
61
62extern void exception_table_check(void);
63
64extern void acpi_reserve_bootmem(void);
65
66extern void swap_low_mappings(void);
67
Linus Torvalds1da177e2005-04-16 15:20:36 -070068extern void __show_regs(struct pt_regs * regs);
69extern void show_regs(struct pt_regs * regs);
70
Linus Torvalds1da177e2005-04-16 15:20:36 -070071extern void syscall32_cpu_init(void);
72
73extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
74
Andi Kleendfa46982006-09-26 10:52:30 +020075extern void early_quirks(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070076extern void check_efer(void);
77
78extern int unhandled_signal(struct task_struct *tsk, int sig);
79
80extern void select_idle_routine(const struct cpuinfo_x86 *c);
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +010081
Linus Torvalds1da177e2005-04-16 15:20:36 -070082extern unsigned long table_start, table_end;
83
84extern int exception_trace;
Linus Torvalds1da177e2005-04-16 15:20:36 -070085extern unsigned cpu_khz;
Joerg Roedel6b37f5a2007-05-02 19:27:06 +020086extern unsigned tsc_khz;
Linus Torvalds1da177e2005-04-16 15:20:36 -070087
Jon Mason0dc243a2006-06-26 13:58:11 +020088extern void no_iommu_init(void);
89extern int force_iommu, no_iommu;
Jon Mason8d4f6b92006-06-26 13:58:05 +020090extern int iommu_detected;
Andi Kleena813ce42006-06-26 13:57:22 +020091#ifdef CONFIG_IOMMU
Jon Mason0dc243a2006-06-26 13:58:11 +020092extern void gart_iommu_init(void);
Sam Ravnborg43999d92007-03-16 21:07:36 +010093extern void __init gart_parse_options(char *);
Jon Mason0dc243a2006-06-26 13:58:11 +020094extern void iommu_hole_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070095extern int fallback_aper_order;
96extern int fallback_aper_force;
97extern int iommu_aperture;
Linus Torvalds1da177e2005-04-16 15:20:36 -070098extern int iommu_aperture_allowed;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +010099extern int iommu_aperture_disabled;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100extern int fix_aperture;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100101#else
102#define iommu_aperture 0
103#define iommu_aperture_allowed 0
104#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105
106extern int reboot_force;
Andi Kleen7fd67842006-02-16 23:42:07 +0100107extern int notsc_setup(char *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108
Andi Kleene70ea8c2006-10-21 18:37:03 +0200109extern int timer_over_8254;
110
Andi Kleen91cd4442006-09-26 10:52:33 +0200111extern int gsi_irq_sharing(int gsi);
112
David Howells7d12e782006-10-05 14:55:46 +0100113extern void smp_local_timer_interrupt(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114
Andi Kleenf039b752007-05-02 19:27:12 +0200115extern int force_mwait;
116
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
118
Andi Kleen803d80f2007-05-02 19:27:05 +0200119void i8254_timer_resume(void);
120
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
122#define round_down(x,y) ((x) & ~((y)-1))
123
124#endif