aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/dmar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/dmar.c')
-rw-r--r--drivers/pci/dmar.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c
index fba4f6891680..270ed222a075 100644
--- a/drivers/pci/dmar.c
+++ b/drivers/pci/dmar.c
@@ -1316,3 +1316,13 @@ int dmar_reenable_qi(struct intel_iommu *iommu)
1316 1316
1317 return 0; 1317 return 0;
1318} 1318}
1319
1320/*
1321 * Check interrupt remapping support in DMAR table description.
1322 */
1323int dmar_ir_support(void)
1324{
1325 struct acpi_table_dmar *dmar;
1326 dmar = (struct acpi_table_dmar *)dmar_tbl;
1327 return dmar->flags & 0x1;
1328}