add support for RTL8168FP/RTL8111FP/RTL8117 to re(4)
authorjsg <jsg@openbsd.org>
Fri, 7 May 2021 00:37:36 +0000 (00:37 +0000)
committerjsg <jsg@openbsd.org>
Fri, 7 May 2021 00:37:36 +0000 (00:37 +0000)
from Stephen Taylor who tested on a ThinkCenter M75n Nano IoT
with RTL8111FP-CG

sys/dev/ic/re.c
sys/dev/ic/rtl81x9reg.h

index 403c127..06a98ca 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: re.c,v 1.208 2020/12/12 11:48:52 jan Exp $    */
+/*     $OpenBSD: re.c,v 1.209 2021/05/07 00:37:36 jsg Exp $    */
 /*     $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $   */
 /*
  * Copyright (c) 1997, 1998-2003
@@ -248,6 +248,7 @@ static const struct re_revision {
        { RL_HWREV_8168E,       "RTL8168E/8111E" },
        { RL_HWREV_8168E_VL,    "RTL8168E/8111E-VL" },
        { RL_HWREV_8168EP,      "RTL8168EP/8111EP" },
+       { RL_HWREV_8168FP,      "RTL8168FP/8111FP" },
        { RL_HWREV_8169,        "RTL8169" },
        { RL_HWREV_8169_8110SB, "RTL8169/8110SB" },
        { RL_HWREV_8169_8110SBL, "RTL8169SBL" },
@@ -754,6 +755,7 @@ re_attach(struct rl_softc *sc, const char *intrstr)
                sc->rl_max_mtu = RL_JUMBO_MTU_9K;
                break;
        case RL_HWREV_8168EP:
+       case RL_HWREV_8168FP:
        case RL_HWREV_8168G:
        case RL_HWREV_8168GU:
        case RL_HWREV_8168H:
index 547807d..0790b3e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rtl81x9reg.h,v 1.101 2018/04/11 08:02:18 patrick Exp $        */
+/*     $OpenBSD: rtl81x9reg.h,v 1.102 2021/05/07 00:37:36 jsg Exp $    */
 
 /*
  * Copyright (c) 1997, 1998
 #define RL_HWREV_8168EP                0x50000000
 #define RL_HWREV_8168GU                0x50800000
 #define RL_HWREV_8168H         0x54000000
+#define RL_HWREV_8168FP                0x54800000
 #define RL_HWREV_8411B         0x5c800000      
 #define RL_HWREV_8139          0x60000000
 #define RL_HWREV_8139A         0x70000000