f-stack/dpdk/drivers/crypto/cnxk/cn10k_cryptodev_ops.h

31 lines
873 B
C
Raw Normal View History

2022-09-06 04:00:10 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2021 Marvell.
*/
#ifndef _CN10K_CRYPTODEV_OPS_H_
#define _CN10K_CRYPTODEV_OPS_H_
2023-09-13 12:21:49 +00:00
#include <rte_compat.h>
2022-09-06 04:00:10 +00:00
#include <cryptodev_pmd.h>
2023-09-13 12:21:49 +00:00
#include <rte_cryptodev.h>
#include <rte_eventdev.h>
#include "cnxk_cryptodev.h"
2022-09-06 04:00:10 +00:00
extern struct rte_cryptodev_ops cn10k_cpt_ops;
2023-09-13 12:21:49 +00:00
void cn10k_cpt_set_enqdeq_fns(struct rte_cryptodev *dev, struct cnxk_cpt_vf *vf);
2022-09-06 04:00:10 +00:00
__rte_internal
2023-09-13 12:21:49 +00:00
uint16_t __rte_hot cn10k_cpt_sg_ver1_crypto_adapter_enqueue(void *ws, struct rte_event ev[],
uint16_t nb_events);
__rte_internal
uint16_t __rte_hot cn10k_cpt_sg_ver2_crypto_adapter_enqueue(void *ws, struct rte_event ev[],
uint16_t nb_events);
2022-09-06 04:00:10 +00:00
__rte_internal
uintptr_t cn10k_cpt_crypto_adapter_dequeue(uintptr_t get_work1);
2023-09-13 12:21:49 +00:00
__rte_internal
uintptr_t cn10k_cpt_crypto_adapter_vector_dequeue(uintptr_t get_work1);
2022-09-06 04:00:10 +00:00
#endif /* _CN10K_CRYPTODEV_OPS_H_ */