/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1#ifndef _UAPI_HISI_QM_H2#define _UAPI_HISI_QM_H34#include <linux/types.h>56/**7* struct hisi_qp_ctx - User data for hisi qp.8* @id: qp_index return to user space9* @qc_type: Accelerator algorithm type10*/11struct hisi_qp_ctx {12__u16 id;13__u16 qc_type;14};1516/**17* struct hisi_qp_info - User data for hisi qp.18* @sqe_size: Submission queue element size19* @sq_depth: The number of sqe20* @cq_depth: The number of cqe21* @reserved: Reserved data22*/23struct hisi_qp_info {24__u32 sqe_size;25__u16 sq_depth;26__u16 cq_depth;27__u64 reserved;28};2930#define HISI_QM_API_VER_BASE "hisi_qm_v1"31#define HISI_QM_API_VER2_BASE "hisi_qm_v2"32#define HISI_QM_API_VER3_BASE "hisi_qm_v3"3334/* UACCE_CMD_QM_SET_QP_CTX: Set qp algorithm type */35#define UACCE_CMD_QM_SET_QP_CTX _IOWR('H', 10, struct hisi_qp_ctx)36/* UACCE_CMD_QM_SET_QP_INFO: Set qp depth and BD size */37#define UACCE_CMD_QM_SET_QP_INFO _IOWR('H', 11, struct hisi_qp_info)38#endif394041