1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (C) 2020 Marvell International Ltd.
5 #ifndef _OTX2_CRYPTODEV_QP_H_
6 #define _OTX2_CRYPTODEV_QP_H_
8 #include <rte_common.h>
9 #include <rte_eventdev.h>
10 #include <rte_mempool.h>
11 #include <rte_spinlock.h>
13 #include "cpt_common.h"
19 /**< CPT0/1 BLKADDR of LF */
21 /**< Base address where BAR is mapped */
23 /**< Address of LMTLINE */
25 /**< LF enqueue register address */
26 struct pending_queue pend_q;
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 */
37 /**< Event information required for binding cryptodev queue to
38 * eventdev queue. Used by crypto adapter.
41 /**< Set when queue pair is added to crypto adapter */
44 #endif /* _OTX2_CRYPTODEV_QP_H_ */