[U-Boot] [PATCH 1/2] net: introduce per device index

Prafulla Wadaskar prafulla at marvell.com
Thu Nov 3 12:39:36 CET 2011



> -----Original Message-----
> From: Michael Walle [mailto:michael at walle.cc]
> Sent: Thursday, November 03, 2011 4:54 PM
> To: Michael Walle
> Cc: u-boot at lists.denx.de; Prafulla Wadaskar; Mike Frysinger;
> Wolfgang Denk; Michael Walle
> Subject: Re: [PATCH 1/2] net: introduce per device index
> 
> Am Do, 27.10.2011, 22:31 schrieb Michael Walle:
> > 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.
> 
> Ping, anyone?
> 
> > Signed-off-by: Michael Walle <michael at walle.cc>
> > Cc: Prafulla Wadaskar <prafulla at marvell.com>
> > Cc: Mike Frysinger <vapier at gentoo.com>
> > Cc: Wolfgang Denk <wd at denx.de>
> > ---
> >  include/net.h |    1 +
> >  net/eth.c     |   41 ++++++++++++---------------------------

These patches are for u-boot-net.git.
Copying Ben on this.

Regards..
Prafulla . .


More information about the U-Boot mailing list