diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2009-04-13 12:28:46 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2009-04-13 12:28:46 +0000 |
| commit | f231bee40e3876bc6e566effc0c88f93287eb62f (patch) | |
| tree | c471fdbc5f1e26cbf9b1b663b21dd30c67095dba /sys/dev | |
| parent | 553bcc99521aa7aaff01db4641cd26fb65b18c2b (diff) | |
Add HWREV values of RTL8168CP and RTL8168D. From FreeBSD.
XXX: needs more quirk handling after wakeup for newer chips.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/rtl8169.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/rtl81x9reg.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl8169.c b/sys/dev/ic/rtl8169.c index 748c5643d00..67471f3f9dc 100644 --- a/sys/dev/ic/rtl8169.c +++ b/sys/dev/ic/rtl8169.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtl8169.c,v 1.113 2009/03/28 22:16:08 tsutsui Exp $ */ +/* $NetBSD: rtl8169.c,v 1.114 2009/04/13 12:28:46 tsutsui Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.113 2009/03/28 22:16:08 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.114 2009/04/13 12:28:46 tsutsui Exp $"); /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */ /* @@ -602,6 +602,8 @@ re_attach(struct rtk_softc *sc) break; case RTK_HWREV_8168C: case RTK_HWREV_8168C_SPIN2: + case RTK_HWREV_8168CP: + case RTK_HWREV_8168D: sc->sc_rev = 24; sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD; /* diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h index 50e072f860a..66d1ff5ce34 100644 --- a/sys/dev/ic/rtl81x9reg.h +++ b/sys/dev/ic/rtl81x9reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: rtl81x9reg.h,v 1.35 2009/03/27 12:19:17 tsutsui Exp $ */ +/* $NetBSD: rtl81x9reg.h,v 1.36 2009/04/13 12:28:46 tsutsui Exp $ */ /* * Copyright (c) 1997, 1998 @@ -158,6 +158,7 @@ #define RTK_HWREV_8169_8110SB 0x10000000 #define RTK_HWREV_8169_8110SC 0x18000000 #define RTK_HWREV_8102EL 0x24800000 +#define RTK_HWREV_8168D 0x28000000 #define RTK_HWREV_8168_SPIN1 0x30000000 #define RTK_HWREV_8100E 0x30800000 #define RTK_HWREV_8101E 0x34000000 @@ -167,6 +168,7 @@ #define RTK_HWREV_8100E_SPIN2 0x38800000 #define RTK_HWREV_8168C 0x3C000000 #define RTK_HWREV_8168C_SPIN2 0x3C400000 +#define RTK_HWREV_8168CP 0x3C800000 #define RTK_HWREV_8139 0x60000000 #define RTK_HWREV_8139A 0x70000000 #define RTK_HWREV_8139AG 0x70800000 |
