summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/iommu/fsl_pamu.c5
-rw-r--r--include/linux/iommu.h8
2 files changed, 8 insertions, 5 deletions
diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c
index 1f69fd1..a96d0c2 100644
--- a/drivers/iommu/fsl_pamu.c
+++ b/drivers/iommu/fsl_pamu.c
@@ -35,11 +35,6 @@
#include "fsl_pamu.h"
-/* define indexes for each operation mapping scenario */
-#define OMI_QMAN 0x00
-#define OMI_FMAN 0x01
-#define OMI_QMAN_PRIV 0x02
-#define OMI_CAAM 0x03
/* Handling access violations */
#define make64(high, low) (((u64)(high) << 32) | (low))
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index f6c0fc7..c7cfaf7 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -76,6 +76,14 @@ struct iommu_domain {
#define IOMMU_CAP_CACHE_COHERENCY 0x1
#define IOMMU_CAP_INTR_REMAP 0x2 /* isolates device intrs */
+/* define indexes for each operation mapping scenario */
+enum omap_index {
+ OMI_QMAN,
+ OMI_FMAN,
+ OMI_QMAN_PRIV,
+ OMI_CAAM,
+};
+
/*
* Following constraints are specifc to PAMUV1:
* -aperture must be power of 2, and naturally aligned