From nobody@FreeBSD.org  Tue Jan  4 13:31:17 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B533416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jan 2005 13:31:17 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9962E43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jan 2005 13:31:17 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j04DVHYJ073055
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 4 Jan 2005 13:31:17 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j04DVHoG072995;
	Tue, 4 Jan 2005 13:31:17 GMT
	(envelope-from nobody)
Message-Id: <200501041331.j04DVHoG072995@www.freebsd.org>
Date: Tue, 4 Jan 2005 13:31:17 GMT
From: Sten Spans <sten@blinkenlights.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pucdata.c needs resync with net/openbsd
X-Send-Pr-Version: www-2.3

>Number:         75793
>Category:       kern
>Synopsis:       pucdata.c needs resync with net/openbsd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 04 13:40:22 GMT 2005
>Closed-Date:    Wed Jan 05 20:14:57 GMT 2005
>Last-Modified:  Wed Jan 05 20:14:57 GMT 2005
>Originator:     Sten Spans
>Release:        5.3-STABLE
>Organization:
Blinkenlights
>Environment:
FreeBSD deepthought.blinkenlights.nl 5.3-STABLE FreeBSD 5.3-STABLE #15: Tue Dec 21 03:05:04 CET 2004     root@deepthought.blinkenlights.nl:/usr/obj/usr/src/sys/DEEPTHOUGHT  alpha

>Description:
I have recently purchased a few Chase/Perle PCI FAST-4 4 port serial 
cards for use with freebsd. I then noticed that the freebsd pucdata.c
is seriously lagging compared to the net/openbsd versions.
Which do have support for the card


>How-To-Repeat:
Use certain serial boards with freebsd.
>Fix:
I have synced the definitions for my card which fixed the issue:

--- src/sys/dev/puc/pucdata.c   2002/08/02 10:40:30     1.31
+++ src/sys/dev/puc/pucdata.c   2002/10/29 08:59:36     1.32
@@ -877,6 +878,42 @@ const struct puc_device_description puc_
                { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
                { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ },
                { PUC_PORT_TYPE_COM, 0x1c, 0x00, COM_FREQ },
+           },
+       },
+
+       /*
+        * Boca Research Turbo Serial 654 (4 serial port) card.
+        * Appears to be the same as Chase Research PLC PCI-FAST4
+        * and Perle PCI-FAST4 Multi-Port serial cards.
+        */
+       {   "Boca Research Turbo Serial 654",
+           {   0x10b5, 0x9050, 0x12e0, 0x0031  },
+           {   0xffff, 0xffff, 0xffff, 0xffff  },
+           {
+               { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 4 },
+           },
+       },
+
+       /*
+        * Boca Research Turbo Serial 658 (8 serial port) card.
+        * Appears to be the same as Chase Research PLC PCI-FAST8
+        * and Perle PCI-FAST8 Multi-Port serial cards.
+        */
+       {   "Boca Research Turbo Serial 658",
+           {   0x10b5, 0x9050, 0x12e0, 0x0021  },
+           {   0xffff, 0xffff, 0xffff, 0xffff  },
+           {
+               { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x20, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x28, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x30, COM_FREQ * 4 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x38, COM_FREQ * 4 },
            },
        },



But the whole pucdata.c should really be updated, there are quite
a few cards more in there. pucdata.c is relatively lowrisk in only
contains card definitions.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wilko 
State-Changed-When: Wed Jan 5 20:13:34 GMT 2005 
State-Changed-Why:  
Proposed patch committed to HEAD.  Full sync with Net/OpenBSD 
left to someone with more time (and hardware to test). 


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