From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 2 14:53:46 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10A12106567B for ; Wed, 2 Apr 2008 14:53:46 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id D8A4B8FC29 for ; Wed, 2 Apr 2008 14:53:45 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYP00A1UDDLQN00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Wed, 02 Apr 2008 09:53:45 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYP002JBDDG5770@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Wed, 02 Apr 2008 09:53:40 -0500 (CDT) Date: Wed, 02 Apr 2008 09:57:56 -0500 From: Nathan Whitehorn In-reply-to: <47E8527B.2050002@uchicago.edu> To: freebsd-ppc@freebsd.org Message-id: <47F39EF4.8040800@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.2.74157, SenderIP=76.201.152.232 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 14:53:46 -0000 I've refreshed the BMAC tarball at http://home.physics.wisc.edu/~nwhitehorn/bm.tgz. It supports multicast and full-duplex operation now, the code is a little more style(9) compliant, and I don't think I have anything left to do unless someone finds some bugs. The patch to macio is also now included in the tarball. To support full-duplex operation, I had to do a hack to reset autonegotiation on the PHY (firmware puts the PHY in a weird state where its registers claim it did autonegotiation, but it always ends up in half-duplex mode). This is done in this way: sc->sc_mii = device_get_softc(sc->sc_miibus); LIST_FOREACH(child, &sc->sc_mii->mii_phys, mii_list) { mii_phy_auto(child); } Is a better course to modify lxtphy's attach routine to do this there? Or should this stay in bm? -Nathan