/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ #ifndef _UAPI_HISI_QM_H #define _UAPI_HISI_QM_H #include <linux/types.h> /** * struct hisi_qp_ctx - User data for hisi qp. * @id: qp_index return to user space * @qc_type: Accelerator algorithm type */ struct hisi_qp_ctx { … }; /** * struct hisi_qp_info - User data for hisi qp. * @sqe_size: Submission queue element size * @sq_depth: The number of sqe * @cq_depth: The number of cqe * @reserved: Reserved data */ struct hisi_qp_info { … }; #define HISI_QM_API_VER_BASE … #define HISI_QM_API_VER2_BASE … #define HISI_QM_API_VER3_BASE … /* UACCE_CMD_QM_SET_QP_CTX: Set qp algorithm type */ #define UACCE_CMD_QM_SET_QP_CTX … /* UACCE_CMD_QM_SET_QP_INFO: Set qp depth and BD size */ #define UACCE_CMD_QM_SET_QP_INFO … #endif