From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 19:40:16 2003 Return-Path: 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 42F7C37B401 for ; Wed, 6 Aug 2003 19:40:16 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4547643FE5 for ; Wed, 6 Aug 2003 19:40:15 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h772e0FL038937; Wed, 6 Aug 2003 20:40:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 06 Aug 2003 20:39:37 -0600 (MDT) Message-Id: <20030806.203937.51146968.imp@bsdimp.com> To: jb@cimlogic.com.au From: "M. Warner Losh" In-Reply-To: <20030807120707.C7321@freebsd1.cimlogic.com.au> References: <20030807113011.B7321@freebsd1.cimlogic.com.au> <20030806.194532.21929682.imp@bsdimp.com> <20030807120707.C7321@freebsd1.cimlogic.com.au> X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: phk@phk.freebsd.dk cc: ticso@cicely.de Subject: Re: How to get a device_t X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 02:40:16 -0000 In message: <20030807120707.C7321@freebsd1.cimlogic.com.au> John Birrell writes: : On Wed, Aug 06, 2003 at 07:45:32PM -0600, M. Warner Losh wrote: : > Well, I don't know. The PC Cards that we have in the system are : > mapped into the I/O and memory ranges traditionally reserved for the : > ISA bus. In ISA systems, this made sense because pccard was attached : > to pcic was attached to isa. However, now we have situations where : > pccard is attached to cbb which is attached to pci. There may be a : > isab device with isa bus hanging off of it that makes the relationship : > between the pccard devices cousins rather than nephews in the tree. : > And there isn't any harm from that. Wouldn't this be a similar : > situation? : : The flash I'm talking about is not pccard related. Sorry if I gave that : impression. No. The pccard mention was to argue by analogy only :-) : The SC520 has onboard support to control 3 flash chips. : The board I have has 2 Mb NOR flash chip containing BIOS plus a DOS : file system (at the moment) where I keep a copy of an etherboot : executable. The board also has a 64Mb NAND flash chip which I've : written a FreeBSD UFS image into. Our standard bootloader happily : loads the kernel from that. Now I need to get a flash driver working : for the root file system. I've got an existing read-only flash driver : that I used to use on an Intel 386EX board, but that had the entire : flash chip memory mapped. This new board maps the NAND flash in 4K : pages. That would be very very cool. There's a number of new SBCs that I've seen that have this sort of setup. Timing Solutions might be very interesting in something like this because we're currently buying CF cards to do our OS. : This URL lists the relevent docs: : : : : The ones you want are the "ElanSC520 Users Manual" and "ElanSC520 : Register Set Manual" Downloading now. : If you have time, I'd be interested. This is a hot topic for me because : it is exactly where I'm up to. I have everything else working on the : board. I'm thinking that it wouldn't take too long. Lemme see what I can throw together. It would be a sketch only... Warner