fc0ec74037
ENETFEC (Fast Ethernet Controller) is a network poll mode driver for NXP SoC i.MX 8M Mini. This patch adds skeleton for enetfec driver with probe function. Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com> Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
34 lines
916 B
C
34 lines
916 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2020-2021 NXP
|
|
*/
|
|
|
|
#ifndef _ENETFEC_LOGS_H_
|
|
#define _ENETFEC_LOGS_H_
|
|
|
|
#include <rte_log.h>
|
|
|
|
extern int enetfec_logtype_pmd;
|
|
|
|
/* PMD related logs */
|
|
#define ENETFEC_PMD_LOG(level, fmt, args...) \
|
|
rte_log(RTE_LOG_ ## level, enetfec_logtype_pmd, "\nfec_net: %s()" \
|
|
fmt "\n", __func__, ##args)
|
|
|
|
#define PMD_INIT_FUNC_TRACE() ENET_PMD_LOG(DEBUG, " >>")
|
|
|
|
#define ENETFEC_PMD_DEBUG(fmt, args...) \
|
|
ENETFEC_PMD_LOG(DEBUG, fmt, ## args)
|
|
#define ENETFEC_PMD_ERR(fmt, args...) \
|
|
ENETFEC_PMD_LOG(ERR, fmt, ## args)
|
|
#define ENETFEC_PMD_INFO(fmt, args...) \
|
|
ENETFEC_PMD_LOG(INFO, fmt, ## args)
|
|
|
|
#define ENETFEC_PMD_WARN(fmt, args...) \
|
|
ENETFEC_PMD_LOG(WARNING, fmt, ## args)
|
|
|
|
/* DP Logs, toggled out at compile time if level lower than current level */
|
|
#define ENETFEC_DP_LOG(level, fmt, args...) \
|
|
RTE_LOG_DP(level, PMD, fmt, ## args)
|
|
|
|
#endif /* _ENETFEC_LOGS_H_ */
|