Date: Fri, 29 Aug 2003 00:06:03 +0200 From: Thomas Moestl <t.moestl@tu-bs.de> To: Maxim Mazurok <maxim@km.ua> Cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver Message-ID: <20030828220603.GC709@timesink.dyndns.org> In-Reply-To: <20030828104212.GL8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
--oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, 2003/08/28 at 13:42:12 +0300, Maxim Mazurok wrote: > On Thu, Aug 28, 2003 at 01:00:32PM +0300, Maxim Mazurok wrote: > > >ohh. > >rl(4) driver no work at 5.1-CURRENT from > >*default release=cvs tag=. date=2003.08.22.00.00.00 > > > >my dmesg in attachemnt. > >all segments inserted to true ethernet cards, but in kernel indexes of > >ethernet cards is broken? > > > >P.S. sorry for my bad english > > ops. i wrong. > after recompile kernel width > options OFW_NEWPCI > my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> > rl2. > you swapped scan of two bloks of pci slot. > it's good. > but i have one small problem :) > rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' > can you fix this? Hmmm, actually, are you sure that you have applied the patch to if_rl.c I sent previously? I just noticed that it wouldn't even compile due to a change that I forgot (sorry about that); updated version attached. - Thomas -- Thomas Moestl <t.moestl@tu-bs.de> http://www.tu-bs.de/~y0015675/ <tmm@FreeBSD.org> http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rl-enaddr.diff" Index: if_rl.c =================================================================== RCS file: /vol/ncvs/src/sys/pci/if_rl.c,v retrieving revision 1.113 diff -u -r1.113 if_rl.c --- if_rl.c 22 Aug 2003 07:13:21 -0000 1.113 +++ if_rl.c 28 Aug 2003 21:34:37 -0000 @@ -2658,6 +2658,7 @@ struct ifnet *ifp = &sc->arpcom.ac_if; struct mii_data *mii; u_int32_t rxcfg = 0; + int i; RL_LOCK(sc); mii = device_get_softc(sc->rl_miibus); @@ -2673,8 +2674,9 @@ * register write enable" mode to modify the ID registers. */ CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); - CSR_WRITE_4(sc, RL_IDR0, *(u_int32_t *)(&sc->arpcom.ac_enaddr[0])); - CSR_WRITE_4(sc, RL_IDR4, *(u_int32_t *)(&sc->arpcom.ac_enaddr[4])); + /* Init our MAC address */ + for (i = 0; i < ETHER_ADDR_LEN; i++) + CSR_WRITE_1(sc, RL_IDR0 + i, sc->arpcom.ac_enaddr[i]); CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); /* --oLBj+sq0vYjzfsbl--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030828220603.GC709>