]> git.droids-corp.org - dpdk.git/blobdiff - drivers/compress/qat/qat_comp.h
compress/qat: add xform processing
[dpdk.git] / drivers / compress / qat / qat_comp.h
index 89c475ee6d3609140ccc7f95853bc91e86cdffd4..0f58a76c4fab8e22f09f0cae74296007b04376d0 100644 (file)
 #include <rte_compressdev.h>
 #include <rte_compressdev_pmd.h>
 
+#include "icp_qat_hw.h"
+#include "icp_qat_fw_comp.h"
+#include "icp_qat_fw_la.h"
+
+enum qat_comp_request_type {
+       QAT_COMP_REQUEST_FIXED_COMP_STATELESS,
+       QAT_COMP_REQUEST_DYNAMIC_COMP_STATELESS,
+       QAT_COMP_REQUEST_DECOMPRESS,
+       REQ_COMP_END
+};
+
+
+struct qat_comp_xform {
+       struct icp_qat_fw_comp_req qat_comp_req_tmpl;
+       enum qat_comp_request_type qat_comp_request_type;
+       enum rte_comp_checksum_type checksum_type;
+};
+
+
+int
+qat_comp_private_xform_create(struct rte_compressdev *dev,
+                             const struct rte_comp_xform *xform,
+                             void **private_xform);
+
+int
+qat_comp_private_xform_free(struct rte_compressdev *dev, void *private_xform);
+
+unsigned int
+qat_comp_xform_size(void);
+
 #endif
 #endif