2 * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
4 * For licencing details see kernel-base/COPYING
6 #include <linux/init.h>
8 #include <asm/bios_ebda.h>
9 #include <asm/paravirt.h>
10 #include <asm/mpspec.h>
11 #include <asm/setup.h>
17 #include <asm/iommu.h>
19 void __cpuinit
x86_init_noop(void) { }
20 void __init
x86_init_uint_noop(unsigned int unused
) { }
21 void __init
x86_init_pgd_noop(pgd_t
*unused
) { }
22 int __init
iommu_init_noop(void) { return 0; }
23 void iommu_shutdown_noop(void) { }
26 * The platform setup functions are preset with the default functions
27 * for standard PC hardware.
29 struct x86_init_ops x86_init __initdata
= {
32 .probe_roms
= x86_init_noop
,
33 .reserve_resources
= reserve_standard_io_resources
,
34 .memory_setup
= default_machine_specific_memory_setup
,
38 .mpc_record
= x86_init_uint_noop
,
39 .setup_ioapic_ids
= x86_init_noop
,
40 .mpc_apic_id
= default_mpc_apic_id
,
41 .smp_read_mpc_oem
= default_smp_read_mpc_oem
,
42 .mpc_oem_bus_info
= default_mpc_oem_bus_info
,
43 .find_smp_config
= default_find_smp_config
,
44 .get_smp_config
= default_get_smp_config
,
48 .pre_vector_init
= init_ISA_irqs
,
49 .intr_init
= native_init_IRQ
,
50 .trap_init
= x86_init_noop
,
54 .arch_setup
= x86_init_noop
,
55 .banner
= default_banner
,
59 .pagetable_setup_start
= native_pagetable_setup_start
,
60 .pagetable_setup_done
= native_pagetable_setup_done
,
64 .setup_percpu_clockev
= setup_boot_APIC_clock
,
65 .tsc_pre_init
= x86_init_noop
,
66 .timer_init
= hpet_time_init
,
70 .iommu_init
= iommu_init_noop
,
74 struct x86_cpuinit_ops x86_cpuinit __cpuinitdata
= {
75 .setup_percpu_clockev
= setup_secondary_APIC_clock
,
78 struct x86_platform_ops x86_platform
= {
79 .calibrate_tsc
= native_calibrate_tsc
,
80 .get_wallclock
= mach_get_cmos_time
,
81 .set_wallclock
= mach_set_rtc_mmss
,
82 .iommu_shutdown
= iommu_shutdown_noop
,