diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2009-03-16 17:04:57 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-03-17 15:39:58 -0700 |
commit | 1531a6a6b81a4e6f9eec9a5608758a6ea14b96e0 (patch) | |
tree | 3b1523516192fdd19b286879376b4d3d7c827b0d /include/linux | |
parent | eba67e5da6e971993b2899d2cdf459ce77d3dbc5 (diff) | |
download | op-kernel-dev-1531a6a6b81a4e6f9eec9a5608758a6ea14b96e0.zip op-kernel-dev-1531a6a6b81a4e6f9eec9a5608758a6ea14b96e0.tar.gz |
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')
-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 c776833..8a035ae 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h @@ -24,6 +24,7 @@ #include <linux/acpi.h> #include <linux/types.h> #include <linux/msi.h> +#include <linux/irqreturn.h> #if defined(CONFIG_DMAR) || defined(CONFIG_INTR_REMAP) struct intel_iommu; @@ -125,6 +126,7 @@ extern void dmar_msi_mask(unsigned int irq); extern void dmar_msi_read(int irq, struct msi_msg *msg); extern void dmar_msi_write(int irq, struct msi_msg *msg); extern int dmar_set_interrupt(struct intel_iommu *iommu); +extern irqreturn_t dmar_fault(int irq, void *dev_id); extern int arch_setup_dmar_msi(unsigned int irq); #ifdef CONFIG_DMAR |