1 /** 2 * @file 3 * @brief Ethernet Driver raw mode 4 * 5 * This file contains a collection of functions called from the ethernet drivers 6 * to the missing upper layer. 7 */ 8 9 /* 10 * Copyright 2024 Basalte bv 11 * 12 * SPDX-License-Identifier: Apache-2.0 13 */ 14 15 #include <zephyr/net/ethernet.h> 16 ethernet_init(struct net_if * iface)17__weak void ethernet_init(struct net_if *iface) 18 { 19 ARG_UNUSED(iface); 20 } 21 net_eth_carrier_on(struct net_if * iface)22__weak void net_eth_carrier_on(struct net_if *iface) 23 { 24 ARG_UNUSED(iface); 25 } 26 net_eth_carrier_off(struct net_if * iface)27__weak void net_eth_carrier_off(struct net_if *iface) 28 { 29 ARG_UNUSED(iface); 30 } 31 net_recv_data(struct net_if * iface,struct net_pkt * pkt)32__weak int net_recv_data(struct net_if *iface, struct net_pkt *pkt) 33 { 34 ARG_UNUSED(iface); 35 ARG_UNUSED(pkt); 36 37 return -ENOTSUP; 38 } 39 net_if_carrier_on(struct net_if * iface)40__weak void net_if_carrier_on(struct net_if *iface) 41 { 42 ARG_UNUSED(iface); 43 } 44 net_if_carrier_off(struct net_if * iface)45__weak void net_if_carrier_off(struct net_if *iface) 46 { 47 ARG_UNUSED(iface); 48 } 49