summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-10-13 13:57:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-13 13:57:10 +0200
commita92289ee150d91e1c9af414ef8c85c57763b594d (patch)
tree8a6bcca75bdcaf3dfa60f2bdd9bb2bbdf92d4f76 /include
parentd4ae058b027e33547bc6b0448594d4dd878dc2ad (diff)
parent19eabb0a16b5e2435afc4dd16718fef1cc08b6fd (diff)
downloadbarebox-a92289ee150d91e1c9af414ef8c85c57763b594d.tar.gz
barebox-a92289ee150d91e1c9af414ef8c85c57763b594d.tar.xz
Merge branch 'for-next/net'
Diffstat (limited to 'include')
-rw-r--r--include/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index 310bf5169d..338033d698 100644
--- a/include/net.h
+++ b/include/net.h
@@ -79,6 +79,8 @@ struct eth_device {
#define ETH_MODE_STATIC 1
#define ETH_MODE_DISABLED 2
unsigned int global_mode;
+
+ uint64_t last_link_check;
};
#define dev_to_edev(d) container_of(d, struct eth_device, dev)
@@ -109,6 +111,7 @@ int eth_open(struct eth_device *edev);
void eth_close(struct eth_device *edev);
int eth_send(struct eth_device *edev, void *packet, int length); /* Send a packet */
int eth_rx(void); /* Check for received packets */
+void eth_open_all(void);
struct eth_device *of_find_eth_device_by_node(struct device_node *np);
/* associate a MAC address to a ethernet device. Should be called by