Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: SMSC LAN9118 Family driver
Hi! Tsutsui-san,
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
Date: Thu, 30 Jul 2009 01:16:51 +0900
> > > >+ if (myea == NULL) {
> > > :
> > > >+ } else
> > > >+ /* We set MACaddr to MAC CSR, after Soft reset. */
> > > >+ memcpy(sc->sc_enaddr, myea, ETHER_ADDR_LEN);
> > >
> > > I'm not sure how/when backends pass the myea values, but if it
> > > could be board specific, it might be better to pass it via proplib
> > > like wm(4) for iyonix.
> >
> > I do not think like that. This has only wm_attach() though wm is obtained
> > via proplib. On the other hand, smsh can obtain myea in each back end.
> > For instance, gumstix obtains it in if_smsh_gxio.c.
> > The proplib will only have to be used at that time if smsh@isa needs myea.
> Which backend can use LAN9118_ADDR[HL] to obtain its MAC address,
> and which one needs to pass its MAC address via myea?
The MAC Address auto-loaded to the register ADDR[HL] by LAN9118, if valid
EEPROM on board. Maybe all ISA device have valid EEPROM.
However GUMSTIX not have EEPROM. And calculate from serial-number of
board.
Thanks,
--
kiyohara
Home |
Main Index |
Thread Index |
Old Index