Subject: kern/32386: RTK NIC card model added to kernel
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <dawszy@arhea.pl>
List: netbsd-bugs
Date: 12/25/2005 19:40:01
>Number:         32386
>Category:       kern
>Synopsis:       RTK8169SB NIC type card added
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 25 19:40:00 +0000 2005
>Originator:     Dawid Szymanski (arhea)
>Release:        NetBSD 3.0_BETA
>Organization:
-- 
The most important are people you are surrounded by.
VY73 de SQ6EMM (QRP) | http://www.NetBSD.org/ | JID: dawszy@lubin.edu.pl
>Environment:
	
	
System: NetBSD gornik.lubin.edu.pl 3.0_BETA NetBSD 3.0_BETA (GENERIC) #0: Mon Sep 19 00:09:47 CEST 2005 dawszy@gornik.lubin.edu.pl:/data/NetBSD/OUT/3.0_BETA-20050918/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	
	8169SB chipset on RTK card mounted in AMILOPro V2040
>How-To-Repeat:
	
	apply patch below to current
>Fix:
Index: ic/rtl81x9reg.h
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.13
diff -u -r1.13 rtl81x9reg.h
--- ic/rtl81x9reg.h     11 Dec 2005 12:21:28 -0000      1.13
+++ ic/rtl81x9reg.h     25 Dec 2005 19:37:02 -0000
@@ -148,6 +148,7 @@

 #define RTK_HWREV_8169         0x00000000
 #define RTK_HWREV_8169S                0x04000000
+#define RTK_HWREV_8169SB       0x10000000
 #define RTK_HWREV_8110S                0x00800000
 #define RTK_HWREV_8139         0x60000000
 #define RTK_HWREV_8139A                0x70000000
Index: pci/if_re_pci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_re_pci.c,v
retrieving revision 1.11
diff -u -r1.11 if_re_pci.c
--- pci/if_re_pci.c     23 Nov 2005 18:56:22 -0000      1.11
+++ pci/if_re_pci.c     25 Dec 2005 19:37:02 -0000
@@ -106,6 +106,8 @@
                "RealTek 8169 Gigabit Ethernet" },
        { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169, RTK_HWREV_8169S,
                "RealTek 8169S Single-chip Gigabit Ethernet" },
+       { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169, RTK_HWREV_8169SB,
+               "RealTek 8169SB Single-chip Gigabit Ethernet" },
        { PCI_VENDOR_COREGA, PCI_PRODUCT_COREGA_LAPCIGT, RTK_HWREV_8169S,
                "Corega CG-LAPCIGT Gigabit Ethernet" },
        { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169, RTK_HWREV_8110S,
@@ -130,6 +132,7 @@
        { RTK_HWREV_8139CPLUS, RTK_8139CPLUS, "C+"},
        { RTK_HWREV_8169, RTK_8169, "8169"},
        { RTK_HWREV_8169S, RTK_8169, "8169S"},
+       { RTK_HWREV_8169SB, RTK_8169, "8169SB"},
        { RTK_HWREV_8110S, RTK_8169, "8110S"},
        { RTK_HWREV_8100, RTK_8139, "8100"},
        { RTK_HWREV_8101, RTK_8139, "8101"},

>Unformatted: