crypto/cnxk: add device control operations
[dpdk.git] / drivers / crypto / cnxk / cnxk_cryptodev_ops.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #ifndef _CNXK_CRYPTODEV_OPS_H_
6 #define _CNXK_CRYPTODEV_OPS_H_
7
8 #include <rte_cryptodev.h>
9
10 #define CNXK_CPT_MIN_HEADROOM_REQ 24
11
12 int cnxk_cpt_dev_config(struct rte_cryptodev *dev,
13                         struct rte_cryptodev_config *conf);
14
15 int cnxk_cpt_dev_start(struct rte_cryptodev *dev);
16
17 void cnxk_cpt_dev_stop(struct rte_cryptodev *dev);
18
19 int cnxk_cpt_dev_close(struct rte_cryptodev *dev);
20
21 void cnxk_cpt_dev_info_get(struct rte_cryptodev *dev,
22                            struct rte_cryptodev_info *info);
23
24 #endif /* _CNXK_CRYPTODEV_OPS_H_ */