crypto/virtio: support device init
[dpdk.git] / drivers / crypto / virtio / virtio_cryptodev.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.
3  */
4
5 #ifndef _VIRTIO_CRYPTODEV_H_
6 #define _VIRTIO_CRYPTODEV_H_
7
8 #include <rte_cryptodev.h>
9
10 /* Features desired/implemented by this driver. */
11 #define VIRTIO_CRYPTO_PMD_GUEST_FEATURES (1ULL << VIRTIO_F_VERSION_1)
12
13 #define CRYPTODEV_NAME_VIRTIO_PMD crypto_virtio
14
15 uint16_t virtio_crypto_pkt_tx_burst(void *tx_queue,
16                 struct rte_crypto_op **tx_pkts,
17                 uint16_t nb_pkts);
18
19 uint16_t virtio_crypto_pkt_rx_burst(void *tx_queue,
20                 struct rte_crypto_op **tx_pkts,
21                 uint16_t nb_pkts);
22
23 #endif /* _VIRTIO_CRYPTODEV_H_ */