net/mlx: fix debug build with icc
[dpdk.git] / drivers / compress / zlib / zlib_pmd_private.h
index d26a740..2c6e83d 100644 (file)
@@ -27,6 +27,45 @@ int zlib_logtype_driver;
        ZLIB_PMD_LOG(WARNING, fmt, ## args)
 
 struct zlib_private {
+       struct rte_mempool *mp;
 };
 
+struct zlib_qp {
+       struct rte_ring *processed_pkts;
+       /**< Ring for placing process packets */
+       struct rte_compressdev_stats qp_stats;
+       /**< Queue pair statistics */
+       uint16_t id;
+       /**< Queue Pair Identifier */
+       char name[RTE_COMPRESSDEV_NAME_MAX_LEN];
+       /**< Unique Queue Pair Name */
+} __rte_cache_aligned;
+
+/* Algorithm handler function prototype */
+typedef void (*comp_func_t)(struct rte_comp_op *op, z_stream *strm);
+
+typedef int (*comp_free_t)(z_stream *strm);
+
+/** ZLIB Stream structure */
+struct zlib_stream {
+       z_stream strm;
+       /**< zlib stream structure */
+       comp_func_t comp;
+       /**< Operation (compression/decompression) */
+       comp_free_t free;
+       /**< Free Operation (compression/decompression) */
+} __rte_cache_aligned;
+
+/** ZLIB private xform structure */
+struct zlib_priv_xform {
+       struct zlib_stream stream;
+} __rte_cache_aligned;
+
+int
+zlib_set_stream_parameters(const struct rte_comp_xform *xform,
+               struct zlib_stream *stream);
+
+/** Device specific operations function pointer structure */
+extern struct rte_compressdev_ops *rte_zlib_pmd_ops;
+
 #endif /* _RTE_ZLIB_PMD_PRIVATE_H_ */