compress/isal: add device init and de-init
[dpdk.git] / drivers / compress / isal / isal_compress_pmd_private.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4
5 #ifndef _ISAL_COMP_PMD_PRIVATE_H_
6 #define _ISAL_COMP_PMD_PRIVATE_H_
7
8 #define COMPDEV_NAME_ISAL_PMD           compress_isal
9 /**< ISA-L comp PMD device name */
10
11 extern int isal_logtype_driver;
12 #define ISAL_PMD_LOG(level, fmt, args...) \
13         rte_log(RTE_LOG_ ## level, isal_logtype_driver, "%s(): "fmt "\n", \
14                         __func__, ##args)
15
16 /* private data structure for each ISA-L compression device */
17 struct isal_comp_private {
18         struct rte_mempool *priv_xform_mp;
19 };
20
21 /** device specific operations function pointer structure */
22 extern struct rte_compressdev_ops *isal_compress_pmd_ops;
23
24 #endif /* _ISAL_COMP_PMD_PRIVATE_H_ */