From avz@trishka.elserv.msk.su  Thu Nov 14 01:34:59 2002
Return-Path: <avz@trishka.elserv.msk.su>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 35DC537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Nov 2002 01:34:58 -0800 (PST)
Received: from trishka.elserv.msk.su (trishka.elserv.msk.su [195.208.40.18])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4929B43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Nov 2002 01:34:56 -0800 (PST)
	(envelope-from avz@trishka.elserv.msk.su)
Received: from trishka.elserv.msk.su (localhost [127.0.0.1])
	by trishka.elserv.msk.su (8.12.6/8.12.6) with ESMTP id gAE9YktF094178
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Nov 2002 12:34:46 +0300 (MSK)
	(envelope-from avz@trishka.elserv.msk.su)
Received: (from root@localhost)
	by trishka.elserv.msk.su (8.12.6/8.12.6/Submit) id gAE9YhBi094177;
	Thu, 14 Nov 2002 12:34:43 +0300 (MSK)
Message-Id: <200211140934.gAE9YhBi094177@trishka.elserv.msk.su>
Date: Thu, 14 Nov 2002 12:34:43 +0300 (MSK)
From: Andrey Zakharchenko <avz@elserv.msk.su>
Reply-To: Andrey Zakharchenko <avz@elserv.msk.su>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Support for yet another PCI multiport card
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45285
>Category:       kern
>Synopsis:       Support for yet another PCI multiport card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 14 01:40:01 PST 2002
>Closed-Date:    Wed Feb 11 10:02:39 PST 2004
>Last-Modified:  Wed Feb 11 10:02:39 PST 2004
>Originator:     Andrey Zakharchenko
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Russian Joint Supercomputer Center
>Environment:
System: FreeBSD trishka.elserv.msk.su 4.7-RELEASE FreeBSD 4.7-RELEASE #19: Tue Oct 15 22:14:02 MSD 2002 root@:/usr/obj/usr/src/sys/TRISHKA i386


	
>Description:
	FreeBSD does not support my 2-port PCI serial card
>How-To-Repeat:
	Get PCI serial card with vendor id 0x14db and device id 0x2131
>Fix:

--- pucdata.c.orig      Thu Aug 22 14:50:58 2002
+++ pucdata.c   Thu Nov 14 12:18:46 2002
@@ -886,6 +886,15 @@
            },
        },

+       {   "Avlab Technology, PCI IO 2S",
+           {   0x14db, 0x2131, 0,      0       },
+           {   0xffff, 0xffff, 0,      0       },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+               { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
+           },
+       },
+
        /* Avlab Technology, Inc. Low Profile PCI 4 Serial: 4S */
        {   "Avlab Low Profile PCI 4 Serial",
            {   0x14db, 0x2150, 0,      0       },


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jhb 
State-Changed-When: Wed Dec 31 09:43:46 PST 2003 
State-Changed-Why:  
I'll take this one.  Smaller patch sent to originator for testing. 


Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Wed Dec 31 09:43:46 PST 2003 
Responsible-Changed-Why:  
I'll take this one.  Smaller patch sent to originator for testing. 

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

From: John Baldwin <jhb@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, avz@elserv.msk.su
Cc:  
Subject: Re: kern/45285: Support for yet another PCI multiport card
Date: Wed, 31 Dec 2003 12:43:41 -0500

 Can you try this patch:
 
 Index: pucdata.c
 ===================================================================
 RCS file: /usr/cvs/src/sys/dev/puc/pucdata.c,v
 retrieving revision 1.28
 diff -u -r1.28 pucdata.c
 --- pucdata.c	9 Dec 2003 17:31:25 -0000	1.28
 +++ pucdata.c	31 Dec 2003 17:42:48 -0000
 @@ -1078,7 +1078,7 @@
  	{   "Avlab Technology, PCI IO 2S",
  	    NULL,
  	    {	0x14db,	0x2130,	0,	0	},
 -	    {	0xffff,	0xffff,	0,	0	},
 +	    {	0xffff,	0xfffc,	0,	0	},
  	    {
  		{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
  		{ PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
 

From: Andrey Zakharchenko <avz@jscc.ru>
To: John Baldwin <jhb@FreeBSD.org>, freebsd-gnats-submit@FreeBSD.org,
	avz@elserv.msk.su
Cc:  
Subject: Re: kern/45285: Support for yet another PCI multiport card
Date: Wed, 4 Feb 2004 16:55:01 +0300

 It seems to work on FreeBSD 4.9-RELEASE-p1. (pucdata.c was edited manually 
 because of missing "NULL" line in 4.9 sources.) The only card I have is 
 installed into production server, so I couldn't test the patch against 
 CURRENT or 5.2.
 
 > ===================================================================
 > RCS file: /usr/cvs/src/sys/dev/puc/pucdata.c,v
 > retrieving revision 1.28
 > diff -u -r1.28 pucdata.c
 > --- pucdata.c	9 Dec 2003 17:31:25 -0000	1.28
 > +++ pucdata.c	31 Dec 2003 17:42:48 -0000
 > @@ -1078,7 +1078,7 @@
 >  	{   "Avlab Technology, PCI IO 2S",
 >  	    NULL,
 >  	    {	0x14db,	0x2130,	0,	0	},
 > -	    {	0xffff,	0xffff,	0,	0	},
 > +	    {	0xffff,	0xfffc,	0,	0	},
 >  	    {
 >  		{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
 >  		{ PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
 
 -- 
 Andrey Zakharchenko
 
State-Changed-From-To: feedback->patched 
State-Changed-By: jhb 
State-Changed-When: Wed Feb 4 10:01:23 PST 2004 
State-Changed-Why:  
Fix was tested (Thanks!) and will be MFC'd in a week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45285 
State-Changed-From-To: patched->closed 
State-Changed-By: jhb 
State-Changed-When: Wed Feb 11 10:02:22 PST 2004 
State-Changed-Why:  
Fix merged to releng_4. 

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