Commit | Line | Data |
---|---|---|
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> | |
7 | ||
816c25e7 | 8 | #include <asm/bios_ebda.h> |
6f30c1ac | 9 | #include <asm/paravirt.h> |
b72d0db9 | 10 | #include <asm/pci_x86.h> |
fd6c6661 | 11 | #include <asm/mpspec.h> |
8fee697d | 12 | #include <asm/setup.h> |
736decac | 13 | #include <asm/apic.h> |
6b18ae3e | 14 | #include <asm/e820.h> |
845b3944 | 15 | #include <asm/time.h> |
d9112f43 | 16 | #include <asm/irq.h> |
fd12a0d6 | 17 | #include <asm/pat.h> |
2d826404 | 18 | #include <asm/tsc.h> |
338bac52 | 19 | #include <asm/iommu.h> |
57844a8f TG |
20 | |
21 | void __cpuinit x86_init_noop(void) { } | |
f4848472 | 22 | void __init x86_init_uint_noop(unsigned int unused) { } |
030cb6c0 | 23 | void __init x86_init_pgd_noop(pgd_t *unused) { } |
d07c1be0 | 24 | int __init iommu_init_noop(void) { return 0; } |
62ad33f6 | 25 | void iommu_shutdown_noop(void) { } |
57844a8f TG |
26 | |
27 | /* | |
28 | * The platform setup functions are preset with the default functions | |
29 | * for standard PC hardware. | |
30 | */ | |
54e2603f | 31 | struct x86_init_ops x86_init __initdata = { |
f7cf5a5b TG |
32 | |
33 | .resources = { | |
34 | .probe_roms = x86_init_noop, | |
8fee697d | 35 | .reserve_resources = reserve_standard_io_resources, |
6b18ae3e | 36 | .memory_setup = default_machine_specific_memory_setup, |
f7cf5a5b | 37 | }, |
f4848472 TG |
38 | |
39 | .mpparse = { | |
40 | .mpc_record = x86_init_uint_noop, | |
de934103 | 41 | .setup_ioapic_ids = x86_init_noop, |
fd6c6661 | 42 | .mpc_apic_id = default_mpc_apic_id, |
72302142 | 43 | .smp_read_mpc_oem = default_smp_read_mpc_oem, |
90e1c696 | 44 | .mpc_oem_bus_info = default_mpc_oem_bus_info, |
b3f1b617 TG |
45 | .find_smp_config = default_find_smp_config, |
46 | .get_smp_config = default_get_smp_config, | |
f4848472 | 47 | }, |
d9112f43 TG |
48 | |
49 | .irqs = { | |
50 | .pre_vector_init = init_ISA_irqs, | |
66bcaf0b | 51 | .intr_init = native_init_IRQ, |
428cf902 | 52 | .trap_init = x86_init_noop, |
d9112f43 | 53 | }, |
42bbdb43 TG |
54 | |
55 | .oem = { | |
56 | .arch_setup = x86_init_noop, | |
6f30c1ac | 57 | .banner = default_banner, |
42bbdb43 | 58 | }, |
030cb6c0 TG |
59 | |
60 | .paging = { | |
61 | .pagetable_setup_start = native_pagetable_setup_start, | |
62 | .pagetable_setup_done = native_pagetable_setup_done, | |
63 | }, | |
736decac TG |
64 | |
65 | .timers = { | |
66 | .setup_percpu_clockev = setup_boot_APIC_clock, | |
845b3944 TG |
67 | .tsc_pre_init = x86_init_noop, |
68 | .timer_init = hpet_time_init, | |
736decac | 69 | }, |
d07c1be0 FT |
70 | |
71 | .iommu = { | |
72 | .iommu_init = iommu_init_noop, | |
73 | }, | |
b72d0db9 TG |
74 | |
75 | .pci = { | |
76 | .init = x86_default_pci_init, | |
ab3b3793 | 77 | .init_irq = x86_default_pci_init_irq, |
b72d0db9 | 78 | }, |
736decac TG |
79 | }; |
80 | ||
54e2603f | 81 | struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = { |
736decac | 82 | .setup_percpu_clockev = setup_secondary_APIC_clock, |
57844a8f | 83 | }; |
2d826404 TG |
84 | |
85 | struct x86_platform_ops x86_platform = { | |
86 | .calibrate_tsc = native_calibrate_tsc, | |
7bd867df FT |
87 | .get_wallclock = mach_get_cmos_time, |
88 | .set_wallclock = mach_set_rtc_mmss, | |
338bac52 | 89 | .iommu_shutdown = iommu_shutdown_noop, |
eb41c8be | 90 | .is_untracked_pat_range = is_ISA_range, |
2d826404 | 91 | }; |