|
@@ -193,6 +193,7 @@ extern int iommu_attach_device(struct iommu_domain *domain,
|
|
struct device *dev);
|
|
struct device *dev);
|
|
extern void iommu_detach_device(struct iommu_domain *domain,
|
|
extern void iommu_detach_device(struct iommu_domain *domain,
|
|
struct device *dev);
|
|
struct device *dev);
|
|
|
|
+extern struct iommu_domain *iommu_get_domain_for_dev(struct device *dev);
|
|
extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
|
|
extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
|
|
phys_addr_t paddr, size_t size, int prot);
|
|
phys_addr_t paddr, size_t size, int prot);
|
|
extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
|
|
extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
|
|
@@ -332,6 +333,11 @@ static inline void iommu_detach_device(struct iommu_domain *domain,
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline struct iommu_domain *iommu_get_domain_for_dev(struct device *dev)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int iommu_map(struct iommu_domain *domain, unsigned long iova,
|
|
static inline int iommu_map(struct iommu_domain *domain, unsigned long iova,
|
|
phys_addr_t paddr, int gfp_order, int prot)
|
|
phys_addr_t paddr, int gfp_order, int prot)
|
|
{
|
|
{
|