Michael Walle fea7dcae50 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>
2011-12-20 22:57:25 +01:00
..
2011-11-23 08:25:50 +01:00
2009-07-22 22:53:44 -07:00
2011-12-20 22:57:25 +01:00
2011-10-27 23:53:58 +02:00
2002-07-20 20:14:13 +00:00
2005-04-01 00:25:43 +00:00