zephyr/drivers/ethernet/eth_raw.c
Pieter De Gendt 2ee4716091 drivers: ethernet: Build ethernet drivers with ETH_DRIVER_RAW_MODE
Allow building ethernet drivers without NET_L2_ETHERNET config symbol.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-03-20 08:05:55 -05:00

49 lines
795 B
C

/**
* @file
* @brief Ethernet Driver raw mode
*
* This file contains a collection of functions called from the ethernet drivers
* to the missing upper layer.
*/
/*
* Copyright 2024 Basalte bv
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/net/ethernet.h>
__weak void ethernet_init(struct net_if *iface)
{
ARG_UNUSED(iface);
}
__weak void net_eth_carrier_on(struct net_if *iface)
{
ARG_UNUSED(iface);
}
__weak void net_eth_carrier_off(struct net_if *iface)
{
ARG_UNUSED(iface);
}
__weak int net_recv_data(struct net_if *iface, struct net_pkt *pkt)
{
ARG_UNUSED(iface);
ARG_UNUSED(pkt);
return -ENOTSUP;
}
__weak void net_if_carrier_on(struct net_if *iface)
{
ARG_UNUSED(iface);
}
__weak void net_if_carrier_off(struct net_if *iface)
{
ARG_UNUSED(iface);
}