1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2018 Intel Corporation
5 #ifndef _IFPGA_RAWDEV_H_
6 #define _IFPGA_RAWDEV_H_
8 extern int ifpga_rawdev_logtype;
10 #define IFPGA_RAWDEV_PMD_LOG(level, fmt, args...) \
11 rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "ifgpa: " fmt, \
14 #define IFPGA_RAWDEV_PMD_FUNC_TRACE() IFPGA_RAWDEV_PMD_LOG(DEBUG, ">>")
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)
25 enum ifpga_rawdev_device_state {
31 static inline struct opae_adapter *
32 ifpga_rawdev_get_priv(const struct rte_rawdev *rawdev)
34 return rawdev->dev_private;
37 #endif /* _IFPGA_RAWDEV_H_ */