From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 15:05:56 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3166516A4BF for ; Thu, 28 Aug 2003 15:05:56 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id E06B443FDD for ; Thu, 28 Aug 2003 15:05:54 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 14952 invoked by uid 65534); 28 Aug 2003 22:05:53 -0000 Received: from p508E5BC6.dip.t-dialin.net (EHLO timesink.dyndns.org) (80.142.91.198) by mail.gmx.net (mp012) with SMTP; 29 Aug 2003 00:05:53 +0200 Received: by galatea (Postfix, from userid 1001) id 56566BD; Fri, 29 Aug 2003 00:06:03 +0200 (CEST) Date: Fri, 29 Aug 2003 00:06:03 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030828220603.GC709@timesink.dyndns.org> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline In-Reply-To: <20030828104212.GL8966@km.ua> User-Agent: Mutt/1.4.1i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 22:05:56 -0000 --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 http://www.tu-bs.de/~y0015675/ 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--