iommu/vt-d: Global PASID name space
[linux-2.6-block.git] / drivers / iommu / intel-pasid.h
CommitLineData
56283174
LB
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * intel-pasid.h - PASID idr, table and entry header
4 *
5 * Copyright (C) 2018 Intel Corporation
6 *
7 * Author: Lu Baolu <baolu.lu@linux.intel.com>
8 */
9
10#ifndef __INTEL_PASID_H
11#define __INTEL_PASID_H
12
13#define PASID_MIN 0x1
14#define PASID_MAX 0x100000
15
16extern u32 intel_pasid_max_id;
17int intel_pasid_alloc_id(void *ptr, int start, int end, gfp_t gfp);
18void intel_pasid_free_id(int pasid);
19void *intel_pasid_lookup_id(int pasid);
20
21#endif /* __INTEL_PASID_H */