|
@@ -36,6 +36,10 @@ struct iommu_ops {
|
|
void (*domain_destroy)(struct iommu_domain *domain);
|
|
void (*domain_destroy)(struct iommu_domain *domain);
|
|
int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
|
|
int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
|
|
void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
|
|
void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
|
|
|
|
+ int (*map)(struct iommu_domain *domain, unsigned long iova,
|
|
|
|
+ phys_addr_t paddr, int gfp_order, int prot);
|
|
|
|
+ int (*unmap)(struct iommu_domain *domain, unsigned long iova,
|
|
|
|
+ int gfp_order);
|
|
int (*map_range)(struct iommu_domain *domain, unsigned long iova,
|
|
int (*map_range)(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);
|
|
void (*unmap_range)(struct iommu_domain *domain, unsigned long iova,
|
|
void (*unmap_range)(struct iommu_domain *domain, unsigned long iova,
|