From owner-freebsd-hardware@FreeBSD.ORG Tue Feb 21 21:59:15 2012 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16999106566C for ; Tue, 21 Feb 2012 21:59:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E2F448FC08 for ; Tue, 21 Feb 2012 21:59:14 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 9CABD46B2C; Tue, 21 Feb 2012 16:59:14 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 04726B960; Tue, 21 Feb 2012 16:59:14 -0500 (EST) From: John Baldwin To: freebsd-hardware@freebsd.org Date: Tue, 21 Feb 2012 16:40:30 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <20120220220237.7474cc1e@atom.dino.sk> In-Reply-To: <20120220220237.7474cc1e@atom.dino.sk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202211640.30854.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 21 Feb 2012 16:59:14 -0500 (EST) Cc: Milan Obuch Subject: Re: PER-C40C minipci card under FreeBSD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 21:59:15 -0000 On Monday, February 20, 2012 4:02:37 pm Milan Obuch wrote: > Hi, > > is somebody using $subject? I need to get this card working in order to > get more serial ports in ALIX boards. Unfortunately, all I am getting > is hangup - last lines on console are > > pci0: at device 13.0 (no driver attached) > puc0: port > 0x1440-0x145f,0x1480-0x149f mem > 0x80040000-0x80040fff,0x80080000-0x80080fff irq 12 at device 13.1 on > pci0 > puc0: Reserved 0x20 bytes for rid 0x10 type 4 at 0x1440 > puc0: [FILTER] > > and nothing more happens (second line is wrapped here, very long for > mail). > > In verbose boot, there are some related lines a bit sooner while doing > pci bus scan: > > found-> vendor=0x1415, dev=0x9505, revid=0x01 > domain=0, bus=0, slot=13, func=0 > class=07-00-06, hdrtype=0x00, mfdev=1 > cmdreg=0x0103, statreg=0x0290, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=12 > powerspec 2 supports D0 D2 D3 current D0 > map[10]: type I/O Port, range 32, base 0x1000, size 3, enabled > map[14]: type I/O Port, range 32, base 0x1040, size 3, enabled > map[18]: type I/O Port, range 32, base 0x1080, size 3, enabled > map[1c]: type I/O Port, range 32, base 0x10c0, size 3, enabled > map[20]: type I/O Port, range 32, base 0x1400, size 5, enabled > map[24]: type Memory, range 32, base 0x80000000, size 12, > enabled Looks like this device works differently (the default is expecting the 4 serial ports to all show up in RID 0x10). Can you try this: Index: pucdata.c =================================================================== --- pucdata.c (revision 231973) +++ pucdata.c (working copy) @@ -708,11 +708,20 @@ const struct puc_cfg puc_pci_devices[] = { PUC_PORT_4S, 0x10, 0, 8, }, + /* XXX: Need subdevice/vendor */ { 0x1415, 0x9511, 0xffff, 0, + "AAEON PER-C40C", + DEFAULT_RCLK, + PUC_PORT_4S, 0x10, 4, 0, + }, + +#if 0 + { 0x1415, 0x9511, 0xffff, 0, "Oxford Semiconductor OX9160/OX16PCI954 UARTs (function 1)", DEFAULT_RCLK, PUC_PORT_4S, 0x10, 0, 8, }, +#endif { 0x1415, 0x9521, 0xffff, 0, "Oxford Semiconductor OX16PCI952 UARTs", -- John Baldwin