From owner-freebsd-questions@FreeBSD.ORG Sun Oct 25 12:42:46 2009 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 44A241065670 for ; Sun, 25 Oct 2009 12:42:46 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id EB4FD8FC0A for ; Sun, 25 Oct 2009 12:42:45 +0000 (UTC) Received: from [85.173.17.209] (helo=izar) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1N22Ql-0004Rk-QZ; Sun, 25 Oct 2009 15:42:43 +0300 To: "P. Moulin" References: <4AE35DE8.2030607@calyopea.com> From: Boris Samorodov Date: Sun, 25 Oct 2009 15:42:44 +0300 In-Reply-To: <4AE35DE8.2030607@calyopea.com> (P. Moulin's message of "Sat\, 24 Oct 2009 22\:04\:56 +0200") Message-ID: <86839483@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Freebsd 8rc1 & Puc driver 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, 25 Oct 2009 12:42:46 -0000 "P. Moulin" writes: > I have a multi-serial card with an Oxford OX16PCI954 on it. > Whatever I do, the oxford chip is not recognized. How many serial ports does it have? > in dmesg: > pci0: at device 12.0 (no driver attached) > > and in pciconf -lv : > none1@pci0:0:12:0: class=0x070006 card=0x00000000 chip=0x950c1415 > rev=0x00 > hdr=0x00 > vendor = 'Oxford Semiconductor Ltd' > class = simple comms > subclass = UART Sometimes just adding a definition of the chip may help. Let's try it (assuming that the card has four serial ports): ----- --- sys/dev/puc/pucdata.c.orig 2009-10-25 15:23:41.000000000 +0300 +++ sys/dev/puc/pucdata.c 2009-10-25 15:29:32.000000000 +0300 @@ -643,6 +643,12 @@ PUC_PORT_4S, 0x10, 0, 8, }, + { 0x1415, 0x950c, 0xffff, 0, + "Oxford Semiconductor OX16PCI954 UARTs", + DEFAULT_RCLK, + PUC_PORT_4S, 0x10, 0, 8, + }, + { 0x1415, 0x9511, 0xffff, 0, "Oxford Semiconductor OX9160/OX16PCI954 UARTs (function 1)", DEFAULT_RCLK, ----- > none2@pci0:0:12:1: class=0x068000 card=0x00000000 chip=0x95101415 > rev=0x00 > hdr=0x00 > vendor = 'Oxford Semiconductor Ltd' > device = 'PCI Interface (disabled) (OX16PCI954)' > class = bridge Is it the same card? > Can somebody tell me why the second PCI interface is flagged > "disabled" ? How can I solve this ? > > (I have loaded puc from loader.conf, without more success). Both kernel modules (uart and puc) should be compiled in kernel or loaded as modules. And I don't use kernel module sio for a long time. Since uart and sio use the same hardware they shouldn't be used simultaneously. I used to have lines at my kernel: ----- nodevice sio device uart device puc ----- > PS: (un)works the same way with freebsd 7.2 & 8.0rc1.... -- WBR, bsam