Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
[deliverable/linux.git] / arch / x86 / kernel / x86_init.c
CommitLineData
57844a8f
TG
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>
9325a28c 7#include <linux/ioport.h>
72550b3a 8#include <linux/module.h>
294ee6f8 9#include <linux/pci.h>
57844a8f 10
816c25e7 11#include <asm/bios_ebda.h>
6f30c1ac 12#include <asm/paravirt.h>
b72d0db9 13#include <asm/pci_x86.h>
294ee6f8 14#include <asm/pci.h>
fd6c6661 15#include <asm/mpspec.h>
8fee697d 16#include <asm/setup.h>
736decac 17#include <asm/apic.h>
6b18ae3e 18#include <asm/e820.h>
845b3944 19#include <asm/time.h>
d9112f43 20#include <asm/irq.h>
fd12a0d6 21#include <asm/pat.h>
2d826404 22#include <asm/tsc.h>
338bac52 23#include <asm/iommu.h>
57844a8f
TG
24
25void __cpuinit x86_init_noop(void) { }
f4848472 26void __init x86_init_uint_noop(unsigned int unused) { }
030cb6c0 27void __init x86_init_pgd_noop(pgd_t *unused) { }
d07c1be0 28int __init iommu_init_noop(void) { return 0; }
62ad33f6 29void iommu_shutdown_noop(void) { }
57844a8f
TG
30
31/*
32 * The platform setup functions are preset with the default functions
33 * for standard PC hardware.
34 */
54e2603f 35struct x86_init_ops x86_init __initdata = {
f7cf5a5b
TG
36
37 .resources = {
38 .probe_roms = x86_init_noop,
8fee697d 39 .reserve_resources = reserve_standard_io_resources,
6b18ae3e 40 .memory_setup = default_machine_specific_memory_setup,
f7cf5a5b 41 },
f4848472
TG
42
43 .mpparse = {
44 .mpc_record = x86_init_uint_noop,
de934103 45 .setup_ioapic_ids = x86_init_noop,
fd6c6661 46 .mpc_apic_id = default_mpc_apic_id,
72302142 47 .smp_read_mpc_oem = default_smp_read_mpc_oem,
90e1c696 48 .mpc_oem_bus_info = default_mpc_oem_bus_info,
b3f1b617
TG
49 .find_smp_config = default_find_smp_config,
50 .get_smp_config = default_get_smp_config,
f4848472 51 },
d9112f43
TG
52
53 .irqs = {
54 .pre_vector_init = init_ISA_irqs,
66bcaf0b 55 .intr_init = native_init_IRQ,
428cf902 56 .trap_init = x86_init_noop,
d9112f43 57 },
42bbdb43
TG
58
59 .oem = {
60 .arch_setup = x86_init_noop,
6f30c1ac 61 .banner = default_banner,
42bbdb43 62 },
030cb6c0
TG
63
64 .paging = {
65 .pagetable_setup_start = native_pagetable_setup_start,
66 .pagetable_setup_done = native_pagetable_setup_done,
67 },
736decac
TG
68
69 .timers = {
70 .setup_percpu_clockev = setup_boot_APIC_clock,
845b3944
TG
71 .tsc_pre_init = x86_init_noop,
72 .timer_init = hpet_time_init,
6b617e22 73 .wallclock_init = x86_init_noop,
736decac 74 },
d07c1be0
FT
75
76 .iommu = {
77 .iommu_init = iommu_init_noop,
78 },
b72d0db9
TG
79
80 .pci = {
81 .init = x86_default_pci_init,
ab3b3793 82 .init_irq = x86_default_pci_init_irq,
9325a28c 83 .fixup_irqs = x86_default_pci_fixup_irqs,
b72d0db9 84 },
736decac
TG
85};
86
54e2603f 87struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
736decac 88 .setup_percpu_clockev = setup_secondary_APIC_clock,
57844a8f 89};
2d826404 90
78c06176 91static void default_nmi_init(void) { };
c516ac58 92static int default_i8042_detect(void) { return 1; };
78c06176 93
2d826404
TG
94struct x86_platform_ops x86_platform = {
95 .calibrate_tsc = native_calibrate_tsc,
7bd867df
FT
96 .get_wallclock = mach_get_cmos_time,
97 .set_wallclock = mach_set_rtc_mmss,
338bac52 98 .iommu_shutdown = iommu_shutdown_noop,
eb41c8be 99 .is_untracked_pat_range = is_ISA_range,
c516ac58
FT
100 .nmi_init = default_nmi_init,
101 .i8042_detect = default_i8042_detect
2d826404 102};
72550b3a
PA
103
104EXPORT_SYMBOL_GPL(x86_platform);
294ee6f8
SS
105struct x86_msi_ops x86_msi = {
106 .setup_msi_irqs = native_setup_msi_irqs,
107 .teardown_msi_irq = native_teardown_msi_irq,
108 .teardown_msi_irqs = default_teardown_msi_irqs,
109};
This page took 0.113111 seconds and 5 git commands to generate.