aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmar.h
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2009-03-16 20:04:57 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-17 18:39:58 -0400
commit1531a6a6b81a4e6f9eec9a5608758a6ea14b96e0 (patch)
tree3b1523516192fdd19b286879376b4d3d7c827b0d /include/linux/dmar.h
parenteba67e5da6e971993b2899d2cdf459ce77d3dbc5 (diff)
x86, dmar: start with sane state while enabling dma and interrupt-remapping
Impact: cleanup/sanitization Start from a sane state while enabling dma and interrupt-remapping, by clearing the previous recorded faults and disabling previously enabled queued invalidation and interrupt-remapping. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'include/linux/dmar.h')
-rw-r--r--include/linux/dmar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h
index c7768330c11d..8a035aec14a9 100644
--- a/include/linux/dmar.h
+++ b/include/linux/dmar.h
@@ -24,6 +24,7 @@
24#include <linux/acpi.h> 24#include <linux/acpi.h>
25#include <linux/types.h> 25#include <linux/types.h>
26#include <linux/msi.h> 26#include <linux/msi.h>
27#include <linux/irqreturn.h>
27 28
28#if defined(CONFIG_DMAR) || defined(CONFIG_INTR_REMAP) 29#if defined(CONFIG_DMAR) || defined(CONFIG_INTR_REMAP)
29struct intel_iommu; 30struct intel_iommu;
@@ -125,6 +126,7 @@ extern void dmar_msi_mask(unsigned int irq);
125extern void dmar_msi_read(int irq, struct msi_msg *msg); 126extern void dmar_msi_read(int irq, struct msi_msg *msg);
126extern void dmar_msi_write(int irq, struct msi_msg *msg); 127extern void dmar_msi_write(int irq, struct msi_msg *msg);
127extern int dmar_set_interrupt(struct intel_iommu *iommu); 128extern int dmar_set_interrupt(struct intel_iommu *iommu);
129extern irqreturn_t dmar_fault(int irq, void *dev_id);
128extern int arch_setup_dmar_msi(unsigned int irq); 130extern int arch_setup_dmar_msi(unsigned int irq);
129 131
130#ifdef CONFIG_DMAR 132#ifdef CONFIG_DMAR