From owner-cvs-all Tue May 30 22:41: 3 2000 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 89EC737BEA4; Tue, 30 May 2000 22:40:54 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA97845; Tue, 30 May 2000 22:40:53 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Message-Id: <200005310540.WAA97845@freefall.freebsd.org> From: Bill Paul Date: Tue, 30 May 2000 22:40:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_dc.c if_dcreg.h src/sys/dev/mii dcphy.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG wpaul 2000/05/30 22:40:53 PDT Modified files: sys/pci if_dc.c if_dcreg.h sys/dev/mii dcphy.c Log: Rework the support for the internal autonegotiation on the 21143 and workalike chips (Macronix 98713A/98715 and PNIC II). Timing is somewhat critical: you need to bring the link as soon as possible after NWAY is done, and the old one second polling interval was too long. Now we poll every 10th of a second until NWAY completes (at which point we return to the 1 second interval again to keep an eye on the link state). I tested all the other cards I had on hand to make sure I didn't bust any of them and they seem to work (including the MII-based 21143 card). This should fix some autoneg problems with DE500-BA cards and the built-in 10/100 ethernet on some alpha systems. (Now before anyone asks why I never noticed this before, the old code worked just find with the Intel swich I used for testing back in NY. Apparently not all switches are as picky about the timing.) Revision Changes Path 1.13 +37 -17 src/sys/pci/if_dc.c 1.5 +2 -1 src/sys/pci/if_dcreg.h 1.4 +25 -62 src/sys/dev/mii/dcphy.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message