Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: 5.0_RC3 messed up RTL8111DL onboard NIC
> re0: Unknown revision (0x24c00000)
:
> it seems 8102E family, but I don't know exact name.
The realtek driver says bits 0x7c800000 are "mac_version" and
bits 0x00700000 are "mode", so it's the same with 8102EL.
(though we should have better names or checks)
---
Index: rtl8169.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl8169.c,v
retrieving revision 1.113
diff -u -r1.113 rtl8169.c
--- rtl8169.c 28 Mar 2009 22:16:08 -0000 1.113
+++ rtl8169.c 11 Apr 2009 12:08:40 -0000
@@ -621,6 +621,7 @@
break;
case RTK_HWREV_8102E:
case RTK_HWREV_8102EL:
+ case RTK_HWREV_8102EL_SPIN2:
sc->sc_rev = 25;
sc->sc_quirk |=
RTKQ_DESCV2 | RTKQ_NOEECMD | RTKQ_NOJUMBO;
@@ -635,6 +636,9 @@
aprint_normal_dev(sc->sc_dev,
"Unknown revision (0x%08x)\n", hwrev);
sc->sc_rev = 0;
+ /* assume the latest features */
+ sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD;
+ sc->sc_quirk |= RTKQ_NOJUMBO;
}
/* Set RX length mask */
Index: rtl81x9reg.h
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.35
diff -u -r1.35 rtl81x9reg.h
--- rtl81x9reg.h 27 Mar 2009 12:19:17 -0000 1.35
+++ rtl81x9reg.h 11 Apr 2009 12:08:40 -0000
@@ -158,6 +158,7 @@
#define RTK_HWREV_8169_8110SB 0x10000000
#define RTK_HWREV_8169_8110SC 0x18000000
#define RTK_HWREV_8102EL 0x24800000
+#define RTK_HWREV_8102EL_SPIN2 0x24C00000
#define RTK_HWREV_8168_SPIN1 0x30000000
#define RTK_HWREV_8100E 0x30800000
#define RTK_HWREV_8101E 0x34000000
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index