blob: b40990aef3fde82c0a290f3018b21f2525af2e2d [file] [log] [blame]
Jean-Philippe Bruckercfc78df2020-11-06 16:50:48 +01001/* 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
11int iommu_sva_alloc_pasid(struct mm_struct *mm, ioasid_t min, ioasid_t max);
12void iommu_sva_free_pasid(struct mm_struct *mm);
13struct mm_struct *iommu_sva_find(ioasid_t pasid);
14
15#endif /* _IOMMU_SVA_LIB_H */