Linux 5.11-rc1
[linux/fpc-iii.git] / drivers / iommu / iommu-sva-lib.h
blobb40990aef3fde82c0a290f3018b21f2525af2e2d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * SVA library for IOMMU drivers
4 */
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 */