diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-07-22 13:50:25 (GMT) |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-08-26 07:47:30 (GMT) |
commit | be3b76372527f0a1b823168c92023dc4b02603b5 (patch) | |
tree | e5efd736101c86ec4481117ee078b269697d7626 /include/linux/iommu.h | |
parent | 0b8dc3c3c79d1b7ccd6bcffc0cabc8dde66ef478 (diff) | |
download | linux-fsl-qoriq-be3b76372527f0a1b823168c92023dc4b02603b5.tar.xz |
Introduce an API for setting operation mapping index per window.
This API can be used for setting operation mapping per DMA window.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: Iea6d7993f09bddbaae94c475fd192f5106784bde
Reviewed-on: http://git.am.freescale.net:8181/3440
Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Conflicts:
drivers/iommu/fsl_pamu.c
drivers/iommu/fsl_pamu.h
drivers/iommu/fsl_pamu_domain.c
Change-Id: Iea6d7993f09bddbaae94c475fd192f5106784bde
Reviewed-on: http://git.am.freescale.net:8181/3440
Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com>
Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index f6c0fc7..bfcc382 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -59,6 +59,11 @@ struct iommu_stash_attribute { u32 cache; /* cache to stash to: L1,L2,L3 */ }; +struct iommu_omi_attribute { + u32 omi; /* index in the operation mapping table */ + u32 window; /* ~0 indicates all windows */ +}; + struct iommu_domain_geometry { dma_addr_t aperture_start; /* First address that can be mapped */ dma_addr_t aperture_end; /* Last address that can be mapped */ @@ -96,6 +101,7 @@ enum iommu_attr { DOMAIN_ATTR_PAMU_STASH, DOMAIN_ATTR_PAMU_ENABLE, DOMAIN_ATTR_FSL_PAMUV1, + DOMAIN_ATTR_PAMU_OP_MAP, DOMAIN_ATTR_MAX, }; |