From yeasah@turing.schwide.com  Fri Aug  1 08:52:43 2003
Return-Path: <yeasah@turing.schwide.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 50BBE37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  1 Aug 2003 08:52:43 -0700 (PDT)
Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A677A43FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  1 Aug 2003 08:52:42 -0700 (PDT)
	(envelope-from yeasah@turing.schwide.com)
Received: from 209-6-13-223.c3-0.ded-ubr1.sbo-ded.ma.cable.rcn.com ([209.6.13.223] helo=turing.schwide.com)
	by smtp01.mrf.mail.rcn.net with smtp (Exim 3.35 #4)
	id 19icCv-0002fU-00
	for FreeBSD-gnats-submit@freebsd.org; Fri, 01 Aug 2003 11:52:41 -0400
Received: (qmail 79392 invoked by uid 1001); 1 Aug 2003 15:52:41 -0000
Message-Id: <20030801155241.79391.qmail@turing.schwide.com>
Date: 1 Aug 2003 15:52:41 -0000
From: Yeasah Pell <yeasah@apocalypse.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] puc support for SUN1889 PCI serial card
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55159
>Category:       kern
>Synopsis:       [patch] puc support for SUN1889 PCI serial card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 01 09:00:38 PDT 2003
>Closed-Date:    Wed Jan 07 11:26:34 PST 2004
>Last-Modified:  Wed Jan 07 11:26:34 PST 2004
>Originator:     Yeasah Pell
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Venture Technologies, Inc.
>Environment:
System: FreeBSD turing.schwide.net 5.1-RELEASE FreeBSD 5.1-RELEASE #42: Sat Jul 19 05:04:14 EDT 2003 root@turing.schwide.net:/usr/obj/usr/src/sys/SCHWIDE i386

>Description:
	This patch adds support for a non-branded SUN1889-based 2 port PCI
	serial card. pciconf -lv gives the following (after the patch is
	applied):

puc0@pci1:5:0:  class=0x070002 card=0x40370009 chip=0x71680009 rev=0x01 hdr=0x00
    class    = simple comms
    subclass = UART

	Note that the vendor ID doesn't appear in the yourvote PCI vendor list,
	which is a bit odd. Perhaps the manufacturer just appropriated an ID?

>How-To-Repeat:
	Install SUN1889 PCI serial card. Add "device puc" to kernel config.
	Boot.
>Fix:

--- /sys/dev/puc/pucdata.c.orig Fri Aug  1 06:13:28 2003
+++ /sys/dev/puc/pucdata.c      Fri Aug  1 07:50:44 2003
@@ -49,6 +49,16 @@
 
 const struct puc_device_description puc_devices[] = {
 
+       {   "Sunix SUN1889",
+           NULL,
+           {   0x0009, 0x7168, 0,      0       },
+           {   0xffff, 0xffff, 0,      0       },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 8 },
+           },
+       },
+
        {   "Comtrol RocketPort 550/4 RJ45",
            NULL,
            {   0x11fe, 0x8014, 0,      0       },
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Wed Dec 31 09:51:30 PST 2003 
State-Changed-Why:  
Committed to current, will MFC in a week or so.  Thanks! 


Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Wed Dec 31 09:51:30 PST 2003 
Responsible-Changed-Why:  
Committed to current, will MFC in a week or so.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55159 
State-Changed-From-To: patched->closed 
State-Changed-By: jhb 
State-Changed-When: Wed Jan 7 11:26:17 PST 2004 
State-Changed-Why:  
Committed to stable. 

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