net/virtio: remove unused offloads macro
[dpdk.git] / drivers / raw / ifpga_rawdev / ifpga_rawdev.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2018 Intel Corporation
3  */
4
5 #ifndef _IFPGA_RAWDEV_H_
6 #define _IFPGA_RAWDEV_H_
7
8 extern int ifpga_rawdev_logtype;
9
10 #define IFPGA_RAWDEV_PMD_LOG(level, fmt, args...) \
11         rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "ifgpa: " fmt, \
12                 ##args)
13
14 #define IFPGA_RAWDEV_PMD_FUNC_TRACE() IFPGA_RAWDEV_PMD_LOG(DEBUG, ">>")
15
16 #define IFPGA_RAWDEV_PMD_DEBUG(fmt, args...) \
17         IFPGA_RAWDEV_PMD_LOG(DEBUG, fmt, ## args)
18 #define IFPGA_RAWDEV_PMD_INFO(fmt, args...) \
19         IFPGA_RAWDEV_PMD_LOG(INFO, fmt, ## args)
20 #define IFPGA_RAWDEV_PMD_ERR(fmt, args...) \
21         IFPGA_RAWDEV_PMD_LOG(ERR, fmt, ## args)
22 #define IFPGA_RAWDEV_PMD_WARN(fmt, args...) \
23         IFPGA_RAWDEV_PMD_LOG(WARNING, fmt, ## args)
24
25 enum ifpga_rawdev_device_state {
26         IFPGA_IDLE,
27         IFPGA_READY,
28         IFPGA_ERROR
29 };
30
31 static inline struct opae_adapter *
32 ifpga_rawdev_get_priv(const struct rte_rawdev *rawdev)
33 {
34         return rawdev->dev_private;
35 }
36
37 #endif /* _IFPGA_RAWDEV_H_ */