fix PMD wording
[dpdk.git] / drivers / crypto / qat / qat_asym_pmd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5
6 #ifndef _QAT_ASYM_PMD_H_
7 #define _QAT_ASYM_PMD_H_
8
9 #include <rte_cryptodev.h>
10 #include "qat_crypto.h"
11 #include "qat_device.h"
12
13 /** Intel(R) QAT Asymmetric Crypto PMD name */
14 #define CRYPTODEV_NAME_QAT_ASYM_PMD     crypto_qat_asym
15
16
17 /**
18  * Helper function to add an asym capability
19  * <name> <op type> <modlen (min, max, increment)>
20  **/
21 #define QAT_ASYM_CAP(n, o, l, r, i)                                     \
22         {                                                               \
23                 .op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,                    \
24                 {.asym = {                                              \
25                         .xform_capa = {                                 \
26                                 .xform_type = RTE_CRYPTO_ASYM_XFORM_##n,\
27                                 .op_types = o,                          \
28                                 {                                       \
29                                 .modlen = {                             \
30                                 .min = l,                               \
31                                 .max = r,                               \
32                                 .increment = i                          \
33                                 }, }                                    \
34                         }                                               \
35                 },                                                      \
36                 }                                                       \
37         }
38
39 extern uint8_t qat_asym_driver_id;
40
41 extern struct qat_crypto_gen_dev_ops qat_asym_gen_dev_ops[];
42
43 void
44 qat_asym_init_op_cookie(void *op_cookie);
45
46 uint16_t
47 qat_asym_pmd_enqueue_op_burst(void *qp, struct rte_crypto_op **ops,
48                               uint16_t nb_ops);
49
50 uint16_t
51 qat_asym_pmd_dequeue_op_burst(void *qp, struct rte_crypto_op **ops,
52                               uint16_t nb_ops);
53
54 #endif /* _QAT_ASYM_PMD_H_ */