3d15d7bc31a576e8353793475ebfad152b44502a
[dpdk.git] / drivers / compress / qat / qat_comp_pmd.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2018 Intel Corporation
3  */
4
5 #ifndef _QAT_COMP_PMD_H_
6 #define _QAT_COMP_PMD_H_
7
8 #ifdef RTE_LIBRTE_COMPRESSDEV
9
10 #include <rte_compressdev.h>
11 #include <rte_compressdev_pmd.h>
12
13 /** private data structure for a QAT compression device.
14  * This QAT device is a device offering only a compression service,
15  * there can be one of these on each qat_pci_device (VF).
16  */
17 struct qat_comp_dev_private {
18         struct qat_pci_device *qat_dev;
19         /**< The qat pci device hosting the service */
20         struct rte_compressdev *compressdev;
21         /**< The pointer to this compression device structure */
22         const struct rte_memzone *interm_buff_mz;
23         /**< The device's memory for intermediate buffers */
24         struct rte_mempool *xformpool;
25         /**< The device's pool for qat_comp_xforms */
26
27 };
28
29 #endif
30 #endif /* _QAT_COMP_PMD_H_ */