diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 64074ed78544..aec35aa690e6 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -203,6 +203,8 @@ struct iommu_iotlb_gather { * @attach_dev: attach device to an iommu domain * @detach_dev: detach device from an iommu domain * @map: map a physically contiguous memory region to an iommu domain + * @map_pages: map a physically contiguous set of pages of the same size to + * an iommu domain. * @map_sg: map a scatter-gather list of physically contiguous chunks to * an iommu domain. * @unmap: unmap a physically contiguous memory region from an iommu domain @@ -257,6 +259,9 @@ struct iommu_ops { void (*detach_dev)(struct iommu_domain *domain, struct device *dev); int (*map)(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp); + int (*map_pages)(struct iommu_domain *domain, unsigned long iova, + phys_addr_t paddr, size_t pgsize, size_t pgcount, + int prot, gfp_t gfp, size_t *mapped); int (*map_sg)(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot, gfp_t gfp, size_t *mapped);