diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2021-01-08 11:41:26 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-04-01 11:11:29 +0800 |
commit | a736f13279640936c2864c338e7c09c4777e1766 (patch) | |
tree | fbe30677f70fadad92d5514611463db9a8f1dcd3 /linux-headers/include/misc/uacce/hisi_qm.h | |
parent | 457daed7711b579a1ee538a9e1f202735bfe8903 (diff) | |
download | riscv-gnu-toolchain-a736f13279640936c2864c338e7c09c4777e1766.zip riscv-gnu-toolchain-a736f13279640936c2864c338e7c09c4777e1766.tar.gz riscv-gnu-toolchain-a736f13279640936c2864c338e7c09c4777e1766.tar.bz2 |
Update linux header to 5.10.5
Diffstat (limited to 'linux-headers/include/misc/uacce/hisi_qm.h')
-rw-r--r-- | linux-headers/include/misc/uacce/hisi_qm.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/linux-headers/include/misc/uacce/hisi_qm.h b/linux-headers/include/misc/uacce/hisi_qm.h new file mode 100644 index 0000000..82f5009 --- /dev/null +++ b/linux-headers/include/misc/uacce/hisi_qm.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +#ifndef _HISI_QM_H +#define _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 { + __u16 id; + __u16 qc_type; +}; + +#define HISI_QM_API_VER_BASE "hisi_qm_v1" +#define HISI_QM_API_VER2_BASE "hisi_qm_v2" + +/* UACCE_CMD_QM_SET_QP_CTX: Set qp algorithm type */ +#define UACCE_CMD_QM_SET_QP_CTX _IOWR('H', 10, struct hisi_qp_ctx) + +#endif |