compress/qat: add xform processing
[dpdk.git] / drivers / compress / qat / qat_comp.h
index 89c475e..0f58a76 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