New helper: deactivate_locked_super()
[safe/jmp/linux-2.6] / include / linux / dma_remapping.h
index 7799a85..1a455f1 100644 (file)
@@ -11,6 +11,7 @@
 
 #define DMA_PTE_READ (1)
 #define DMA_PTE_WRITE (2)
+#define DMA_PTE_SNP (1 << 11)
 
 struct intel_iommu;
 struct dmar_domain;
@@ -18,6 +19,15 @@ struct root_entry;
 
 extern void free_dmar_iommu(struct intel_iommu *iommu);
 
+#ifdef CONFIG_DMAR
+extern int iommu_calculate_agaw(struct intel_iommu *iommu);
+#else
+static inline int iommu_calculate_agaw(struct intel_iommu *iommu)
+{
+       return 0;
+}
+#endif
+
 extern int dmar_disabled;
 
 #endif