d26a740d313507b39d95cf3a6d92165ddec8b692
[dpdk.git] / drivers / compress / zlib / zlib_pmd_private.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Cavium Networks
3  */
4
5 #ifndef _RTE_ZLIB_PMD_PRIVATE_H_
6 #define _RTE_ZLIB_PMD_PRIVATE_H_
7
8 #include <zlib.h>
9 #include <rte_compressdev.h>
10 #include <rte_compressdev_pmd.h>
11
12 #define COMPRESSDEV_NAME_ZLIB_PMD       compress_zlib
13 /**< ZLIB PMD device name */
14
15 #define DEF_MEM_LEVEL                   8
16
17 int zlib_logtype_driver;
18 #define ZLIB_PMD_LOG(level, fmt, args...) \
19         rte_log(RTE_LOG_ ## level, zlib_logtype_driver, "%s(): "fmt "\n", \
20                         __func__, ##args)
21
22 #define ZLIB_PMD_INFO(fmt, args...) \
23         ZLIB_PMD_LOG(INFO, fmt, ## args)
24 #define ZLIB_PMD_ERR(fmt, args...) \
25         ZLIB_PMD_LOG(ERR, fmt, ## args)
26 #define ZLIB_PMD_WARN(fmt, args...) \
27         ZLIB_PMD_LOG(WARNING, fmt, ## args)
28
29 struct zlib_private {
30 };
31
32 #endif /* _RTE_ZLIB_PMD_PRIVATE_H_ */