From owner-freebsd-stable@FreeBSD.ORG Mon Dec 12 14:04:51 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3484F16A41F for ; Mon, 12 Dec 2005 14:04:51 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 062A343D5C for ; Mon, 12 Dec 2005 14:04:48 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id jBCE4l44030384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Dec 2005 17:04:47 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id jBCE4kQa030383; Mon, 12 Dec 2005 17:04:46 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 12 Dec 2005 17:04:46 +0300 From: Gleb Smirnoff To: Gavin Atkinson Message-ID: <20051212140446.GQ37414@FreeBSD.org> References: <20051211181324.G71610@ury.york.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20051211181324.G71610@ury.york.ac.uk> User-Agent: Mutt/1.5.6i Cc: freebsd-stable@FreeBSD.org Subject: Re: puc fails to attach serial ports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 14:04:51 -0000 On Sun, Dec 11, 2005 at 06:22:40PM +0000, Gavin Atkinson wrote: G> I'm trying to use puc(4) under RELENG_6 to attach the two serial ports on G> a PCI card I have, but it's not working. It also fails under 6.0-RELEASE, G> I don't have the ability to test earlier versions. G> G> The card is developed, but as far as I can see, no attempt is made to G> attach the sio(4) devices below it. G> G> puc0: port 0x18c0-0x18df irq 25 at device 9.0 on G> pci0 G> puc0: Reserved 0x20 bytes for rid 0x10 type 4 at 0x18c0 G> port rid 16 bst 0, start 18c0, end 18df G> puc0: i 0, type sio, ressz 8, type 1 G> puc: Using sio2 G> puc: type 1, bar 10, offset 0 G> puc0: i 1, type sio, ressz 8, type 1 G> puc: Using sio3 G> puc: type 1, bar 10, offset 8 G> G> Adding some printfs to the code, it turns out that device_probe_and_attach G> around line 375 of sys/dev/puc/puc.c is returning 6. G> G> I have also added printfs to the probe and attach code of both the pci and G> puc attachments of sio(4), and have determined that none of them get G> called. G> G> How can I further diagnose why this card is not getting recognised? Afaik, you need 'device uart', that will attach to your pucs. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE