[ARM] pxa: fix incorrect CONFIG_CPU_PXA27x to CONFIG_PXA27x
[linux-2.6.git] / arch / x86 / kernel / x86_init.c
1 /*
2  * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
3  *
4  *  For licencing details see kernel-base/COPYING
5  */
6 #include <linux/init.h>
7 #include <linux/ioport.h>
8
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>
21
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) { }
27
28 /*
29  * The platform setup functions are preset with the default functions
30  * for standard PC hardware.
31  */
32 struct x86_init_ops x86_init __initdata = {
33
34         .resources = {
35                 .probe_roms             = x86_init_noop,
36                 .reserve_resources      = reserve_standard_io_resources,
37                 .memory_setup           = default_machine_specific_memory_setup,
38         },
39
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,
48         },
49
50         .irqs = {
51                 .pre_vector_init        = init_ISA_irqs,
52                 .intr_init              = native_init_IRQ,
53                 .trap_init              = x86_init_noop,
54         },
55
56         .oem = {
57                 .arch_setup             = x86_init_noop,
58                 .banner                 = default_banner,
59         },
60
61         .paging = {
62                 .pagetable_setup_start  = native_pagetable_setup_start,
63                 .pagetable_setup_done   = native_pagetable_setup_done,
64         },
65
66         .timers = {
67                 .setup_percpu_clockev   = setup_boot_APIC_clock,
68                 .tsc_pre_init           = x86_init_noop,
69                 .timer_init             = hpet_time_init,
70         },
71
72         .iommu = {
73                 .iommu_init             = iommu_init_noop,
74         },
75
76         .pci = {
77                 .init                   = x86_default_pci_init,
78                 .init_irq               = x86_default_pci_init_irq,
79                 .fixup_irqs             = x86_default_pci_fixup_irqs,
80         },
81 };
82
83 struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
84         .setup_percpu_clockev           = setup_secondary_APIC_clock,
85 };
86
87 static void default_nmi_init(void) { };
88
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
96 };