x86/amd-iommu: Add per IOMMU reference counting
[linux/fpc-iii.git] / arch / x86 / kernel / x86_init.c
blobd11c5ff7c65ede5f752449c630200cda0620fce2
1 /*
2 * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
4 * For licencing details see kernel-base/COPYING
5 */
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>
12 #include <asm/apic.h>
13 #include <asm/e820.h>
14 #include <asm/time.h>
15 #include <asm/irq.h>
16 #include <asm/tsc.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 = {
31 .resources = {
32 .probe_roms = x86_init_noop,
33 .reserve_resources = reserve_standard_io_resources,
34 .memory_setup = default_machine_specific_memory_setup,
37 .mpparse = {
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,
47 .irqs = {
48 .pre_vector_init = init_ISA_irqs,
49 .intr_init = native_init_IRQ,
50 .trap_init = x86_init_noop,
53 .oem = {
54 .arch_setup = x86_init_noop,
55 .banner = default_banner,
58 .paging = {
59 .pagetable_setup_start = native_pagetable_setup_start,
60 .pagetable_setup_done = native_pagetable_setup_done,
63 .timers = {
64 .setup_percpu_clockev = setup_boot_APIC_clock,
65 .tsc_pre_init = x86_init_noop,
66 .timer_init = hpet_time_init,
69 .iommu = {
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,