diff options
| author | Joerg Roedel <jroedel@suse.de> | 2015-05-28 18:41:36 +0200 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:15:12 -0700 |
| commit | dece596ea7cde302e0d17cf4db96a04b83c12791 (patch) | |
| tree | cd6a03267fff32edcbe0db20de50f16330c10351 /include/linux | |
| parent | 478420ad4c5e1a2310fd0f38abf77fd6311bbd95 (diff) | |
iommu: Introduce iommu_request_dm_for_dev()
This function can be called by an IOMMU driver to request
that a device's default domain is direct mapped.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux')
| -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 3807b167f786..0a8bc3dceec6 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -265,6 +265,7 @@ extern void iommu_reg_write(struct iommu_domain *domain, unsigned long offset, extern void iommu_get_dm_regions(struct device *dev, struct list_head *list); extern void iommu_put_dm_regions(struct device *dev, struct list_head *list); +extern int iommu_request_dm_for_dev(struct device *dev); extern int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group); @@ -486,6 +487,11 @@ static inline void iommu_put_dm_regions(struct device *dev, { } +static inline int iommu_request_dm_for_dev(struct device *dev) +{ + return -ENODEV; +} + static inline int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group) { |
