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); |
Andi Kleen | a2f1b42 | 2005-11-05 17:25:53 +0100 | [diff] [blame] | 27 | extern void size_zones(unsigned long *z, unsigned long *h, |
| 28 | unsigned long start_pfn, unsigned long end_pfn); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | |
| 30 | extern void system_call(void); |
| 31 | extern int kernel_syscall(void); |
| 32 | extern void syscall_init(void); |
| 33 | |
| 34 | extern void ia32_syscall(void); |
| 35 | extern void ia32_cstar_target(void); |
| 36 | extern void ia32_sysenter_target(void); |
| 37 | |
| 38 | extern void config_acpi_tables(void); |
| 39 | extern void ia32_syscall(void); |
| 40 | extern void iommu_hole_init(void); |
| 41 | |
Andi Kleen | a8ab26f | 2005-04-16 15:25:19 -0700 | [diff] [blame] | 42 | extern void time_init_gtod(void); |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 43 | extern int pmtimer_mark_offset(void); |
Shaohua Li | 0dd2ea9 | 2006-02-03 21:50:56 +0100 | [diff] [blame] | 44 | extern void pmtimer_resume(void); |
Andi Kleen | 0c3749c | 2006-02-03 21:51:41 +0100 | [diff] [blame^] | 45 | extern void pmtimer_wait(unsigned); |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 46 | extern unsigned int do_gettimeoffset_pm(void); |
Andi Kleen | 226d780 | 2006-02-03 21:50:44 +0100 | [diff] [blame] | 47 | #ifdef CONFIG_X86_PM_TIMER |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 48 | extern u32 pmtmr_ioport; |
Andi Kleen | 226d780 | 2006-02-03 21:50:44 +0100 | [diff] [blame] | 49 | #else |
| 50 | #define pmtmr_ioport 0 |
| 51 | #endif |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 52 | extern unsigned long long monotonic_base; |
| 53 | extern int sysctl_vsyscall; |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 54 | extern int nohpet; |
| 55 | extern unsigned long vxtime_hz; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | |
| 57 | extern void do_softirq_thunk(void); |
| 58 | |
| 59 | extern int numa_setup(char *opt); |
| 60 | |
| 61 | extern int setup_early_printk(char *); |
| 62 | extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2))); |
| 63 | |
| 64 | extern void early_identify_cpu(struct cpuinfo_x86 *c); |
| 65 | |
| 66 | extern int k8_scan_nodes(unsigned long start, unsigned long end); |
| 67 | |
| 68 | extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn); |
| 69 | extern unsigned long numa_free_all_bootmem(void); |
| 70 | |
| 71 | extern void reserve_bootmem_generic(unsigned long phys, unsigned len); |
| 72 | extern void free_bootmem_generic(unsigned long phys, unsigned len); |
| 73 | |
| 74 | extern void load_gs_index(unsigned gs); |
| 75 | |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 76 | extern void stop_timer_interrupt(void); |
| 77 | extern void main_timer_handler(struct pt_regs *regs); |
| 78 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | extern unsigned long end_pfn_map; |
| 80 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 81 | extern void show_trace(unsigned long * rsp); |
| 82 | extern void show_registers(struct pt_regs *regs); |
| 83 | |
| 84 | extern void exception_table_check(void); |
| 85 | |
| 86 | extern void acpi_reserve_bootmem(void); |
| 87 | |
| 88 | extern void swap_low_mappings(void); |
| 89 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | extern void __show_regs(struct pt_regs * regs); |
| 91 | extern void show_regs(struct pt_regs * regs); |
| 92 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | extern char *syscall32_page; |
| 94 | extern void syscall32_cpu_init(void); |
| 95 | |
| 96 | extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end); |
| 97 | |
| 98 | extern void check_ioapic(void); |
| 99 | extern void check_efer(void); |
| 100 | |
| 101 | extern int unhandled_signal(struct task_struct *tsk, int sig); |
| 102 | |
Andi Kleen | 737c5c3 | 2006-01-11 22:45:15 +0100 | [diff] [blame] | 103 | extern int unsynchronized_tsc(void); |
| 104 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | extern void select_idle_routine(const struct cpuinfo_x86 *c); |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 106 | |
| 107 | extern void gart_parse_options(char *); |
| 108 | extern void __init no_iommu_init(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 110 | extern unsigned long table_start, table_end; |
| 111 | |
| 112 | extern int exception_trace; |
| 113 | extern int force_iommu, no_iommu; |
| 114 | extern int using_apic_timer; |
| 115 | extern int disable_apic; |
| 116 | extern unsigned cpu_khz; |
| 117 | extern int ioapic_force; |
| 118 | extern int skip_ioapic_setup; |
| 119 | extern int acpi_ht; |
| 120 | extern int acpi_disabled; |
| 121 | |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 122 | #ifdef CONFIG_GART_IOMMU |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 123 | extern int fallback_aper_order; |
| 124 | extern int fallback_aper_force; |
| 125 | extern int iommu_aperture; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | extern int iommu_aperture_allowed; |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 127 | extern int iommu_aperture_disabled; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 128 | extern int fix_aperture; |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 129 | #else |
| 130 | #define iommu_aperture 0 |
| 131 | #define iommu_aperture_allowed 0 |
| 132 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | extern int force_iommu; |
| 134 | |
| 135 | extern int reboot_force; |
| 136 | |
| 137 | extern void smp_local_timer_interrupt(struct pt_regs * regs); |
| 138 | |
| 139 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); |
| 140 | |
| 141 | #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1)) |
| 142 | #define round_down(x,y) ((x) & ~((y)-1)) |
| 143 | |
| 144 | #endif |