From nobody@FreeBSD.org  Mon Jul  9 06:19:35 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C3729106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Jul 2012 06:19:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id ADA448FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Jul 2012 06:19:35 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q696JZVO057807
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Jul 2012 06:19:35 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q696JYh7057806;
	Mon, 9 Jul 2012 06:19:34 GMT
	(envelope-from nobody)
Message-Id: <201207090619.q696JYh7057806@red.freebsd.org>
Date: Mon, 9 Jul 2012 06:19:34 GMT
From: Jan Mikkelsen <janm@transactionware.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Add support for Advantech PCI-1602 RS-485/RS-422 serial card to puc(4
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         169726
>Category:       kern
>Synopsis:       [puc] [patch] Add support for Advantech PCI-1602 RS-485/RS-422 serial card to puc(4)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 09 06:20:06 UTC 2012
>Closed-Date:    Mon Feb 04 00:41:52 UTC 2013
>Last-Modified:  Mon Feb 04 00:41:52 UTC 2013
>Originator:     Jan Mikkelsen
>Release:        9.0-p2
>Organization:
Transactionware
>Environment:
FreeBSD gray.tmst.com.au 9.0-RELEASE-p2 FreeBSD 9.0-RELEASE-p2 #0: Tue Jun 12 15:40:04 EST 2012     root@gray.tmst.com.au:/data/scratch/janm/p4/freebsd-image-std-2011.1/work/base-freebsd/data/scratch/janm/p4/freebsd-image-std-2011.1/FreeBSD/src/sys/GENERIC  amd64
>Description:
This patch adds support for the Advantech PCI-1602 serial card to puc(4).
>How-To-Repeat:

>Fix:
Apply this patch to src/sys/dev/puc/pucdata.c:


--- //depot/vendor/freebsd/9.0-official/src/sys/dev/puc/pucdata.c	2012-05-29 01:23:19.000000000 1000
+++ /data/scratch/janm/p4/freebsd/9.0-official/src/sys/dev/puc/pucdata.c	2012-05-29 01:23:19.000000000 1000
@@ -595,6 +595,12 @@
 	    PUC_PORT_8S, 0x10, 0, -1,
 	},
 
+	{   0x13fe, 0x1600, 0x1602, 0x0002,
+	    "Advantech PCI-1602",
+	    DEFAULT_RCLK * 8,
+	    PUC_PORT_2S, 0x10, 0, 8,
+	},
+
 	{   0x1407, 0x0100, 0xffff, 0,
 	    "Lava Computers Dual Serial",
 	    DEFAULT_RCLK,


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Fri Nov 9 01:44:31 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169726 
State-Changed-From-To: open->patched 
State-Changed-By: eadler 
State-Changed-When: Fri Nov 9 01:51:37 UTC 2012 
State-Changed-Why:  
committed in r242813 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169726 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Feb 4 00:41:51 UTC 2013 
State-Changed-Why:  
MFCed/fixed by now or it will never be MFCed 

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