Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #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 | |
| 8 | struct cpuinfo_x86; |
| 9 | struct pt_regs; |
| 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | extern void start_kernel(void); |
| 12 | extern void pda_init(int); |
| 13 | |
Siddha, Suresh B | f6c2e33 | 2005-11-05 17:25:53 +0100 | [diff] [blame] | 14 | extern void zap_low_mappings(int cpu); |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | extern void early_idt_handler(void); |
| 17 | |
| 18 | extern void mcheck_init(struct cpuinfo_x86 *c); |
Shaohua Li | 3b520b2 | 2005-07-07 17:56:38 -0700 | [diff] [blame] | 19 | #ifdef CONFIG_MTRR |
| 20 | extern void mtrr_ap_init(void); |
| 21 | extern void mtrr_bp_init(void); |
| 22 | #else |
| 23 | #define mtrr_ap_init() do {} while (0) |
| 24 | #define mtrr_bp_init() do {} while (0) |
| 25 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | extern void init_memory_mapping(unsigned long start, unsigned long end); |
| 27 | |
| 28 | extern void system_call(void); |
| 29 | extern int kernel_syscall(void); |
| 30 | extern void syscall_init(void); |
| 31 | |
| 32 | extern void ia32_syscall(void); |
| 33 | extern void ia32_cstar_target(void); |
| 34 | extern void ia32_sysenter_target(void); |
| 35 | |
| 36 | extern void config_acpi_tables(void); |
| 37 | extern void ia32_syscall(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 39 | extern int pmtimer_mark_offset(void); |
Shaohua Li | 0dd2ea9 | 2006-02-03 21:50:56 +0100 | [diff] [blame] | 40 | extern void pmtimer_resume(void); |
Andi Kleen | 0c3749c | 2006-02-03 21:51:41 +0100 | [diff] [blame] | 41 | extern void pmtimer_wait(unsigned); |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 42 | extern unsigned int do_gettimeoffset_pm(void); |
Andi Kleen | 226d780 | 2006-02-03 21:50:44 +0100 | [diff] [blame] | 43 | #ifdef CONFIG_X86_PM_TIMER |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 44 | extern u32 pmtmr_ioport; |
Andi Kleen | 226d780 | 2006-02-03 21:50:44 +0100 | [diff] [blame] | 45 | #else |
| 46 | #define pmtmr_ioport 0 |
| 47 | #endif |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 48 | extern int nohpet; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2))); |
| 51 | |
| 52 | extern void early_identify_cpu(struct cpuinfo_x86 *c); |
| 53 | |
| 54 | extern int k8_scan_nodes(unsigned long start, unsigned long end); |
| 55 | |
| 56 | extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn); |
| 57 | extern unsigned long numa_free_all_bootmem(void); |
| 58 | |
| 59 | extern void reserve_bootmem_generic(unsigned long phys, unsigned len); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | |
| 61 | extern void load_gs_index(unsigned gs); |
| 62 | |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 63 | extern void stop_timer_interrupt(void); |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 64 | extern void main_timer_handler(void); |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 65 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | extern unsigned long end_pfn_map; |
| 67 | |
Jan Beulich | b538ed2 | 2006-06-26 13:57:32 +0200 | [diff] [blame] | 68 | extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | extern void show_registers(struct pt_regs *regs); |
| 70 | |
| 71 | extern void exception_table_check(void); |
| 72 | |
| 73 | extern void acpi_reserve_bootmem(void); |
| 74 | |
| 75 | extern void swap_low_mappings(void); |
| 76 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | extern void __show_regs(struct pt_regs * regs); |
| 78 | extern void show_regs(struct pt_regs * regs); |
| 79 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | extern void syscall32_cpu_init(void); |
| 81 | |
| 82 | extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end); |
| 83 | |
Andi Kleen | dfa4698 | 2006-09-26 10:52:30 +0200 | [diff] [blame] | 84 | extern void early_quirks(void); |
Siddha, Suresh B | b0d0a4b | 2006-12-07 02:14:10 +0100 | [diff] [blame] | 85 | extern void quirk_intel_irqbalance(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 86 | extern void check_efer(void); |
| 87 | |
| 88 | extern int unhandled_signal(struct task_struct *tsk, int sig); |
| 89 | |
| 90 | extern void select_idle_routine(const struct cpuinfo_x86 *c); |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 91 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | extern unsigned long table_start, table_end; |
| 93 | |
| 94 | extern int exception_trace; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | extern unsigned cpu_khz; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | |
Jon Mason | 0dc243a | 2006-06-26 13:58:11 +0200 | [diff] [blame] | 97 | extern void no_iommu_init(void); |
| 98 | extern int force_iommu, no_iommu; |
Jon Mason | 8d4f6b9 | 2006-06-26 13:58:05 +0200 | [diff] [blame] | 99 | extern int iommu_detected; |
Andi Kleen | a813ce4 | 2006-06-26 13:57:22 +0200 | [diff] [blame] | 100 | #ifdef CONFIG_IOMMU |
Jon Mason | 0dc243a | 2006-06-26 13:58:11 +0200 | [diff] [blame] | 101 | extern void gart_iommu_init(void); |
| 102 | extern void gart_parse_options(char *); |
| 103 | extern void iommu_hole_init(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | extern int fallback_aper_order; |
| 105 | extern int fallback_aper_force; |
| 106 | extern int iommu_aperture; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | extern int iommu_aperture_allowed; |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 108 | extern int iommu_aperture_disabled; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | extern int fix_aperture; |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 110 | #else |
| 111 | #define iommu_aperture 0 |
| 112 | #define iommu_aperture_allowed 0 |
| 113 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | |
| 115 | extern int reboot_force; |
Andi Kleen | 7fd6784 | 2006-02-16 23:42:07 +0100 | [diff] [blame] | 116 | extern int notsc_setup(char *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 117 | |
Andi Kleen | e70ea8c | 2006-10-21 18:37:03 +0200 | [diff] [blame] | 118 | extern int timer_over_8254; |
| 119 | |
Andi Kleen | 91cd444 | 2006-09-26 10:52:33 +0200 | [diff] [blame] | 120 | extern int gsi_irq_sharing(int gsi); |
| 121 | |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 122 | extern void smp_local_timer_interrupt(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 123 | |
| 124 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); |
| 125 | |
| 126 | #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1)) |
| 127 | #define round_down(x,y) ((x) & ~((y)-1)) |
| 128 | |
| 129 | #endif |