From owner-freebsd-current@FreeBSD.ORG Tue Jul 20 15:13:02 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 1937F16A4CF; Tue, 20 Jul 2004 15:13:02 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5018643D31; Tue, 20 Jul 2004 15:13:01 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id D2C5E65339; Tue, 20 Jul 2004 16:12:58 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19390-03-2; Tue, 20 Jul 2004 16:12:58 +0100 (BST) Received: from empiric.dek.spc.org (unknown [217.33.132.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 7CE87651EB; Tue, 20 Jul 2004 16:12:57 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 87024610F; Tue, 20 Jul 2004 04:42:56 +0100 (BST) Date: Tue, 20 Jul 2004 04:42:56 +0100 From: Bruce M Simpson To: Hidetoshi Shimokawa Message-ID: <20040720034256.GA826@empiric.dek.spc.org> Mail-Followup-To: Hidetoshi Shimokawa , Doug Rabson , simokawa@freebsd.org, freebsd-current@freebsd.org, Andrew Gallatin References: <16634.47272.768935.436137@grasshopper.cs.duke.edu> <200407182039.10773.dfr@nlsystems.com> <16634.54674.966908.540880@grasshopper.cs.duke.edu> <200407182104.53221.dfr@nlsystems.com> <87hds3pfgv.wl@tora.nunu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87hds3pfgv.wl@tora.nunu.org> cc: simokawa@freebsd.org cc: freebsd-current@freebsd.org cc: Andrew Gallatin Subject: Re: Excellent job on the firewire support! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 15:13:02 -0000 On Tue, Jul 20, 2004 at 11:41:52AM +0900, Hidetoshi Shimokawa wrote: > It is not enough :-< I lack the knowledge of BIOS/PCI(and ACPI?). > Once we can access the OHCI register via PCI in the loader, > the remaining part is relatively easy as you described. > I need some help for this part. I suppose that implementing dcons > in the loader is architecture dependent. Very much so, to begin with. Let's consider the i386 case. libi386/biospci.c wants FireWire device classes added to it for its probe. Some BIOS wrapper functions to manipulate PCI configuration registers need to be added too. Then a fwconsole driver much like comconsole could be written, i.e. fwc_probe(), fwc_init() etc. I believe it's safe to assume that V==P for address space at this point. I guess this could act as a shim before the driver actually gets loaded. kenv could be used to tell dcons where the loader had allocated the buffer before the kernel actually starts. There would have to be a comfortable handover between loader and dcons in the kernel, but because it just uses a ring buffer, I imagine this is somewhat easier than it would be otherwise. I am about to get some long overdue sleep, otherwise I'd begin hacking this myself. ;-) BMS