Subject: kern/27102: Add request for Corega CG-LAPCIGT
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <h-masuda@ootani.nagata.kobe.jp>
List: netbsd-bugs
Date: 10/01/2004 20:49:40
>Number:         27102
>Category:       kern
>Synopsis:       Add request for Corega CG-LAPCIGT
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 01 12:12:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0_RC1
>Organization:
	MASUDA-NET
>Environment:
System: NetBSD 2.0_RC1 NetBSD 2.0_RC1 (GENERIC_IPSEC) #1: Fri Oct 1 20:18:41 JST 2004 h-masuda@may.ics.es.osaka-u.ac.jp:/usr/release-2-0/src/sys/arch/i386/compile/GENERIC_IPSEC i386
Architecture: i386
Machine: i386
>Description:
	Enabling Corega CG-LAPCIGT.
	This card is based on RealTek 8169S, but PCI vendor ID and product ID
	are different with original RealTek's one.
>How-To-Repeat:
	Run GENERIC(NetBSD 2.0_RC1, maybe 2.0G), then get the following dmesg.
unknown vendor 0x1259 product 0xc107 (ethernet network, revision 0x10) at pci0 dev 9 function 0 not configured

>Fix:
	Add PCI vendor ID and product ID, and add matching list in if_re.c .
	NOTE: vendor COREGA is already defined in -current(1.639), so
	      please pullup to netbsd-2-0 branch for /dev/pci/pcidevs.

Index: sys/dev/pci/pcidevs
===================================================================
RCS file: /cvs/cvsroot/src/sys/dev/pci/pcidevs,v
retrieving revision 1.615.2.6
diff -u -r1.615.2.6 pcidevs
--- sys/dev/pci/pcidevs	5 Jul 2004 22:30:49 -0000	1.615.2.6
+++ sys/dev/pci/pcidevs	1 Oct 2004 11:40:59 -0000
@@ -507,6 +507,7 @@
 vendor SAMSUNGELEC2	0x1249	Samsung Electronics Co. Ltd. (2nd vendor ID)
 vendor STALLION		0x124d	Stallion Technologies
 vendor LINEARSYS	0x1254	Linear Systems
+vendor COREGA		0x1259	corega K.K.
 vendor ASIX		0x125b	ASIX Electronics
 vendor AURORA		0x125c	Aurora Technologies
 vendor ESSTECH		0x125d	ESS Technology, Inc.
@@ -1226,6 +1227,9 @@
 product CONTAQ 82C599		0x0600	82C599 PCI-VLB Bridge
 product CONTAQ 82C693		0xc693	82C693 PCI-ISA Bridge
 
+/* Corega K.K. */
+product COREGA LAPCIGT		0xc107	Corega RT8169 based 10/100/1000 Ethernet
+
 /* Corollary Products */
 product COROLLARY CBUSII_PCIB	0x0014	\"C-Bus II\"-PCI Bridge
 
Index: sys/dev/pci/if_re.c
===================================================================
RCS file: /cvs/cvsroot/src/sys/dev/pci/if_re.c,v
retrieving revision 1.4.2.4
diff -u -r1.4.2.4 if_re.c
--- sys/dev/pci/if_re.c	21 Jun 2004 17:20:08 -0000	1.4.2.4
+++ sys/dev/pci/if_re.c	1 Oct 2004 11:41:06 -0000
@@ -170,6 +170,8 @@
 		"RealTek 8169S Single-chip Gigabit Ethernet" },
 	{ PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169, RTK_HWREV_8110S,
 		"RealTek 8110S Single-chip Gigabit Ethernet" },
+	{ PCI_VENDOR_COREGA, PCI_PRODUCT_COREGA_LAPCIGT, RTK_HWREV_8169S,
+		"Corega CG-LAPCIGT 10/100/1000 Ethernet" },
 	{ 0, 0, 0, NULL }
 };
 
>Release-Note:
>Audit-Trail:
>Unformatted: