Way to find out which media a tulip card is using

Timm Gleason timm@n2h2.com
Wed Aug 19 11:16:56 1998


> -----Original Message-----
> From: owner-linux-tulip@beowulf.gsfc.nasa.gov
> [mailto:owner-linux-tulip@beowulf.gsfc.nasa.gov]On Behalf Of Metod
> Kozelj
> Sent: Tuesday, August 18, 1998 10:39 PM
> To: Timm Gleason
> Cc: Tulip
> Subject: Re: Way to find out which media a tulip card is using
>
>
> Hello,
>
> On Tue, 18 Aug 1998, Timm Gleason wrote:
>
> > I need to find a way of detecting which media type a tulip
> based ethernet
> > card is using on a remote box. `ifconfig` just provides
> > `eth0      Link encap:10Mbps Ethernet`
> > no matter what speed that the cards is running at. I have tried the
> > tulip-diag, but it only works when the interface is down and it does not
> > seem to provide the kind of information I need anyway.
>
> Use tulip-diag with switch -f. Here's what it has to say about my tulip
> card (which is up at the time):
>
> -----
> # ./tulip-diag -fa
> tulip-diag.c:v1.03 5/20/98 Donald Becker (becker@cesdis.gsfc.nasa.gov)
> Chip Index #1: Found a DC21142 Tulip card at PCI bus 0, device 7
> I/O 0x8800.
> Digital DS21142 Tulip chip registers at 0x8800:
>   ffa0e000 ffffffff ffffffff 4f847030 4f847230 f0660000 b2422002 fbfffbff
>   e0000000 ffffcbf8 ffffffff fffe0000 000053ca ffff0001 fff8ffff 8ffd0000
>   ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
>   ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
>  The Rx process state is 'Waiting for packets'.
>  The Tx process state is 'Idle'.
> Transmit started, Receive started, half-duplex.
>  The transmit threshold is 72.
>  Port selection is 10mpbs-serial, half-duplex.
> EEPROM transceiver/media description for the DC21142 chip.
>
> Leaf node at offset 65, default media type 0800 (Autosense).
>  4 transceiver description blocks:
>    Serial transceiver for 10baseT (media type 0).
>    Serial transceiver for 10baseT-Full Duplex (media type 4).
>    SYM transceiver for 100baseTx (media type 3).
>    SYM transceiver for 100baseTx Full Duplex (media type 5).
> ------
>
> It says: "Port selection is 10mpbs-serial, half-duplex."
>
> Regards,
>    Metod


This works fine, except, a lot of the responses I get back follow something
like this:

tulip-diag.c:v1.04 8/10/98 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Chip Index #1: Found a DC21140 Tulip card at PCI bus 0, device 12 I/O
0xb800.
Digital DS21140 Tulip chip registers at 0xb800:
  ffa04800 ffffffff ffffffff 00fff820 00fffa20 fc660000 320e2002 ffffebef
  e0000000 fffd83ff ffffffff fffe0000 ffffff80 ffffffff 1c09fdc0 fffffec8
 The Rx process state is 'Waiting for packets'.
 The Tx process state is 'Idle'.
Transmit started, Receive started, half-duplex.
 The transmit threshold is 128.
 Port selection is MII, half-duplex.
EEPROM transceiver/media description for the DC21140 chip.

Leaf node at offset 30, default media type 0800 (Autosense).
 CSR12 direction setting bits 00.
 1 transceiver description blocks:
   MII interface PHY 0 (media type 11).
 MII PHY found at address 0, status 0x782d.
 MII PHY #0 transceiver registers:
   1000 782d 7810 0000 01e1 0021 0000 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0000 4000 0000 26bb 0010 0000 0002
   0001 0000 0000 0000 0000 0000 0000 0000.

`Port selection is MII, half-duplex.` This doesn't tell me which media speed
the NIC is working at only that it is at half duplex.
`II interface PHY 0 (media type 11).` doesn't help either as the listing at
CESDIS show that type 11 is MII autoselect.

Timm Gleason
N2H2, Inc.