From a72c060fb00fdbefd3df75aa593c99d96c200544 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sun, 7 Apr 2002 20:55:50 +0000 Subject: 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. --- sys/dev/mii/miidevs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/mii/miidevs') diff --git a/sys/dev/mii/miidevs b/sys/dev/mii/miidevs index 081ea1f5e394..7b808660830f 100644 --- a/sys/dev/mii/miidevs +++ b/sys/dev/mii/miidevs @@ -59,6 +59,7 @@ oui JATO 0x00e083 Jato Technologies oui LEVEL1 0x00207b Level 1 oui NATSEMI 0x080017 National Semiconductor oui QUALSEMI 0x006051 Quality Semiconductor +oui REALTEK 0x000020 RealTek Semicondctor oui SEEQ 0x00a07d Seeq oui SIS 0x00e006 Silicon Integrated Systems oui TDK 0x00c039 TDK @@ -138,6 +139,9 @@ model NATSEMI DP83861 0x0006 DP83861 10/100/1000 media interface /* Quality Semiconductor PHYs */ model QUALSEMI QS6612 0x0000 QS6612 10/100 media interface +/* RealTek Semiconductor PHYs */ +model REALTEK RTL8201L 0x0020 RTL8201L 10/100 media interface + /* Seeq PHYs */ model xxSEEQ 80220 0x0003 Seeq 80220 10/100 media interface model xxSEEQ 84220 0x0004 Seeq 84220 10/100 media interface -- cgit v1.3