1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Intel Corporation
6 #ifndef _QAT_ASYM_PMD_H_
7 #define _QAT_ASYM_PMD_H_
9 #include <rte_cryptodev.h>
10 #include "qat_device.h"
12 /** Intel(R) QAT Asymmetric Crypto PMD driver name */
13 #define CRYPTODEV_NAME_QAT_ASYM_PMD crypto_qat_asym
16 extern uint8_t cryptodev_qat_asym_driver_id
;
18 /** private data structure for a QAT device.
19 * This QAT device is a device offering only asymmetric crypto service,
20 * there can be one of these on each qat_pci_device (VF).
22 struct qat_asym_dev_private
{
23 struct qat_pci_device
*qat_dev
;
24 /**< The qat pci device hosting the service */
26 /**< Device instance for this rte_cryptodev */
27 const struct rte_cryptodev_capabilities
*qat_dev_capabilities
;
28 /* QAT device asymmetric crypto capabilities */
32 qat_asym_pmd_enqueue_op_burst(void *qp
, struct rte_crypto_op
**ops
,
36 qat_asym_pmd_dequeue_op_burst(void *qp
, struct rte_crypto_op
**ops
,
39 int qat_asym_session_configure(struct rte_cryptodev
*dev
,
40 struct rte_crypto_asym_xform
*xform
,
41 struct rte_cryptodev_asym_session
*sess
,
42 struct rte_mempool
*mempool
);
45 qat_asym_dev_create(struct qat_pci_device
*qat_pci_dev
);
48 qat_asym_dev_destroy(struct qat_pci_device
*qat_pci_dev
);
50 #endif /* _QAT_ASYM_PMD_H_ */