X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=drivers%2Fbase%2Fiommu.c;h=8ad4ffea6920429e0185dd2b7675bd468ed5c354;hb=b54452b07a7b1b8cc1385edba3ef2ef6d4679d5a;hp=5e039d4f877c206e26052bde2e2e5e7564f86d35;hpb=fc2100eb4d0960b56c2c705a97941c08fb1c0fd4;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/base/iommu.c b/drivers/base/iommu.c index 5e039d4..8ad4ffe 100644 --- a/drivers/base/iommu.c +++ b/drivers/base/iommu.c @@ -18,6 +18,8 @@ #include #include +#include +#include #include #include @@ -31,7 +33,7 @@ void register_iommu(struct iommu_ops *ops) iommu_ops = ops; } -bool iommu_found() +bool iommu_found(void) { return iommu_ops != NULL; } @@ -98,3 +100,10 @@ phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, return iommu_ops->iova_to_phys(domain, iova); } EXPORT_SYMBOL_GPL(iommu_iova_to_phys); + +int iommu_domain_has_cap(struct iommu_domain *domain, + unsigned long cap) +{ + return iommu_ops->domain_has_cap(domain, cap); +} +EXPORT_SYMBOL_GPL(iommu_domain_has_cap);