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 unsigned int 29 qat_comp_get_num_im_bufs_required_gen4(void); 30 31 int 32 qat_comp_set_slice_cfg_word_gen4(struct qat_comp_xform *qat_xform, 33 const struct rte_comp_xform *xform, 34 enum rte_comp_op_type op_type, uint32_t *comp_slice_cfg_word); 35 36 uint16_t qat_comp_get_ram_bank_flags_gen4(void); 37 38 int 39 qat_comp_dev_config_gen4(struct rte_compressdev *dev, 40 struct rte_compressdev_config *config); 41 42 extern struct rte_compressdev_ops qat_comp_ops_gen1; 43 44 #endif /* _QAT_COMP_PMD_GENS_H_ */ 45