aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-09-06 12:46:34 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2011-10-21 08:37:20 -0400
commita1b60c1cd913c5ccfb38c717ba0bd22622425fa7 (patch)
tree74e5c1e847262ba3c42fb3b0396a3e781c168b6e /include
parent905d66c1e5dc8149e111f04a32bb193f25da1d53 (diff)
iommu/core: Convert iommu_found to iommu_present
With per-bus iommu_ops the iommu_found function needs to work on a bus_type too. This patch adds a bus_type parameter to that function and converts all call-places. The function is also renamed to iommu_present because the function now checks if an iommu is present for a given bus and does not check for a global iommu anymore. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/iommu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index c78d068930b7..f56e559442a2 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -56,7 +56,7 @@ struct iommu_ops {
56 56
57extern void register_iommu(struct iommu_ops *ops); 57extern void register_iommu(struct iommu_ops *ops);
58extern int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops); 58extern int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops);
59extern bool iommu_found(void); 59extern bool iommu_present(struct bus_type *bus);
60extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus); 60extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus);
61extern void iommu_domain_free(struct iommu_domain *domain); 61extern void iommu_domain_free(struct iommu_domain *domain);
62extern int iommu_attach_device(struct iommu_domain *domain, 62extern int iommu_attach_device(struct iommu_domain *domain,
@@ -76,7 +76,7 @@ extern int iommu_domain_has_cap(struct iommu_domain *domain,
76 76
77struct iommu_ops {}; 77struct iommu_ops {};
78 78
79static inline bool iommu_found(void) 79static inline bool iommu_present(struct bus_type *bus)
80{ 80{
81 return false; 81 return false;
82} 82}