From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 25 14:56:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C3A216A41F; Wed, 25 Jan 2006 14:56:16 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 468F843D45; Wed, 25 Jan 2006 14:56:15 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 6941713 for multiple; Wed, 25 Jan 2006 09:55:02 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k0PEu2gp024929; Wed, 25 Jan 2006 09:56:12 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 25 Jan 2006 09:56:34 -0500 User-Agent: KMail/1.9.1 References: <806128ad0601250608u67aae744u@mail.gmail.com> In-Reply-To: <806128ad0601250608u67aae744u@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601250956.35818.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1248/Tue Jan 24 05:54:38 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: hackers@freebsd.org, Vitaliy Skakun Subject: Re: Comtrol Rocketport UNIVERSAL PCI 32-port X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 14:56:16 -0000 On Wednesday 25 January 2006 09:08, Vitaliy Skakun wrote: > Hi everybody! > > Due to http://www.freebsd.org/releases/6.0R/hardware-i386.html , tried to > set up the following device > with driver rp(4): > http://www.shopcomtrol.com/product.asp?sku=2338510 > > root@pl2:/<3>dev/rp [0]# uname -a > FreeBSD pl2.xxx.yyy 6.0-STABLE FreeBSD 6.0-STABLE #7: Wed Jan 25 10:49:28 > UTC 2006 root@pl2.xxx.yyy:/usr/obj/usr/src/sys/JBOSS-4BSD i386 > > ( RELENG_6 dating about middle of December, 2005 ) > > I got the following message from kernel: > rp0: port 0x9c80-0x9cff,0x9800-0x98ff mem > 0xfdcffc00-0xfdcffc7f irq 16 at device 1.0 on pci16 > rp0: ioaddr mapping failed for RocketPort(PCI). > device_attach: rp0 attach returned 6 > > After quick investigation discovered that rp(4) doesn't have support for > this device's PCI id ( correct me pls if my understanding is wrong), > so I added it. > > root@pl2:/<3>dev/rp [0]# pciconf -lv > > #...output skipped > > rp0@pci16:1:0: class=0x078000 card=0x080111fe chip=0x080111fe rev=0x01 > hdr=0x00 > vendor = 'Comtrol Corp' > device = 'RocketPort UPCI 32 port w/external I/F' > class = simple comms > > device id = 0x0801 > > As the current RELENG_6 rp_pci.c revision is the same as I have on server > (= 1.11), I attached the patch. > Pls check. > > P.S. After this applying patch the device seem to be working ok: > root@pl2:/<3>dev/rp [0]# grep -i rocketport /var/run/dmesg.boot > rp0: port 0x9c80-0x9cff,0x9800-0x98ff mem > 0xfdcffc00-0xfdcffc7f irq 16 at device 1.0 on pci16 > RocketPort0 (Version 3.02) 32 ports. > > Lots of serial devices appeared in /dev/ , and simple testing show them > working. > > Cheers, > Vit I've committed it to HEAD and will MFC in a few days so it will be in 6.1. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org