From owner-cvs-all Sun Apr 7 13:55:54 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5EB7037B41A; Sun, 7 Apr 2002 13:55:50 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g37KtoY78352; Sun, 7 Apr 2002 13:55:50 -0700 (PDT) (envelope-from wpaul) Message-Id: <200204072055.g37KtoY78352@freefall.freebsd.org> From: Bill Paul Date: Sun, 7 Apr 2002 13:55:50 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/mii miidevs rlphy.c src/sys/pci if_rl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wpaul 2002/04/07 13:55:50 PDT Modified files: sys/dev/mii miidevs rlphy.c sys/pci if_rl.c Log: Teach the rlphy driver how to do parallel link detection. If the link partner doesn't support NWAY, the RealTek PHY (both the integrated ones on 8139 chips and the RTL8201L 10/100 PHY) will not report the link speed via the ANLPAR or BMSR registers. For the 8201L, we need to look in magic vendor-specific PHY register 0x19. For the 8139 MAC+PHY combo, we have to be able to test the RL_MEDIASTAT register. The changes to rlphy.c are based largely on the patch from PR 30836, however I tried to eliminate some magic numbers by creating an entry for the 8201 PHY in miidevs. Also updated if_rl.c to allow the rlphy driver to read the RL_MEDIASTAT register via the rl_miibus_readreg() routine. Revision Changes Path 1.18 +4 -0 src/sys/dev/mii/miidevs 1.8 +113 -1 src/sys/dev/mii/rlphy.c 1.67 +11 -0 src/sys/pci/if_rl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message