From owner-freebsd-current@FreeBSD.ORG Thu Jan 8 13:24:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F13D216A4CE for ; Thu, 8 Jan 2004 13:24:10 -0800 (PST) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FC5F43D5C for ; Thu, 8 Jan 2004 13:24:06 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 19767 invoked from network); 8 Jan 2004 21:24:05 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 8 Jan 2004 21:24:05 -0000 Received: from 10.50.40.206 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i08LO1M0039230; Thu, 8 Jan 2004 16:24:01 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: "Crist J. Clark" , "Crist J. Clark" , current@freebsd.org Date: Thu, 8 Jan 2004 15:13:32 -0500 User-Agent: KMail/1.5.4 References: <20040108183939.GA59263@blossom.cjclark.org> In-Reply-To: <20040108183939.GA59263@blossom.cjclark.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401081513.32070.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: PCI Dual Port Serial Card X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 21:24:11 -0000 On Thursday 08 January 2004 01:39 pm, Crist J. Clark wrote: > I've got a StarTech.com two port PCI card, 16C950, which is seems to > be a rebranded Oxford Semiconductor OX16PCI954 PCI UART, listed as > supported in the release notes for 5.1. The system in question is > 5.1-p10. > > I've compiled the puc(4) driver into the kernel, and the dmesg(8) > looks like so, > > sio0: port > 0xdf40-0xdf5f,0xdf60-0xdf67 mem 0xfeacd000-0feacdfff,0xfeace000,0xfeacefff > irq 3 at device 12.0 on pci2 sio0: moving to sio1 > sio1: type 16550A > > One of the ports in the card works fine as sio1, as does the built-in > serial port, sio0, but the second port in the card doesn't show up > anywhere. > > What do I need to do to get the system to find the second port on the > card? Try this: Index: puc/pucdata.c =================================================================== RCS file: /usr/cvs/src/sys/dev/puc/pucdata.c,v retrieving revision 1.29 diff -u -r1.29 pucdata.c --- puc/pucdata.c 31 Dec 2003 17:51:18 -0000 1.29 +++ puc/pucdata.c 8 Jan 2004 20:12:46 -0000 @@ -929,6 +929,17 @@ }, }, + /* Oxford Semiconductor OX16PCI954 PCI UARTs */ + { "Oxford Semiconductor OX16PCI954 UARTs", + NULL, + { 0x1415, 0x9521, 0, 0 }, + { 0xffff, 0xffff, 0, 0 }, + { + { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ }, + { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ }, + }, + }, + /* Oxford Semiconductor OX16PCI954 PCI Parallel port */ { "Oxford Semiconductor OX16PCI954 Parallel port", NULL, Index: sio/sio_pci.c =================================================================== RCS file: /usr/cvs/src/sys/dev/sio/sio_pci.c,v retrieving revision 1.15 diff -u -r1.15 sio_pci.c --- sio/sio_pci.c 28 Nov 2003 05:28:28 -0000 1.15 +++ sio/sio_pci.c 8 Jan 2004 20:05:52 -0000 @@ -74,7 +74,6 @@ { 0x01101407, "Koutech IOFLEX-2S PCI Dual Port Serial", 0x10 }, { 0x01111407, "Koutech IOFLEX-2S PCI Dual Port Serial", 0x10 }, { 0x048011c1, "Lucent kermit based PCI Modem", 0x14 }, - { 0x95211415, "Oxford Semiconductor PCI Dual Port Serial", 0x10 }, { 0x7101135e, "SeaLevel Ultra 530.PCI Single Port Serial", 0x18 }, { 0x0000151f, "SmartLink 5634PCV SurfRider", 0x10 }, { 0x0103115d, "Xircom Cardbus modem", 0x10 }, -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org