From: jsg Date: Fri, 7 May 2021 00:37:36 +0000 (+0000) Subject: add support for RTL8168FP/RTL8111FP/RTL8117 to re(4) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=02da01de594902c96c403b572bd6adf554068494;p=openbsd add support for RTL8168FP/RTL8111FP/RTL8117 to re(4) from Stephen Taylor who tested on a ThinkCenter M75n Nano IoT with RTL8111FP-CG --- diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 403c12715c0..06a98ca57af 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -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: diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h index 547807d9bd0..0790b3e697d 100644 --- a/sys/dev/ic/rtl81x9reg.h +++ b/sys/dev/ic/rtl81x9reg.h @@ -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 @@ -210,6 +210,7 @@ #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