MIPS: SB1250: Include correct header and fix a warning
[linux-2.6/linux-mips.git] / arch / x86 / kernel / x86_init.c
blob61a1e8c7e19f8169e736bd329e9b2b72c87c3cce
1 /*
2 * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
4 * For licencing details see kernel-base/COPYING
5 */
6 #include <linux/init.h>
7 #include <linux/ioport.h>
9 #include <asm/bios_ebda.h>
10 #include <asm/paravirt.h>
11 #include <asm/pci_x86.h>
12 #include <asm/mpspec.h>
13 #include <asm/setup.h>
14 #include <asm/apic.h>
15 #include <asm/e820.h>
16 #include <asm/time.h>
17 #include <asm/irq.h>
18 #include <asm/pat.h>
19 #include <asm/tsc.h>
20 #include <asm/iommu.h>
22 void __cpuinit x86_init_noop(void) { }
23 void __init x86_init_uint_noop(unsigned int unused) { }
24 void __init x86_init_pgd_noop(pgd_t *unused) { }
25 int __init iommu_init_noop(void) { return 0; }
26 void iommu_shutdown_noop(void) { }
29 * The platform setup functions are preset with the default functions
30 * for standard PC hardware.
32 struct x86_init_ops x86_init __initdata = {
34 .resources = {
35 .probe_roms = x86_init_noop,
36 .reserve_resources = reserve_standard_io_resources,
37 .memory_setup = default_machine_specific_memory_setup,
40 .mpparse = {
41 .mpc_record = x86_init_uint_noop,
42 .setup_ioapic_ids = x86_init_noop,
43 .mpc_apic_id = default_mpc_apic_id,
44 .smp_read_mpc_oem = default_smp_read_mpc_oem,
45 .mpc_oem_bus_info = default_mpc_oem_bus_info,
46 .find_smp_config = default_find_smp_config,
47 .get_smp_config = default_get_smp_config,
50 .irqs = {
51 .pre_vector_init = init_ISA_irqs,
52 .intr_init = native_init_IRQ,
53 .trap_init = x86_init_noop,
56 .oem = {
57 .arch_setup = x86_init_noop,
58 .banner = default_banner,
61 .paging = {
62 .pagetable_setup_start = native_pagetable_setup_start,
63 .pagetable_setup_done = native_pagetable_setup_done,
66 .timers = {
67 .setup_percpu_clockev = setup_boot_APIC_clock,
68 .tsc_pre_init = x86_init_noop,
69 .timer_init = hpet_time_init,
72 .iommu = {
73 .iommu_init = iommu_init_noop,
76 .pci = {
77 .init = x86_default_pci_init,
78 .init_irq = x86_default_pci_init_irq,
79 .fixup_irqs = x86_default_pci_fixup_irqs,
83 struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
84 .setup_percpu_clockev = setup_secondary_APIC_clock,
87 static void default_nmi_init(void) { };
89 struct x86_platform_ops x86_platform = {
90 .calibrate_tsc = native_calibrate_tsc,
91 .get_wallclock = mach_get_cmos_time,
92 .set_wallclock = mach_set_rtc_mmss,
93 .iommu_shutdown = iommu_shutdown_noop,
94 .is_untracked_pat_range = is_ISA_range,
95 .nmi_init = default_nmi_init