[tulip] Re: SIOCGMIIPHY (and SIOCGMIIREG)
Tue Dec 18 00:26:01 2001
My two cents.
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 */
And here's my mii-diag output.
Basic registers of MII PHY #1: 1000 782d 0022 1720
01e1 45e1 0007 2001.
The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
Basic mode control register 0x1000: Auto-negotiation
You have link beat, and everything is working OK.
Your link partner advertised 45e1: Flow-control
100baseTx-FD 100baseTx 10baseT-
FD 10baseT, w/ 802.3X flow control.
End of basic transceiver informaion.
PS. What should we do to fix the incorrect statistics
for TX line in ifconfig?
--- Donald Becker <firstname.lastname@example.org> wrote:
> On Mon, 17 Dec 2001, Marinho Barcellos wrote:
> > anyone has any idea why a configuration operation
> > SIOCGMIIPHY on a socket might fail, considering
> it's a
> > Conexant board and as such has a MII transceiver?
> > (Info: kernel 2.4.8, driver tulip.c:v0.93
> Yes. Someone changed the numerical value associated
> with 'SIOCGMIIPHY'.
> This was a serious, silent change to the API. If
> you want a new value,
> change the name.
> > Error message:
> > [root@tyne diag]# mii-diag -vw eth0
> > mii-diag.c:v2.00 4/19/2000 Donald Becker
> > http://www.scyld.com/diag/index.html
> > SIOCGMIIPHY on eth0 failed: Operation not
> mii-diag v2.03 now tries both possible values for
> 'SIOCGMIIPHY', and
> I'm slowly converting the drivers to use both of the
> numeric values e.g.
> case 0x8947: case 0x89F0: /* SIOCGMIIPHY */
> This is a very frustrating interface change. I
> don't know if I should
> ascribe it to incompetence or malice.
> Donald Becker email@example.com
> Scyld Computing Corporation http://www.scyld.com
> 410 Severn Ave. Suite 210 Second Generation Beowulf
> Annapolis MD 21403 410-990-9993
> tulip mailing list, firstname.lastname@example.org
> To change to digest mode or unsubscribe visit
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com