19e00df71SZhangfei Gao /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 29e00df71SZhangfei Gao #ifndef _UAPI_HISI_QM_H 39e00df71SZhangfei Gao #define _UAPI_HISI_QM_H 49e00df71SZhangfei Gao 59e00df71SZhangfei Gao #include <linux/types.h> 69e00df71SZhangfei Gao 79e00df71SZhangfei Gao /** 89e00df71SZhangfei Gao * struct hisi_qp_ctx - User data for hisi qp. 99e00df71SZhangfei Gao * @id: qp_index return to user space 109e00df71SZhangfei Gao * @qc_type: Accelerator algorithm type 119e00df71SZhangfei Gao */ 129e00df71SZhangfei Gao struct hisi_qp_ctx { 139e00df71SZhangfei Gao __u16 id; 149e00df71SZhangfei Gao __u16 qc_type; 159e00df71SZhangfei Gao }; 169e00df71SZhangfei Gao 179e00df71SZhangfei Gao #define HISI_QM_API_VER_BASE "hisi_qm_v1" 189e00df71SZhangfei Gao #define HISI_QM_API_VER2_BASE "hisi_qm_v2" 19*8bbecfb4SWeili Qian #define HISI_QM_API_VER3_BASE "hisi_qm_v3" 209e00df71SZhangfei Gao 219e00df71SZhangfei Gao /* UACCE_CMD_QM_SET_QP_CTX: Set qp algorithm type */ 229e00df71SZhangfei Gao #define UACCE_CMD_QM_SET_QP_CTX _IOWR('H', 10, struct hisi_qp_ctx) 239e00df71SZhangfei Gao 249e00df71SZhangfei Gao #endif 25