From owner-freebsd-alpha Wed Feb 14 18:25:23 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 0B36937B4EC; Wed, 14 Feb 2001 18:25:19 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id VAA07668; Wed, 14 Feb 2001 21:25:07 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.1/8.9.1) id f1F2OOS56012; Wed, 14 Feb 2001 21:24:24 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14987.15832.39211.2856@grasshopper.cs.duke.edu> Date: Wed, 14 Feb 2001 21:24:24 -0500 (EST) To: Mike Smith Cc: Peter Jeremy , alpha@FreeBSD.ORG Subject: Re: Accessing a PCI device by `physical' address In-Reply-To: <200102150200.f1F20ei02223@mass.dis.org> References: <20010215124001.A71053@gsmx07.alcatel.com.au> <200102150200.f1F20ei02223@mass.dis.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike Smith writes: > > Thinking about it some more, though, this probably doesn't integrate well > with syscons. 8( Exactly. Syscons has an easy time of it running early because it knows VGA adapters will be at certain magic I/O ports. Ick. > I'm kinda stumped, here. I don't think there's a clean way to do this, > which is bad. We probably need to fix this. Thoughts? Kinda gross, but you could add pcib_{read,write}_config() fields to the platform struct & init them in the various chipset init functions. Most platforms don't use the first arg (device_t). Those that do (tsunami, mcpcia) could probably be hacked to treat a null device_t as if it were the 0th hose. I don't think SRM supports console devices anywhere but the 0th hose anyway. I assume you're forward-porting Andrew Miklic's driver? Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message