diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2009-03-16 20:04:57 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-03-17 18:39:58 -0400 |
commit | 1531a6a6b81a4e6f9eec9a5608758a6ea14b96e0 (patch) | |
tree | 3b1523516192fdd19b286879376b4d3d7c827b0d /include/linux/dmar.h | |
parent | eba67e5da6e971993b2899d2cdf459ce77d3dbc5 (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.h | 2 |
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) |
29 | struct intel_iommu; | 30 | struct intel_iommu; |
@@ -125,6 +126,7 @@ extern void dmar_msi_mask(unsigned int irq); | |||
125 | extern void dmar_msi_read(int irq, struct msi_msg *msg); | 126 | extern void dmar_msi_read(int irq, struct msi_msg *msg); |
126 | extern void dmar_msi_write(int irq, struct msi_msg *msg); | 127 | extern void dmar_msi_write(int irq, struct msi_msg *msg); |
127 | extern int dmar_set_interrupt(struct intel_iommu *iommu); | 128 | extern int dmar_set_interrupt(struct intel_iommu *iommu); |
129 | extern irqreturn_t dmar_fault(int irq, void *dev_id); | ||
128 | extern int arch_setup_dmar_msi(unsigned int irq); | 130 | extern int arch_setup_dmar_msi(unsigned int irq); |
129 | 131 | ||
130 | #ifdef CONFIG_DMAR | 132 | #ifdef CONFIG_DMAR |