Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2000 22:57:44 +0100
From:      Frank Nobis <fn@radio-do.de>
To:        current@FreeBSD.org
Subject:   if_rl.c broken ? Realtek 8139 not longer recognised.
Message-ID:  <20001101225744.A752@radio-do.de>

next in thread | raw e-mail | index | archive | help
Hi,

I have a realtek ethernet card. The normal dmesg is this:

rl0: <RealTek 8139 10/100BaseTX> port 0xb400-0xb4ff mem 0xd9000000-0xd90000ff irq 10 at device 11.0 on pci0
rl0: Ethernet address: 00:e0:7d:7d:cd:35
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

With the change to 8bit wide eeprom reads instead of the 6bit wide reads, the message
is now:

rl0: <RealTek 8139 10/100BaseTX> port 0xb400-0xb4ff mem 0xd9000000-0xd90000ff irq 10 at device 11.0 on pci0
rl0: Ethernet address: 00:e0:7d:7d:cd:35
rl0: unknown device ID: 4a7

I changed if_rl.c to confirm that it really is the 6/8 bit change:

=== trinity(17)/usr/src/sys/pci # cvs diff if_rl.c 
Index: if_rl.c
===================================================================
RCS file: /export5/full.src/src/sys/pci/if_rl.c,v
retrieving revision 1.49
diff -c -r1.49 if_rl.c
*** if_rl.c     2000/10/30 07:54:38     1.49
--- if_rl.c     2000/11/01 19:39:02
***************
*** 896,903 ****
--- 896,905 ----
        rl_reset(sc);
        sc->rl_eecmd_read = RL_EECMD_READ_6BIT;
        rl_read_eeprom(sc, (caddr_t)&rl_did, 0, 1, 0);
+ #ifdef notyet
        if (rl_did != 8129)
                sc->rl_eecmd_read = RL_EECMD_READ_8BIT;
+ #endif
  

This is not meant as a patch, just a trick for me to confirm it was the 6/8 bit change.

The change occured from 1.48 to 1.49 of if_rl.c

Regards,
	Frank

-- 
~/.signature not found: wellknown error 42


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001101225744.A752>