diff options
| author | Ben Warren <[email protected]> | 2010-04-26 11:11:46 -0700 |
|---|---|---|
| committer | Ben Warren <[email protected]> | 2010-05-03 14:52:49 -0700 |
| commit | ecee9324d73555e744593f3e0d387bec4c566f55 (patch) | |
| tree | e0ddc06decbe33b90c867d1751272e933f5e01ec /include | |
| 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 <[email protected]>
Acked-by: Detlev Zundel <[email protected]>
Tested-by: Prafulla Wadaskar <[email protected]>
Tested-by: Heiko Schocher <[email protected]>
Tested-by: Thomas Chou <[email protected]>
Diffstat (limited to 'include')
| -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; }; |
