net/mlx5/linux: fix firmware version
[dpdk.git] / drivers / crypto / octeontx2 / otx2_cryptodev_qp.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (C) 2020-2021 Marvell.
3  */
4
5 #ifndef _OTX2_CRYPTODEV_QP_H_
6 #define _OTX2_CRYPTODEV_QP_H_
7
8 #include <rte_common.h>
9 #include <rte_eventdev.h>
10 #include <rte_mempool.h>
11 #include <rte_spinlock.h>
12
13 #include "cpt_common.h"
14
15 struct otx2_cpt_qp {
16         uint32_t id;
17         /**< Queue pair id */
18         uint8_t blkaddr;
19         /**<  CPT0/1 BLKADDR of LF */
20         uintptr_t base;
21         /**< Base address where BAR is mapped */
22         void *lmtline;
23         /**< Address of LMTLINE */
24         rte_iova_t lf_nq_reg;
25         /**< LF enqueue register address */
26         struct pending_queue pend_q;
27         /**< Pending queue */
28         struct rte_mempool *sess_mp;
29         /**< Session mempool */
30         struct rte_mempool *sess_mp_priv;
31         /**< Session private data mempool */
32         struct cpt_qp_meta_info meta_info;
33         /**< Metabuf info required to support operations on the queue pair */
34         rte_iova_t iq_dma_addr;
35         /**< Instruction queue address */
36         struct rte_event ev;
37         /**< Event information required for binding cryptodev queue to
38          * eventdev queue. Used by crypto adapter.
39          */
40         uint8_t ca_enable;
41         /**< Set when queue pair is added to crypto adapter */
42         uint8_t qp_ev_bind;
43         /**< Set when queue pair is bound to event queue */
44 };
45
46 #endif /* _OTX2_CRYPTODEV_QP_H_ */