1
0
Fork 0
remarkable-uboot/net
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
..
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
bootp.c net/bootp.c: Fix GCC 4.6 warning 2011-11-23 08:25:50 +01:00
bootp.h net: express the first argument to NetSetTimeout() in milliseconds 2008-10-18 21:54:00 +02:00
dns.c net/dns.c: Fix endian conversion for big-endian in dns command 2011-10-23 23:34:19 +02:00
dns.h Add DNS support 2009-07-22 22:53:44 -07:00
eth.c net: introduce per device index 2011-12-20 22:57:25 +01:00
net.c net: Make sure IPaddr_t is 32 bits in size 2011-12-06 22:15:32 +01:00
nfs.c net: Make sure IPaddr_t is 32 bits in size 2011-12-06 22:15:32 +01:00
nfs.h nfs: accept CONFIG_NFS_READ_SIZE from config file 2009-08-25 13:35:54 -07:00
rarp.c net: Export auto_load, use it in rarp 2011-10-27 23:53:58 +02:00
rarp.h Initial revision 2002-07-20 20:14:13 +00:00
sntp.c NET: pass source IP address to packet handlers 2011-05-12 19:38:19 +02:00
sntp.h * Patch by Masami Komiya, 30 Mar 2005: 2005-04-01 00:25:43 +00:00
tftp.c net: Make sure IPaddr_t is 32 bits in size 2011-12-06 22:15:32 +01:00
tftp.h net: tftpput: Support selecting get/put for tftp 2011-10-26 21:34:44 +02:00