aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intr_remapping.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-03-30 14:47:02 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-05-07 08:34:59 -0400
commit0c3f173a88c4ae3e4253427cf574a59ad5352918 (patch)
treed34364dc8d7926de75ec486ce579b478d23098e3 /drivers/iommu/intr_remapping.h
parent4f3d8b67ad3090f9fb72f8235d21cde53cd24b79 (diff)
iommu/vt-d: Convert IR ioapic-setup to use remap_ops
The IOAPIC setup routine for interrupt remapping is VT-d specific. Move it to the irq_remap_ops and add a call helper function. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Acked-by: Yinghai Lu <yinghai@kernel.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/intr_remapping.h')
-rw-r--r--drivers/iommu/intr_remapping.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iommu/intr_remapping.h b/drivers/iommu/intr_remapping.h
index 2744c9ae4aec..e8994f2b3bbe 100644
--- a/drivers/iommu/intr_remapping.h
+++ b/drivers/iommu/intr_remapping.h
@@ -24,6 +24,9 @@
24 24
25#ifdef CONFIG_IRQ_REMAP 25#ifdef CONFIG_IRQ_REMAP
26 26
27struct IO_APIC_route_entry;
28struct io_apic_irq_attr;
29
27extern int disable_intremap; 30extern int disable_intremap;
28extern int disable_sourceid_checking; 31extern int disable_sourceid_checking;
29extern int no_x2apic_optout; 32extern int no_x2apic_optout;
@@ -46,6 +49,11 @@ struct irq_remap_ops {
46 49
47 /* Enable fault handling */ 50 /* Enable fault handling */
48 int (*enable_faulting)(void); 51 int (*enable_faulting)(void);
52
53 /* IO-APIC setup routine */
54 int (*setup_ioapic_entry)(int irq, struct IO_APIC_route_entry *,
55 unsigned int, int,
56 struct io_apic_irq_attr *);
49}; 57};
50 58
51extern struct irq_remap_ops intel_irq_remap_ops; 59extern struct irq_remap_ops intel_irq_remap_ops;