diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-03-28 20:26:02 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-05 16:13:15 (GMT) |
commit | b2e8128d61be3f4765be626eeb5dbf5420861886 (patch) | |
tree | dfeacd843d8e194588d5bf2ccc9bd836d80c656e /include | |
parent | 09e7175b97a8e3eb5e917df46d917b2254d8d0f5 (diff) | |
download | linux-fsl-qoriq-b2e8128d61be3f4765be626eeb5dbf5420861886.tar.xz |
iommu/fsl: Make iova dma_addr_t in the iova_to_phys API.
Make iova dma_addr_t instead of u64. dma_addrt_t is more appropriate in our
case as it is a DMA address. Also, as we support 64 bit physical addresses
dma_addr_t is u64 even on 32 bit e500mc based platforms.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: Icbb83a6eae00a2be86c20b272eb537b095173f36
Reviewed-on: http://git.am.freescale.net:8181/883
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iommu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index d998dd4..be07ec1 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -126,7 +126,7 @@ struct iommu_ops { phys_addr_t paddr, size_t size, int prot); size_t (*unmap)(struct iommu_domain *domain, unsigned long iova, size_t size); - phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, u64 iova); + phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova); int (*domain_has_cap)(struct iommu_domain *domain, unsigned long cap); int (*add_device)(struct device *dev); @@ -168,7 +168,7 @@ extern int iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot); extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova, size_t size); -extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, u64 iova); +extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova); extern int iommu_domain_has_cap(struct iommu_domain *domain, unsigned long cap); extern void iommu_set_fault_handler(struct iommu_domain *domain, @@ -301,7 +301,7 @@ static inline void iommu_domain_window_disable(struct iommu_domain *domain, { } -static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, u64 iova) +static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) { return 0; } |