mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 02:05:57 +00:00
Change-Id: Id008bbf43062ca0641a76edaabef47c650287444 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
17 lines
352 B
C
17 lines
352 B
C
#include <net/ip_buf.h>
|
|
|
|
#ifdef CONFIG_ETHERNET
|
|
|
|
typedef int (*ethernet_tx_callback)(struct net_buf *buf);
|
|
void net_driver_ethernet_register_tx(ethernet_tx_callback cb);
|
|
bool net_driver_ethernet_is_opened(void);
|
|
void net_driver_ethernet_recv(struct net_buf *buf);
|
|
|
|
int net_driver_ethernet_init(void);
|
|
|
|
#else
|
|
|
|
#define net_driver_ethernet_init()
|
|
|
|
#endif
|