From owner-cvs-all Sun Dec 5 12: 2:48 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3BEAB15415; Sun, 5 Dec 1999 12:02:46 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA26213; Sun, 5 Dec 1999 12:02:46 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Message-Id: <199912052002.MAA26213@freefall.freebsd.org> From: Bill Paul Date: Sun, 5 Dec 1999 12:02:46 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_sf.c if_sfreg.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 1999/12/05 12:02:46 PST Modified files: sys/pci if_sf.c if_sfreg.h Log: Modify the Adaptec "starfire" driver to reset the PHY on the MII bus before selecting a mode. The Seeq PHY chips on the Adaptec cards that use the AIC-6915 controller seem to need it in order to get them to change modes correctly. This corrects a problem that I noticed where my ANA-62022 board failed to correctly program the full duplex bit in the macconfig1 register when the interface was brought up. Running ifconfig sf0 would mask this problem in some cases because polling the PHY status would cause the miibus code to notice that full duplex was now needed and the statchg callback would be invoked to configure the duplex setting. However it would still get it wrong other times. Also changed sf_miibus_statchg() to program the IPG register to match the duplex setting in accordance with Adaptec manual's recommendations (0x15 for full duplex, 0x11 for half duplex). Revision Changes Path 1.18 +39 -13 src/sys/pci/if_sf.c 1.6 +11 -1 src/sys/pci/if_sfreg.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message