Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[patch] Support for the Realtek 8168F network card



                        Hi current-users,

I have written a (very small) patch to support the 8168F revision for
the Realtek 8169 line of network cards. I do not have the hardware for
it, so I cannot test it; it was inspired from the FreeBSD code instead:
http://svnweb.freebsd.org/base/head/sys/dev/re/if_re.c?r1=227638&r2=227639&;

I would be glad to commit this if someone can test it and confirm that
it works.

The card is notably found in the hosting solutions proposed by Hetzner
in Germany:
http://wiki.hetzner.de/index.php/FreeBSD_installieren/en

Cheers,
-- 
khorben
Index: sys/dev/ic/rtl8169.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl8169.c,v
retrieving revision 1.136
diff -p -u -r1.136 rtl8169.c
--- sys/dev/ic/rtl8169.c        22 Jul 2012 14:32:57 -0000      1.136
+++ sys/dev/ic/rtl8169.c        21 Mar 2013 19:00:04 -0000
@@ -607,6 +607,7 @@ re_attach(struct rtk_softc *sc)
                            RTKQ_NOJUMBO;
                        break;
                case RTK_HWREV_8168E_VL:
+               case RTK_HWREV_8168F:
                        sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD |
                            RTKQ_MACSTAT | RTKQ_CMDSTOP | RTKQ_NOJUMBO;
                        break;
Index: sys/dev/ic/rtl81x9reg.h
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.43
diff -p -u -r1.43 rtl81x9reg.h
--- sys/dev/ic/rtl81x9reg.h     2 Mar 2012 16:23:40 -0000       1.43
+++ sys/dev/ic/rtl81x9reg.h     21 Mar 2013 19:00:04 -0000
@@ -164,6 +164,7 @@
 #define RTK_HWREV_8168DP       0x28800000
 #define RTK_HWREV_8168E                0x2C000000
 #define RTK_HWREV_8168E_VL     0x2C800000
+#define RTK_HWREV_8168F                0x48000000
 #define RTK_HWREV_8168_SPIN1   0x30000000
 #define RTK_HWREV_8100E                0x30800000
 #define RTK_HWREV_8101E                0x34000000


Home | Main Index | Thread Index | Old Index