From owner-freebsd-current@FreeBSD.ORG Fri Jan 9 15:03:42 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 72BBE16A4CE; Fri, 9 Jan 2004 15:03:42 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 984C343D2D; Fri, 9 Jan 2004 15:03:40 -0800 (PST) (envelope-from cristjc@comcast.net) Received: from blossom.cjclark.org (c-24-6-186-224.client.comcast.net[24.6.186.224]) by comcast.net (rwcrmhc11) with ESMTP id <2004010923033901300divv4e>; Fri, 9 Jan 2004 23:03:40 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.9p2/8.12.8) with ESMTP id i09N3c43008003; Fri, 9 Jan 2004 15:03:38 -0800 (PST) (envelope-from cristjc@comcast.net) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.9p2/8.12.9/Submit) id i09N3bWB008002; Fri, 9 Jan 2004 15:03:37 -0800 (PST) (envelope-from cristjc@comcast.net) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to cristjc@comcast.net using -f Date: Fri, 9 Jan 2004 15:03:37 -0800 From: "Crist J. Clark" To: John Baldwin Message-ID: <20040109230337.GA7513@blossom.cjclark.org> References: <20040108183939.GA59263@blossom.cjclark.org> <200401081513.32070.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401081513.32070.jhb@FreeBSD.org> User-Agent: Mutt/1.4.1i X-URL: http://people.freebsd.org/~cjc/ X-Mailman-Approved-At: Fri, 09 Jan 2004 21:43:47 -0800 cc: current@FreeBSD.org Subject: Re: PCI Dual Port Serial Card X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cjclark@alum.mit.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2004 23:03:42 -0000 On Thu, Jan 08, 2004 at 03:13:32PM -0500, John Baldwin wrote: > 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? Oops. Didn't look closely enought at the numbers. I thought my card was already in pucdata.c, but that's the 0x95011415 as opposed to my 0x95211415. I tried the patch, but the system locked up hard during the boot when it came time to probe the ATA devices. Haven't had time to look at it carefully or catch the boot messages on a serial console. > 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 -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org