summaryrefslogtreecommitdiff
path: root/include/net-common.h
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2024-10-16 12:04:01 +0200
committerTom Rini <trini@konsulko.com>2024-10-16 11:11:56 -0600
commit7ad5e878cd850102e13ee2a5f8a5fb69742f70b0 (patch)
tree7cd983a20bd27d6ceae4c2c7f677df1d693db529 /include/net-common.h
parent1d5d292b79415abf3d0214cd2f707b43cf9fdfbf (diff)
net: eth-uclass: add function eth_start_udev()
Add a function to start a given network device, and update eth_init() to use it. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/net-common.h')
-rw-r--r--include/net-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h
index 543f528a4a4..6bc76658d9d 100644
--- a/include/net-common.h
+++ b/include/net-common.h
@@ -192,6 +192,7 @@ int eth_env_set_enetaddr_by_index(const char *base_name, int index,
int usb_ether_init(void);
int eth_init(void); /* Initialize the device */
+int eth_start_udev(struct udevice *dev); /* ->start() if not already running */
int eth_send(void *packet, int length); /* Send a packet */
#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
int eth_receive(void *packet, int length); /* Receive a packet*/