diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-23 02:39:29 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-23 02:39:29 +0000 |
commit | 9703f71029d1055bda59640108c0f595a32cf448 (patch) | |
tree | af89bcbd1cd85fea650cb40232a0eeb005fadb9a /sys/dev/ic | |
parent | 3e575c73ca78b1a12f980ebec81889db2d401486 (diff) |
Add support for RTL8168GU
from Rafael Neves
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/re.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/rtl81x9reg.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 63556e7d6f5..deba05b3af7 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.149 2014/03/13 13:11:30 brad Exp $ */ +/* $OpenBSD: re.c,v 1.150 2014/04/23 02:39:28 jsg Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -240,6 +240,7 @@ static const struct re_revision { { RL_HWREV_8168G_SPIN1, "RTL8168G/8111G" }, { RL_HWREV_8168G_SPIN2, "RTL8168G/8111G" }, { RL_HWREV_8168G_SPIN4, "RTL8168G/8111G" }, + { RL_HWREV_8168GU, "RTL8168GU/8111GU" }, { RL_HWREV_8105E, "RTL8105E" }, { RL_HWREV_8105E_SPIN1, "RTL8105E" }, { RL_HWREV_8168D, "RTL8168D/8111D" }, @@ -717,6 +718,7 @@ re_attach(struct rl_softc *sc, const char *intrstr) case RL_HWREV_8168G: case RL_HWREV_8168G_SPIN1: case RL_HWREV_8168G_SPIN4: + case RL_HWREV_8168GU: sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD | RL_FLAG_NOJUMBO | diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h index 982f0ce3e14..ef74244d427 100644 --- a/sys/dev/ic/rtl81x9reg.h +++ b/sys/dev/ic/rtl81x9reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9reg.h,v 1.80 2014/03/13 13:11:30 brad Exp $ */ +/* $OpenBSD: rtl81x9reg.h,v 1.81 2014/04/23 02:39:28 jsg Exp $ */ /* * Copyright (c) 1997, 1998 @@ -193,6 +193,7 @@ #define RL_HWREV_8411 0x48800000 #define RL_HWREV_8168G 0x4c000000 #define RL_HWREV_8168G_SPIN1 0x4c100000 +#define RL_HWREV_8168GU 0x50800000 #define RL_HWREV_8168G_SPIN2 0x50900000 #define RL_HWREV_8168G_SPIN4 0x5c800000 #define RL_HWREV_8139 0x60000000 |