Home
last modified time | relevance | path

Searched hist:fea7dcae506bfbc3f67f8ed6a415d4f45914ee9b (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/include/
H A Dnet.hfea7dcae506bfbc3f67f8ed6a415d4f45914ee9b Thu Oct 27 11:31:35 UTC 2011 Michael Walle <michael@walle.cc> 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>