| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: rtl8169.c,v 1.134 2011/11/22 18:42:56 garbled Exp $ */ | | 1 | /* $NetBSD: rtl8169.c,v 1.134.4.1 2012/03/05 20:31:49 sborrill Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1997, 1998-2003 | | 4 | * Copyright (c) 1997, 1998-2003 |
5 | * Bill Paul <wpaul@windriver.com>. All rights reserved. | | 5 | * Bill Paul <wpaul@windriver.com>. All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -23,27 +23,27 @@ | | | @@ -23,27 +23,27 @@ |
23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
25 | * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD | | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD |
26 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 26 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
32 | * THE POSSIBILITY OF SUCH DAMAGE. | | 32 | * THE POSSIBILITY OF SUCH DAMAGE. |
33 | */ | | 33 | */ |
34 | | | 34 | |
35 | #include <sys/cdefs.h> | | 35 | #include <sys/cdefs.h> |
36 | __KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.134 2011/11/22 18:42:56 garbled Exp $"); | | 36 | __KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.134.4.1 2012/03/05 20:31:49 sborrill Exp $"); |
37 | /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */ | | 37 | /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */ |
38 | | | 38 | |
39 | /* | | 39 | /* |
40 | * RealTek 8139C+/8169/8169S/8110S PCI NIC driver | | 40 | * RealTek 8139C+/8169/8169S/8110S PCI NIC driver |
41 | * | | 41 | * |
42 | * Written by Bill Paul <wpaul@windriver.com> | | 42 | * Written by Bill Paul <wpaul@windriver.com> |
43 | * Senior Networking Software Engineer | | 43 | * Senior Networking Software Engineer |
44 | * Wind River Systems | | 44 | * Wind River Systems |
45 | */ | | 45 | */ |
46 | | | 46 | |
47 | /* | | 47 | /* |
48 | * This driver is designed to support RealTek's next generation of | | 48 | * This driver is designed to support RealTek's next generation of |
49 | * 10/100 and 10/100/1000 PCI ethernet controllers. There are currently | | 49 | * 10/100 and 10/100/1000 PCI ethernet controllers. There are currently |
| @@ -596,26 +596,30 @@ re_attach(struct rtk_softc *sc) | | | @@ -596,26 +596,30 @@ re_attach(struct rtk_softc *sc) |
596 | * checksum offload. So disable jumbo frame until | | 596 | * checksum offload. So disable jumbo frame until |
597 | * I have better idea what it really requires to | | 597 | * I have better idea what it really requires to |
598 | * make it support. | | 598 | * make it support. |
599 | * RTL8168C/CP : supports up to 6KB jumbo frame. | | 599 | * RTL8168C/CP : supports up to 6KB jumbo frame. |
600 | * RTL8111C/CP : supports up to 9KB jumbo frame. | | 600 | * RTL8111C/CP : supports up to 9KB jumbo frame. |
601 | */ | | 601 | */ |
602 | sc->sc_quirk |= RTKQ_NOJUMBO; | | 602 | sc->sc_quirk |= RTKQ_NOJUMBO; |
603 | break; | | 603 | break; |
604 | case RTK_HWREV_8168E: | | 604 | case RTK_HWREV_8168E: |
605 | sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD | | | 605 | sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD | |
606 | RTKQ_MACSTAT | RTKQ_CMDSTOP | RTKQ_PHYWAKE_PM | | | 606 | RTKQ_MACSTAT | RTKQ_CMDSTOP | RTKQ_PHYWAKE_PM | |
607 | RTKQ_NOJUMBO; | | 607 | RTKQ_NOJUMBO; |
608 | break; | | 608 | break; |
| | | 609 | case RTK_HWREV_8168E_VL: |
| | | 610 | sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD | |
| | | 611 | RTKQ_MACSTAT | RTKQ_CMDSTOP | RTKQ_NOJUMBO; |
| | | 612 | break; |
609 | case RTK_HWREV_8100E: | | 613 | case RTK_HWREV_8100E: |
610 | case RTK_HWREV_8100E_SPIN2: | | 614 | case RTK_HWREV_8100E_SPIN2: |
611 | case RTK_HWREV_8101E: | | 615 | case RTK_HWREV_8101E: |
612 | sc->sc_quirk |= RTKQ_NOJUMBO; | | 616 | sc->sc_quirk |= RTKQ_NOJUMBO; |
613 | break; | | 617 | break; |
614 | case RTK_HWREV_8102E: | | 618 | case RTK_HWREV_8102E: |
615 | case RTK_HWREV_8102EL: | | 619 | case RTK_HWREV_8102EL: |
616 | case RTK_HWREV_8103E: | | 620 | case RTK_HWREV_8103E: |
617 | sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD | | | 621 | sc->sc_quirk |= RTKQ_DESCV2 | RTKQ_NOEECMD | |
618 | RTKQ_MACSTAT | RTKQ_CMDSTOP | RTKQ_NOJUMBO; | | 622 | RTKQ_MACSTAT | RTKQ_CMDSTOP | RTKQ_NOJUMBO; |
619 | break; | | 623 | break; |
620 | default: | | 624 | default: |
621 | aprint_normal_dev(sc->sc_dev, | | 625 | aprint_normal_dev(sc->sc_dev, |