diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-05-28 19:41:36 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-06-11 10:01:55 +0300 |
commit | d290f1e70d85a9a4d124594c6a3d769329960bdc (patch) | |
tree | 56830081621c5c3681e7121967b7a69da46af360 /include/linux/iommu.h | |
parent | 6827ca83695d5e41ad31b0719788ee65f00ca4b3 (diff) | |
download | linux-d290f1e70d85a9a4d124594c6a3d769329960bdc.tar.xz |
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/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 b944b2be4fa2..dc767f7c3704 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -225,6 +225,7 @@ extern void iommu_set_fault_handler(struct iommu_domain *domain, 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); @@ -411,6 +412,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) { |