From owner-freebsd-questions@FreeBSD.ORG Sun May 18 09:47:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31DC51065675 for ; Sun, 18 May 2008 09:47:20 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 06CAC8FC20 for ; Sun, 18 May 2008 09:47:19 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (m039206.dynamic.ppp.asahi-net.or.jp [219.121.39.206]) by mail.asahi-net.or.jp (Postfix) with ESMTP id C2C571B720; Sun, 18 May 2008 18:26:41 +0900 (JST) Date: Sun, 18 May 2008 18:26:41 +0900 From: WATANABE Kazuhiro To: freebsd-questions In-Reply-To: <20080515175948.GA98896@charade.trit.org> References: <20080515175948.GA98896@charade.trit.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/20.7 (i386--freebsd) MULE/4.1 (AOI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20080518092641.C2C571B720@mail.asahi-net.or.jp> Cc: Andy Miller Subject: Re: FreeBSD and multi-port serial cards X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2008 09:47:20 -0000 Hi. At Thu, 15 May 2008 17:59:48 +0000, Andy Miller wrote: > I have a multi-port serial card that uses the puc driver. It doesn't work > out of the box, but I found a patch on the hackers list that claims to > fix the problem. My problem now is that it seems that the code for this > driver has been completely redone in FreeBSD 7.0. Can someone help me > translate the patch below to work on a 7.0 system? > > --- pucdata.c.org Sat Dec 16 00:31:37 2006 > +++ pucdata.c Thu Mar 22 13:03:32 2007 > @@ -865,6 +865,17 @@ > }, > }, > > + { "Oxford Semiconductor Ltd OX16PCI954 Quad UART", > + { 0x1415, 0x9501, 0x131f, 0x2050 }, > + { 0xffff, 0xffff, 0xffff, 0xffff }, > + { > + { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 10 }, > + { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 10 }, > + { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ * 10 }, > + { PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ * 10 }, > + }, > + }, > + > { "SIIG Cyber 4S PCI 16C650 (20x family)", > { 0x1415, 0x9501, 0x131f, 0x2051 }, > { 0xffff, 0xffff, 0xffff, 0xffff }, > > Thanks. > > -- > Andy Miller How about this? --- pucdata.c.releng70 2008-05-18 18:15:16.000000000 +0900 +++ pucdata.c 2008-05-18 18:15:16.000000000 +0900 @@ -590,6 +590,12 @@ * I/O Flex PCI I/O Card Model-223 with 4 serial and 1 parallel ports. */ + { 0x1415, 0x9501, 0x131f, 0x2050, + "SIIG Cyber 4S PCI 16C650 (20x family)", + DEFAULT_RCLK * 10, + PUC_PORT_4S, 0x10, 0, 8, + }, + { 0x1415, 0x9501, 0x131f, 0x2051, "SIIG Cyber 4S PCI 16C650 (20x family)", DEFAULT_RCLK * 10, --- WATANABE Kazuhiro (CQG00620@nifty.ne.jp)