numam-dpdk/drivers/baseband/la12xx/bbdev_la12xx_pmd_logs.h
Nipun Gupta f218a1f920 baseband/la12xx: introduce NXP LA12xx driver
This patch introduce the baseband device drivers for NXP's
LA1200 series software defined baseband modem.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
2021-10-18 20:11:23 +02:00

29 lines
736 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2020 NXP
*/
#ifndef _BBDEV_LA12XX_PMD_LOGS_H_
#define _BBDEV_LA12XX_PMD_LOGS_H_
extern int bbdev_la12xx_logtype;
#define rte_bbdev_log(level, fmt, ...) \
rte_log(RTE_LOG_ ## level, bbdev_la12xx_logtype, fmt "\n", \
##__VA_ARGS__)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
#define rte_bbdev_log_debug(fmt, ...) \
rte_bbdev_log(DEBUG, "la12xx_pmd: " fmt, \
##__VA_ARGS__)
#else
#define rte_bbdev_log_debug(fmt, ...)
#endif
#define PMD_INIT_FUNC_TRACE() rte_bbdev_log_debug(">>")
/* DP Logs, toggled out at compile time if level lower than current level */
#define rte_bbdev_dp_log(level, fmt, args...) \
RTE_LOG_DP(level, PMD, fmt, ## args)
#endif /* _BBDEV_LA12XX_PMD_LOGS_H_ */