diff options
| author | Eric Auger <[email protected]> | 2017-01-19 20:57:49 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2017-01-23 11:48:16 +0000 |
| commit | 2b20cbba3390a55c511acba2f0f517dd27a528b2 (patch) | |
| tree | f88d74a181db5f6d0b7c801c51ab18db26ab16ed /include/linux | |
| parent | d30ddcaa7b028049cdfee3a40248002d07b2bbf3 (diff) | |
iommu: iommu_alloc_resv_region
Introduce a new helper serving the purpose to allocate a reserved
region. This will be used in iommu driver implementing reserved
region callbacks.
Signed-off-by: Eric Auger <[email protected]>
Reviewed-by: Tomasz Nowicki <[email protected]>
Tested-by: Tomasz Nowicki <[email protected]>
Tested-by: Bharat Bhushan <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 233a6bf093bf..f6bb55d3e606 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -244,6 +244,8 @@ extern void iommu_set_fault_handler(struct iommu_domain *domain, extern void iommu_get_resv_regions(struct device *dev, struct list_head *list); extern void iommu_put_resv_regions(struct device *dev, struct list_head *list); extern int iommu_request_dm_for_dev(struct device *dev); +extern struct iommu_resv_region * +iommu_alloc_resv_region(phys_addr_t start, size_t length, int prot, int type); extern int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group); |