diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-28 11:36:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-29 12:05:26 +0200 |
commit | c46b04542f57ad4d0429ae72f47775d027b12ac6 (patch) | |
tree | 72cdcaff814bb42113dad91e0fcfb9af17e866ab /include/net.h | |
parent | fee474a22e0f6cb287f2aba5333334b71e27b942 (diff) | |
download | barebox-c46b04542f57ad4d0429ae72f47775d027b12ac6.tar.gz barebox-c46b04542f57ad4d0429ae72f47775d027b12ac6.tar.xz |
net: Add a possibility for boards to give network devices a MAC address
MAC addresses are sometimes stored at unusual places. This
patch makes it possible to give a MAC address to a ethernet
device id. This is independent of the device actually being
present.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 7ac1c33412..1272f23c02 100644 --- a/include/net.h +++ b/include/net.h @@ -55,6 +55,12 @@ int eth_send(void *packet, int length); /* Send a packet */ int eth_rx(void); /* Check for received packets */ void eth_halt(void); /* stop SCC */ +/* associate a MAC address to a ethernet device. Should be called by + * board code for boards which store their MAC address at some unusual + * place. + */ +void eth_register_ethaddr(int ethid, const char *ethaddr); + /* * Ethernet header */ |