1 /* SPDX-License-Identifier: GPL-2.0 */
3 * SVA library for IOMMU drivers
5 #ifndef _IOMMU_SVA_LIB_H
6 #define _IOMMU_SVA_LIB_H
8 #include <linux/ioasid.h>
9 #include <linux/mm_types.h>
11 int iommu_sva_alloc_pasid(struct mm_struct *mm, ioasid_t min, ioasid_t max);
12 void iommu_sva_free_pasid(struct mm_struct *mm);
13 struct mm_struct *iommu_sva_find(ioasid_t pasid);
15 #endif /* _IOMMU_SVA_LIB_H */