aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmar.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-03-30 14:47:01 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-05-07 08:34:59 -0400
commit4f3d8b67ad3090f9fb72f8235d21cde53cd24b79 (patch)
treec6408bbae796a1aec8c0d8ef735ee2f159358e2c /include/linux/dmar.h
parent736baef4472d00574089f295bc759ac002b9558c (diff)
iommu/vt-d: Convert missing apic.c intr-remapping call to remap_ops
Convert these calls too: * Disable of remapping hardware * Reenable of remapping hardware * Enable fault handling With that all of arch/x86/kernel/apic/apic.c is converted to use the generic intr-remapping interface. 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 'include/linux/dmar.h')
-rw-r--r--include/linux/dmar.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h
index 6d66c9c76e0a..f2bd87f52a8d 100644
--- a/include/linux/dmar.h
+++ b/include/linux/dmar.h
@@ -115,9 +115,6 @@ struct irte {
115}; 115};
116 116
117#ifdef CONFIG_IRQ_REMAP 117#ifdef CONFIG_IRQ_REMAP
118extern void disable_intr_remapping(void);
119extern int reenable_intr_remapping(int);
120
121extern int get_irte(int irq, struct irte *entry); 118extern int get_irte(int irq, struct irte *entry);
122extern int modify_irte(int irq, struct irte *irte_modified); 119extern int modify_irte(int irq, struct irte *irte_modified);
123extern int alloc_irte(struct intel_iommu *iommu, int irq, u16 count); 120extern int alloc_irte(struct intel_iommu *iommu, int irq, u16 count);
@@ -179,21 +176,6 @@ static inline int set_msi_sid(struct irte *irte, struct pci_dev *dev)
179 return 0; 176 return 0;
180} 177}
181 178
182#define intr_remapping_enabled (0)
183
184static inline int enable_intr_remapping(void)
185{
186 return -1;
187}
188
189static inline void disable_intr_remapping(void)
190{
191}
192
193static inline int reenable_intr_remapping(int eim)
194{
195 return 0;
196}
197#endif 179#endif
198 180
199enum { 181enum {