1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2021 Intel Corporation
5 #include "qat_comp_pmd.h"
6 #include "qat_comp_pmd_gens.h"
8 #define QAT_NUM_INTERM_BUFS_GEN2 20
11 qat_comp_get_num_im_bufs_required_gen2(void)
13 return QAT_NUM_INTERM_BUFS_GEN2;
16 RTE_INIT(qat_comp_pmd_gen2_init)
18 qat_comp_gen_dev_ops[QAT_GEN2].compressdev_ops =
20 qat_comp_gen_dev_ops[QAT_GEN2].qat_comp_get_capabilities =
21 qat_comp_cap_get_gen1;
22 qat_comp_gen_dev_ops[QAT_GEN2].qat_comp_get_num_im_bufs_required =
23 qat_comp_get_num_im_bufs_required_gen2;
24 qat_comp_gen_dev_ops[QAT_GEN2].qat_comp_get_ram_bank_flags =
25 qat_comp_get_ram_bank_flags_gen1;
26 qat_comp_gen_dev_ops[QAT_GEN2].qat_comp_set_slice_cfg_word =
27 qat_comp_set_slice_cfg_word_gen1;
28 qat_comp_gen_dev_ops[QAT_GEN2].qat_comp_get_feature_flags =
29 qat_comp_get_features_gen1;