From freebsd-gnats@in-addr.com  Tue Dec 28 18:15:28 2004
Return-Path: <freebsd-gnats@in-addr.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6764016A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Dec 2004 18:15:28 +0000 (GMT)
Received: from noop.colo.erols.net (noop.colo.erols.net [207.96.1.150])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E13B143D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Dec 2004 18:15:27 +0000 (GMT)
	(envelope-from freebsd-gnats@in-addr.com)
Received: from uucp by noop.colo.erols.net with local-rmail (Exim 4.14)
	id 1CjLqL-000GnF-Dt
	for FreeBSD-gnats-submit@freebsd.org; Tue, 28 Dec 2004 13:13:13 -0500
Received: from gjp by rimmer.home.in-addr.com with local (Exim 4.43 (FreeBSD))
	id 1CjLqC-0000Yo-2O
	for FreeBSD-gnats-submit@freebsd.org; Tue, 28 Dec 2004 18:13:04 +0000
Message-Id: <E1CjLqC-0000Yo-2O@rimmer.home.in-addr.com>
Date: Tue, 28 Dec 2004 18:13:04 +0000
From: Gary Palmer <freebsd-gnats@in-addr.com>
Reply-To: Gary Palmer <freebsd-gnats@in-addr.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Add support for Linksys PCMPC200 Cardbus card
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75582
>Category:       kern
>Synopsis:       [dc] [patch] Add support for Linksys PCMPC200 Cardbus card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    glebius
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 28 18:20:32 GMT 2004
>Closed-Date:    Thu Aug 10 10:07:13 GMT 2006
>Last-Modified:  Thu Aug 10 10:07:13 GMT 2006
>Originator:     Gary Palmer
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
	
>Description:
	The Linksys PCMPC200 card can be used with the if_dc driver.  
	This patch adds the needed code to recognise the card
>How-To-Repeat:
	Plug in PCMPC200 card
>Fix:

(patch relative to 5.3-RELEASE)

Index: sys/pci/if_dc.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/if_dc.c,v
retrieving revision 1.148.2.2
diff -u -r1.148.2.2 if_dc.c
--- sys/pci/if_dc.c	16 Oct 2004 00:53:44 -0000	1.148.2.2
+++ sys/pci/if_dc.c	24 Oct 2004 23:51:47 -0000
@@ -218,6 +218,8 @@
 		"Microsoft MN-130 10/100" },
 	{ DC_VENDORID_MICROSOFT, DC_DEVICEID_MSMN130_FAKE,
 		"Microsoft MN-130 10/100" },
+	{ DC_VENDORID_LINKSYS, DC_DEVICEID_PCMPC200,
+		"Linksys PCMPC200 10/100" },
 	{ 0, 0, NULL }
 };
 
Index: sys/pci/if_dcreg.h
===================================================================
RCS file: /home/ncvs/src/sys/pci/if_dcreg.h,v
retrieving revision 1.42
diff -u -r1.42 if_dcreg.h
--- sys/pci/if_dcreg.h	29 Jun 2004 20:38:44 -0000	1.42
+++ sys/pci/if_dcreg.h	19 Sep 2004 00:33:37 -0000
@@ -998,6 +998,18 @@
 #define DC_DEVICEID_MSMN130_FAKE	0xFFF2
 
 /*
+ * Linksys vendor ID
+ */
+
+#define DC_VENDORID_LINKSYS	0x1737
+
+/*
+ * Linksys device IDs.
+ */
+
+#define DC_DEVICEID_PCMPC200	0xab08
+
+/*
  * PCI low memory base and low I/O base register, and
  * other PCI registers.
  */

>Release-Note:
>Audit-Trail:

From: Gary Palmer <freebsd-gnats@in-addr.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/75582: [dc] [patch] Add support for Linksys PCMPC200 Cardbus card
Date: Mon, 29 May 2006 13:42:28 -0400

 --a8Wt8u1KmwUX3Y2C
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
 Patch still works on 6.x
 
 mesg:
 
 dc0: <Linksys PCMPC200 10/100> port 0xd000-0xd0ff mem 0xf6002000-0xf60023ff irq 11 at device 0.0 on cardbus0
 miibus1: <MII bus> on dc0
 ukphy0: <Generic IEEE 802.3u media interface> on miibus1
 ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 dc0: Ethernet address: 00:04:5a:a6:a5:1f
 
 ifconfig:
 
 dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         options=8<VLAN_MTU>
         inet6 fe80::204:5aff:fea6:a51f%dc0 prefixlen 64 scopeid 0x4 
         inet 10.10.10.101 netmask 0xffffff00 broadcast 10.10.10.255
         ether 00:04:5a:a6:a5:1f
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
 
 pciconf -lv:
 
 dc0@pci3:0:0:   class=0x020000 card=0xab081737 chip=0xab081737 rev=0x11 hdr=0x00
     vendor   = 'Linksys'
     device   = '21x4x DEC-Tulip compatible 10/100 Ethernet'
     class    = network
     subclass = ethernet
 
 
 --a8Wt8u1KmwUX3Y2C
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=dc-patch
 
 Index: sys/pci/if_dc.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/pci/Attic/if_dc.c,v
 retrieving revision 1.160.2.9
 diff -u -r1.160.2.9 if_dc.c
 --- sys/pci/if_dc.c	21 Mar 2006 21:10:58 -0000	1.160.2.9
 +++ sys/pci/if_dc.c	4 Apr 2006 13:59:06 -0000
 @@ -222,6 +222,8 @@
  		"Microsoft MN-130 10/100" },
  	{ DC_VENDORID_MICROSOFT, DC_DEVICEID_MSMN130_FAKE,
  		"Microsoft MN-130 10/100" },
 +	{ DC_VENDORID_LINKSYS, DC_DEVICEID_PCMPC200,
 +		"Linksys PCMPC200 10/100" },
  	{ 0, 0, NULL }
  };
  
 Index: sys/pci/if_dcreg.h
 ===================================================================
 RCS file: /home/ncvs/src/sys/pci/Attic/if_dcreg.h,v
 retrieving revision 1.44.2.2
 diff -u -r1.44.2.2 if_dcreg.h
 --- sys/pci/if_dcreg.h	21 Mar 2006 21:10:58 -0000	1.44.2.2
 +++ sys/pci/if_dcreg.h	4 Apr 2006 13:59:06 -0000
 @@ -1007,6 +1007,18 @@
  #define DC_DEVICEID_MSMN130_FAKE	0xFFF2
  
  /*
 + * Linksys vendor ID
 + */
 +
 +#define DC_VENDORID_LINKSYS	0x1737
 +
 +/*
 + * Linksys device IDs.
 + */
 +
 +#define DC_DEVICEID_PCMPC200	0xab08
 +
 +/*
   * PCI low memory base and low I/O base register, and
   * other PCI registers.
   */
 
 --a8Wt8u1KmwUX3Y2C--
State-Changed-From-To: open->patched 
State-Changed-By: glebius 
State-Changed-When: Wed Jun 7 12:26:49 UTC 2006 
State-Changed-Why:  
Committed to HEAD. 


Responsible-Changed-From-To: freebsd-bugs->glebius 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Wed Jun 7 12:26:49 UTC 2006 
Responsible-Changed-Why:  
Handling this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75582 
State-Changed-From-To: patched->closed 
State-Changed-By: glebius 
State-Changed-When: Thu Aug 10 10:06:05 UTC 2006 
State-Changed-Why:  
Merged by jhb at 21th of June. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75582 
>Unformatted:
