From osamu@ccnw.ne.jp  Wed Feb 15 14:57:11 2006
Return-Path: <osamu@ccnw.ne.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6031E16A420
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Feb 2006 14:57:11 +0000 (GMT)
	(envelope-from osamu@ccnw.ne.jp)
Received: from ccnw.ne.jp (nissin20067.ccnw.ne.jp [218.216.217.67])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EA0BA43D53
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Feb 2006 14:57:10 +0000 (GMT)
	(envelope-from osamu@ccnw.ne.jp)
Received: from ccnw.ne.jp (localhost [127.0.0.1])
	by ccnw.ne.jp (8.13.4/8.13.4) with ESMTP id k1FEwldE001072
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Feb 2006 23:58:47 +0900 (JST)
	(envelope-from osamu@ccnw.ne.jp)
Received: (from root@localhost)
	by ccnw.ne.jp (8.13.4/8.13.4/Submit) id k1FEwkfg001071;
	Wed, 15 Feb 2006 23:58:46 +0900 (JST)
	(envelope-from osamu)
Message-Id: <200602151458.k1FEwkfg001071@ccnw.ne.jp>
Date: Wed, 15 Feb 2006 23:58:46 +0900 (JST)
From: Osamu Hasegawa <kdn_pc215hqj11010@mbr.nifty.com>
Reply-To: Osamu Hasegawa <kdn_pc215hqj11010@mbr.nifty.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Add Micro Research PCMCIA LAN Adapter MR10TPC support (if_ed_pccard.c, pccarddevs)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         93393
>Category:       kern
>Synopsis:       [ed] [patch] Add Micro Research PCMCIA LAN Adapter MR10TPC support (if_ed_pccard.c, pccarddevs)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 15 15:00:19 GMT 2006
>Closed-Date:    Mon Apr 13 09:48:52 MDT 2009
>Last-Modified:  Mon Apr 13 09:48:52 MDT 2009
>Originator:     Osamu Hasegawa <kdn_pc215hqj11010@mbr.nifty.com>
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD takahe 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Tue Feb 7 22:40:14 JST 2006 root@takahe:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
MR10TPC is an old PCMCIA 10Base-T ethernet adapter manufactured by Micro Research Laboratory, Inc.
http://www.mrl.co.jp/catalog/nw/mr10tpc.htm (in Japanese)

Interrupt storm detected on "irq10:"; throttling interrupt source
pccard0: <unknown card> (manufacturer=0xffffffff, product=0xffffffff, function_type=6) at function 0
pccard0:    CIS info: MICRO-RESEARCH-MR10TPC, Ethernet, A, 004743118001

Applied these patches, it was detected correctly and worked fine.

Interrupt storm detected on "irq10:"; throttling interrupt source
ed1: <MICRO-RESEARCH-MR10TPC Ethernet> at port 0x300-0x31f irq 10 function 0 config 32 on pccard0
ed1: Ethernet address: 00:c0:0c:02:5e:20
ed1: type NE2000 (16 bit)

I tested patches on FreeBSD 6.0-RELEASE as well as -CURRENT.
	
>How-To-Repeat:
	
>Fix:
	
--- if_ed_pccard.c.diff begins here ---
--- /usr/src/sys/dev/ed/if_ed_pccard.c.orig	Sat Oct 29 12:49:44 2005
+++ /usr/src/sys/dev/ed/if_ed_pccard.c	Tue Feb  7 21:16:17 2006
@@ -185,6 +185,7 @@
 	{ PCMCIA_CARD(MAGICRAM, ETHER), 0},
 	{ PCMCIA_CARD(MELCO, LPC3_CLX), NE2000DVF_AX88X90},
 	{ PCMCIA_CARD(MELCO, LPC3_TX), NE2000DVF_AX88X90},
+	{ PCMCIA_CARD(MICRORESEARCH, MICRO_RESEARCH_MR10TPC), 0},
 	{ PCMCIA_CARD(NDC, ND5100_E), 0},
 	{ PCMCIA_CARD(NETGEAR, FA410TXC), NE2000DVF_DL100XX},
 	/* Same ID as DLINK DFE-670TXD.  670 has DL10022, fa411 has ax88790 */
--- if_ed_pccard.c.diff ends here ---

