From owner-freebsd-sparc64@FreeBSD.ORG Sat Aug 23 10:59:45 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 9BB8516A4BF for ; Sat, 23 Aug 2003 10:59:45 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 77DD243FA3 for ; Sat, 23 Aug 2003 10:59:44 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 14635 invoked by uid 65534); 23 Aug 2003 17:59:43 -0000 Received: from p508E6B3C.dip.t-dialin.net (EHLO galatea.local) (80.142.107.60) by mail.gmx.net (mp007) with SMTP; 23 Aug 2003 19:59:43 +0200 Received: from tmm by galatea.local with local (Exim 4.22 #1) id 19qcgP-000CAg-Ck; Sat, 23 Aug 2003 20:00:13 +0200 Date: Sat, 23 Aug 2003 20:00:13 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030823180012.GA668@crow.dom2ip.de> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20030822185956.GL21392@km.ua> User-Agent: Mutt/1.4.1i Sender: Thomas Moestl 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: Sat, 23 Aug 2003 17:59:45 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, 2003/08/22 at 21:59:56 +0300, Maxim Mazurok wrote: > but i no reslolve next problem. > in my Ultra AXi motherboard i have: > 1. 4 rl cards > 2. dual-port sio card > 3. VGA+dual ethernet (hme) card > > on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have > same mac-address. Width any value OFW option "local-mac-address?". That should not be too hard to fix. Do you actually require different MAC addresses for some network setup? > i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same > effect. width new problem: rl cards no worked. i have not any arp addresses > from rl cards. The attached patch might fix that, I haven't tested it because of lack of hardware, though. - 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 --EVF5PPMfhYS0aIcm 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 23 Aug 2003 17:45:29 -0000 @@ -2673,8 +2673,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); /* --EVF5PPMfhYS0aIcm--