1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015-2018 Intel Corporation
8 #ifdef RTE_LIBRTE_COMPRESSDEV
10 #include <rte_compressdev.h>
11 #include <rte_compressdev_pmd.h>
13 #include "qat_common.h"
14 #include "icp_qat_hw.h"
15 #include "icp_qat_fw_comp.h"
16 #include "icp_qat_fw_la.h"
18 #define ERR_CODE_QAT_COMP_WRONG_FW -99
20 enum qat_comp_request_type {
21 QAT_COMP_REQUEST_FIXED_COMP_STATELESS,
22 QAT_COMP_REQUEST_DYNAMIC_COMP_STATELESS,
23 QAT_COMP_REQUEST_DECOMPRESS,
27 struct qat_comp_op_cookie {
30 struct qat_comp_xform {
31 struct icp_qat_fw_comp_req qat_comp_req_tmpl;
32 enum qat_comp_request_type qat_comp_request_type;
33 enum rte_comp_checksum_type checksum_type;
37 qat_comp_build_request(void *in_op, uint8_t *out_msg, void *op_cookie,
38 enum qat_device_gen qat_dev_gen __rte_unused);
41 qat_comp_process_response(void **op, uint8_t *resp);
45 qat_comp_private_xform_create(struct rte_compressdev *dev,
46 const struct rte_comp_xform *xform,
47 void **private_xform);
50 qat_comp_private_xform_free(struct rte_compressdev *dev, void *private_xform);
53 qat_comp_xform_size(void);