xref: /dpdk/drivers/compress/qat/dev/qat_comp_pmd_gens.h (revision b53d106d34b5c638f5a2cbdfee0da5bd42d4383f)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Intel Corporation
3  */
4 
5 #ifndef _QAT_COMP_PMD_GENS_H_
6 #define _QAT_COMP_PMD_GENS_H_
7 
8 #include <rte_compressdev.h>
9 #include <rte_compressdev_pmd.h>
10 #include <stdint.h>
11 
12 #include "qat_comp_pmd.h"
13 
14 extern const struct rte_compressdev_capabilities qat_gen1_comp_capabilities[];
15 
16 struct qat_comp_capabilities_info
17 qat_comp_cap_get_gen1(struct qat_pci_device *qat_dev);
18 
19 uint16_t qat_comp_get_ram_bank_flags_gen1(void);
20 
21 int qat_comp_set_slice_cfg_word_gen1(struct qat_comp_xform *qat_xform,
22 		const struct rte_comp_xform *xform,
23 		enum rte_comp_op_type op_type,
24 		uint32_t *comp_slice_cfg_word);
25 
26 uint64_t qat_comp_get_features_gen1(void);
27 
28 extern struct rte_compressdev_ops qat_comp_ops_gen1;
29 
30 #endif /* _QAT_COMP_PMD_GENS_H_ */
31