[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

src/sys/dev/mii/bmtphy.c



>                                            千葉市中央区長洲
>                                                    藤原  誠
aux_csr = PHY_READ(sc, MII_BMTPHY_AUX_CSR);
の行を下の方に動かしたら、bmtphy でも行けるような気がします。

ex0 at pci1 dev 6 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x
6c)
ex0: interrupting at irq 26
ex0: MAC address 00:02:1e:f5:06:15
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto


Index: /e/serv/20030516-utc/src/sys/dev/mii/bmtphy.c
===================================================================
RCS file: /e/CVSup/main/src/sys/dev/mii/bmtphy.c,v
retrieving revision 1.13
diff -u -r1.13 bmtphy.c
--- /e/serv/20030516-utc/src/sys/dev/mii/bmtphy.c	2003/05/02 19:42:35	1.13
+++ src/sys/dev/mii/bmtphy.c	2003/06/05 23:59:35
@@ -236,7 +236,6 @@
 	mii->mii_media_active = IFM_ETHER;
 
 	bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR);
-	aux_csr = PHY_READ(sc, MII_BMTPHY_AUX_CSR);
 
 	if (bmsr & BMSR_LINK)
 		mii->mii_media_status |= IFM_ACTIVE;
@@ -262,6 +261,7 @@
 			return;
 		}
 
+		aux_csr = PHY_READ(sc, MII_BMTPHY_AUX_CSR);
 		if (aux_csr & AUX_CSR_SPEED)
 			mii->mii_media_active |= IFM_100_TX;
 		else


---
(藤原)