summaryrefslogtreecommitdiff
path: root/drivers/iommu/iommu.c
diff options
context:
space:
mode:
authorVarun Sethi <Varun.Sethi@freescale.com>2013-03-06 13:02:08 (GMT)
committerEmil Medve <Emilian.Medve@Freescale.com>2013-03-21 18:42:16 (GMT)
commit45e8c5d72080652a611de9f106b7c097f650994f (patch)
treea2f6e82f4bc70f3efdb35a70eca9a157ea9d173e /drivers/iommu/iommu.c
parent142639c5103b209cb454b39a723c513f011e6760 (diff)
downloadlinux-fsl-qoriq-45e8c5d72080652a611de9f106b7c097f650994f.tar.xz
iommu/fsl: Add the window permission flag as a parameter to iommu_window_enable API.
Each iommu window can have access permissions associated with it. Extended the window_enable API to incorporate window access permissions. In case of PAMU each window can have its specific set of permissions. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r--drivers/iommu/iommu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 39106ec..bc8ff1f 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -853,12 +853,13 @@ EXPORT_SYMBOL_GPL(iommu_unmap);
int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr,
- phys_addr_t paddr, u64 size)
+ phys_addr_t paddr, u64 size, int iommu_prot)
{
if (unlikely(domain->ops->domain_window_enable == NULL))
return -ENODEV;
- return domain->ops->domain_window_enable(domain, wnd_nr, paddr, size);
+ return domain->ops->domain_window_enable(domain, wnd_nr, paddr, size,
+ iommu_prot);
}
EXPORT_SYMBOL_GPL(iommu_domain_window_enable);