cc31246c3f3f448d10bc0080d2ceb0f7b2a0140e
[dpdk.git] / drivers / crypto / qat / qat_comp_pmd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4
5 #ifndef _QAT_COMP_PMD_H_
6 #define _QAT_COMP_PMD_H_
7
8 #include "qat_device.h"
9
10
11 /**< Intel(R) QAT Compression PMD device name */
12 #define COMPRESSDEV_NAME_QAT_PMD        comp_qat
13
14
15 /** private data structure for a QAT compression device.
16  * This QAT device is a device offering only a compression service,
17  * there can be one of these on each qat_pci_device (VF).
18  */
19 struct qat_comp_dev_private {
20         struct qat_pci_device *qat_dev;
21         /**< The qat pci device hosting the service */
22 };
23
24 int
25 qat_comp_dev_create(struct qat_pci_device *qat_pci_dev);
26
27 int
28 qat_comp_dev_destroy(struct qat_pci_device *qat_pci_dev);
29 #endif /* _QAT_COMP_PMD_H_ */