--- pccarddevs.diff begins here ---
--- /usr/src/sys/dev/pccard/pccarddevs.orig	Sat Oct 29 12:48:24 2005
+++ /usr/src/sys/dev/pccard/pccarddevs	Tue Feb  7 21:21:04 2006
@@ -639,6 +639,7 @@
 vendor IODATA3			-1	I-O DATA
 vendor LANTECH			-1	Lantech Computer Company
 vendor MELCO2			-1	Melco Corporation
+vendor MICRORESEARCH		-1	Micro Research
 vendor NDC			-1	NDC
 vendor NEC			-1	NEC
 vendor OEM2			-1	Generic OEM
@@ -708,6 +709,7 @@
 product MACNICA MPS100		{ "MACNICA", "MIRACLE&spSCSI", "mPS100", "D.0" } Macnica Miracle SCSI mPS100
 product MEGAHERTZ XJ2288 	{ "MEGAHERTZ", "MODEM&spXJ2288", NULL, NULL } Megahertz XJ2288 Modem
 product MELCO2 LPC2_TX		{ "MELCO", "LPC2-TX", NULL, NULL } Melco LPC2-TX
+product MICRORESEARCH MICRO_RESEARCH_MR10TPC	{ "MICRO-RESEARCH-MR10TPC", "Ethernet", NULL, NULL}
 product NANOSPEED PRISM2	{ "NANOSPEED", "HFA384x/IEEE", "Version&sp01.02", NULL } NANOSPEED ROOT-RZ2000 WLAN Card
 product NDC ND5100_E		{ "NDC", "Ethernet", "A", NULL } Sohoware ND5100E NE2000 Compatible Card
 product NEC CMZ_RT_WP		{ "NEC", "Wireless&spCard&spCMZ-RT-WP", "Version&sp01.01", NULL } NEC Wireless Card CMZ-RT-WP
--- pccarddevs.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Fri Feb 17 07:32:00 UTC 2006 
Responsible-Changed-Why:  
All pccard stuff passes Warner's review. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93393 
State-Changed-From-To: open->patched 
State-Changed-By: imp 
State-Changed-When: Tue Jul 10 22:14:56 MDT 2007 
State-Changed-Why:  
Committed 


http://www.freebsd.org/cgi/query-pr.cgi?pr=93393 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/93393: commit references a PR
Date: Wed, 11 Jul 2007 04:14:46 +0000 (UTC)

 imp         2007-07-11 04:14:41 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/dev/ed           if_ed_pccard.c 
     sys/dev/pccard       pccarddevs 
   Log:
   Add Micro Research PCMCIA LAN Adapter MR10TPC support.  Patch slightly
   reworked by me.
   
   Submitted by: Osamu Hasegawa-san
   PR: 93393
   Approved by: re (hrs)
   
   Revision  Changes    Path
   1.113     +1 -0      src/sys/dev/ed/if_ed_pccard.c
   1.129     +2 -0      src/sys/dev/pccard/pccarddevs
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: kdn_pc215hqj11010@mbr.nifty.com
To: bug-followup@FreeBSD.org,
	kdn_pc215hqj11010@mbr.nifty.com
Cc:  
Subject: Re: kern/93393: [ed] [patch] Add Micro Research PCMCIA LAN Adapter MR10TPC support (if_ed_pccard.c, pccarddevs)
Date: Thu, 26 Jul 2007 22:11:12 +0900

 It worked.
 
 Thank you.
 

From: kdn_pc215hqj11010@mbr.nifty.com
To: bug-followup@FreeBSD.org,
	kdn_pc215hqj11010@mbr.nifty.com,
	imp@FreeBSD.org
Cc:  
Subject: Re: kern/93393: [ed] [patch] Add Micro Research PCMCIA LAN Adapter MR10TPC support (if_ed_pccard.c, pccarddevs)
Date: Mon, 25 Aug 2008 22:17:02 +0900

 These are not MFC'd to RELENG_6.
 
 This PR can closed after MFC or now if there is no plan to MFC.
State-Changed-From-To: patched->closed 
State-Changed-By: imp 
State-Changed-When: Mon Apr 13 09:48:49 MDT 2009 
State-Changed-Why:  
These have been in a release... 


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