diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2010-04-26 11:11:46 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2010-05-03 14:52:49 -0700 |
commit | ecee9324d73555e744593f3e0d387bec4c566f55 (patch) | |
tree | e0ddc06decbe33b90c867d1751272e933f5e01ec /include/net.h | |
parent | c960b13ed22d9ea570957379f9f7f2f37d87ef08 (diff) |
Program net device MAC addresses after initializing
Add a new function to the eth_device struct for programming a network
controller's hardware address.
After all network devices have been initialized and the proper MAC address
for each has been determined, make a device driver call to program the
address into the device. Only device instances with valid unicast addresses
will be programmed.
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
Tested-by: Prafulla Wadaskar <prafulla@marvell.com>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 3f6a5d1497f..a180881dc73 100644 --- a/include/net.h +++ b/include/net.h @@ -105,6 +105,7 @@ struct eth_device { #ifdef CONFIG_MCAST_TFTP int (*mcast) (struct eth_device*, u32 ip, u8 set); #endif + int (*write_hwaddr) (struct eth_device*); struct eth_device *next; void *priv; }; |