aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/dmar.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h
index 2f3427468956..0b4aa8069985 100644
--- a/include/linux/dmar.h
+++ b/include/linux/dmar.h
@@ -44,6 +44,14 @@ extern struct list_head dmar_drhd_units;
44#define for_each_drhd_unit(drhd) \ 44#define for_each_drhd_unit(drhd) \
45 list_for_each_entry(drhd, &dmar_drhd_units, list) 45 list_for_each_entry(drhd, &dmar_drhd_units, list)
46 46
47#define for_each_active_iommu(i, drhd) \
48 list_for_each_entry(drhd, &dmar_drhd_units, list) \
49 if (i=drhd->iommu, drhd->ignored) {} else
50
51#define for_each_iommu(i, drhd) \
52 list_for_each_entry(drhd, &dmar_drhd_units, list) \
53 if (i=drhd->iommu, 0) {} else
54
47extern int dmar_table_init(void); 55extern int dmar_table_init(void);
48extern int dmar_dev_scope_init(void); 56extern int dmar_dev_scope_init(void);
49 57