[tulip] Re: SIOCGMIIPHY (and SIOCGMIIREG)

Donald Becker becker@scyld.com
Tue Dec 18 01:35:01 2001


On Mon, 17 Dec 2001, Kent Hunt wrote:

> I finally was able to get mii-diag working for my
> LanFinity Conexant on presario 1700. In addition to
> what Donald has below, I had to add to the tulip.c
> (v0.93) driver a similar workaround for SIOCGMIIREG
> 
> case 0x8948: case 0x89F1: /* SIOCGMIIREG */

OK, thanks for the report.
Summarizing for others: to force the media type with the 2.4 kernel you
either need the updated mii-diag, or to make the following change to tulip.c

Line 3058
-	case SIOCGMIIPHY:	/* Get the address of the PHY in use. */
+	case 0x8947: case 0x89F0:
+	/* SIOCGMIIPHY: Get the address of the PHY in use. */

Line 3066
-	case SIOCGMIIREG:		/* Read the specified MII register. */
+	case 0x8948: case 0x89F1:
+	/* SIOCGMIIREG: Read the specified MII register. */

Line 3099
-	case SIOCSMIIREG:		/* Write the specified MII register */
+	case 0x8949: case 0x89F2:
+	/* SIOCSMIIREG: Write the specified MII register */


> PS. What should we do to fix the incorrect statistics
> for TX line in ifconfig? 

That's a more difficult problem.  I can't get the information from
Conexant to configure the chip to correctly report the Tx status.

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993