diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 3aeb7305e2f5..7ea319e95b47 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
| @@ -58,10 +58,26 @@ struct iommu_domain { | |||
| 58 | #define IOMMU_CAP_CACHE_COHERENCY 0x1 | 58 | #define IOMMU_CAP_CACHE_COHERENCY 0x1 |
| 59 | #define IOMMU_CAP_INTR_REMAP 0x2 /* isolates device intrs */ | 59 | #define IOMMU_CAP_INTR_REMAP 0x2 /* isolates device intrs */ |
| 60 | 60 | ||
| 61 | /* | ||
| 62 | * Following constraints are specifc to FSL_PAMUV1: | ||
| 63 | * -aperture must be power of 2, and naturally aligned | ||
| 64 | * -number of windows must be power of 2, and address space size | ||
| 65 | * of each window is determined by aperture size / # of windows | ||
| 66 | * -the actual size of the mapped region of a window must be power | ||
| 67 | * of 2 starting with 4KB and physical address must be naturally | ||
| 68 | * aligned. | ||
| 69 | * DOMAIN_ATTR_FSL_PAMUV1 corresponds to the above mentioned contraints. | ||
| 70 | * The caller can invoke iommu_domain_get_attr to check if the underlying | ||
| 71 | * iommu implementation supports these constraints. | ||
| 72 | */ | ||
| 73 | |||
| 61 | enum iommu_attr { | 74 | enum iommu_attr { |
| 62 | DOMAIN_ATTR_GEOMETRY, | 75 | DOMAIN_ATTR_GEOMETRY, |
| 63 | DOMAIN_ATTR_PAGING, | 76 | DOMAIN_ATTR_PAGING, |
| 64 | DOMAIN_ATTR_WINDOWS, | 77 | DOMAIN_ATTR_WINDOWS, |
| 78 | DOMAIN_ATTR_FSL_PAMU_STASH, | ||
| 79 | DOMAIN_ATTR_FSL_PAMU_ENABLE, | ||
| 80 | DOMAIN_ATTR_FSL_PAMUV1, | ||
| 65 | DOMAIN_ATTR_MAX, | 81 | DOMAIN_ATTR_MAX, |
| 66 | }; | 82 | }; |
| 67 | 83 | ||
