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
..
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2011-08-01 15:19:40 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-10-22 01:22:21 +02:00
2010-09-19 19:29:47 +02:00
2010-12-09 10:24:09 +01:00
2011-10-26 21:40:44 +02:00
2011-08-04 23:34:02 +02:00
2011-10-26 21:39:40 +02:00
2011-08-01 15:19:40 +02:00
2011-05-19 22:22:44 +02:00
2011-12-01 09:10:57 +01:00
2011-10-27 23:54:08 +02:00
2011-04-30 23:29:55 +02:00
2011-12-01 09:45:35 +01:00
2011-09-05 11:41:42 +02:00
2011-09-10 00:04:01 +02:00
2011-11-03 02:14:58 -05:00
2010-10-12 22:44:33 +02:00
2011-12-20 22:57:25 +01:00
2011-12-10 17:54:04 -05:00
2011-07-26 14:10:14 +02:00
2011-10-27 21:56:31 +02:00
2011-10-05 22:03:11 +02:00
2011-03-27 19:19:54 +02:00
2011-08-04 23:34:02 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-08-01 15:19:40 +02:00
2011-07-26 16:29:27 +02:00
2011-06-22 20:00:51 +02:00
2011-12-07 08:45:51 +01:00
2011-04-29 07:32:48 -05:00
2011-09-30 22:00:55 +02:00
2011-08-01 15:19:40 +02:00
2010-05-28 10:56:04 -04:00
2011-08-01 15:19:40 +02:00