diff options
author | Michael Walle <michael@walle.cc> | 2011-10-27 11:31:35 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-20 22:57:25 +0100 |
commit | fea7dcae506bfbc3f67f8ed6a415d4f45914ee9b (patch) | |
tree | 21e78f3fef4225d0d6bd916221cc4cc41c59e38d /common/cmd_misc.c | |
parent | 19a5944fcd623f1793ce57569171f617200e4b15 (diff) | |
download | u-boot-imx-fea7dcae506bfbc3f67f8ed6a415d4f45914ee9b.zip u-boot-imx-fea7dcae506bfbc3f67f8ed6a415d4f45914ee9b.tar.gz u-boot-imx-fea7dcae506bfbc3f67f8ed6a415d4f45914ee9b.tar.bz2 |
net: introduce per device index
Instead of counting the device index everytime a functions needs it, store
it in the eth_device struct. eth_register() keeps track of the indices and
updates the device's index number. This simplifies some functions in
net/eth.c.
Additionally, a network driver can now query its index, eg. to get the
correct environment ethaddr name.
Signed-off-by: Michael Walle <michael@walle.cc>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Mike Frysinger <vapier@gentoo.com>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/cmd_misc.c')
0 files changed, 0 insertions, 0 deletions