Jean-Philippe Brucker | cfc78df | 2020-11-06 16:50:48 +0100 | [diff] [blame] | 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 | ||||
7 | |||||
8 | #include <linux/ioasid.h> | ||||
9 | #include <linux/mm_types.h> | ||||
10 | |||||
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); | ||||
14 | |||||
15 | #endif /* _IOMMU_SVA_LIB_H */ |