forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
392 B
15 lines
392 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
/* |
|
* SVA library for IOMMU drivers |
|
*/ |
|
#ifndef _IOMMU_SVA_LIB_H |
|
#define _IOMMU_SVA_LIB_H |
|
|
|
#include <linux/ioasid.h> |
|
#include <linux/mm_types.h> |
|
|
|
int iommu_sva_alloc_pasid(struct mm_struct *mm, ioasid_t min, ioasid_t max); |
|
void iommu_sva_free_pasid(struct mm_struct *mm); |
|
struct mm_struct *iommu_sva_find(ioasid_t pasid); |
|
|
|
#endif /* _IOMMU_SVA_LIB_H */
|
|
|