From owner-freebsd-hackers Thu Apr 6 19:20:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from auemail2.firewall.lucent.com (auemail2.lucent.com [192.11.223.163]) by hub.freebsd.org (Postfix) with ESMTP id 8D2C237C114; Thu, 6 Apr 2000 19:20:34 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from auemail2.firewall.lucent.com (localhost [127.0.0.1]) by auemail2.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id WAA18823; Thu, 6 Apr 2000 22:20:33 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by auemail2.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id WAA18816; Thu, 6 Apr 2000 22:20:32 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id WAA27711; Thu, 6 Apr 2000 22:20:30 -0400 (EDT) Message-ID: <38ED46F0.74666BF4@lucent.com> Date: Thu, 06 Apr 2000 22:24:48 -0400 From: "Gary T. Corcoran" Organization: Lucent Microelectronics - Modem and Multimedia Systems X-Mailer: Mozilla 4.06 [en] (Win98; U) MIME-Version: 1.0 To: Warner Losh Cc: Mike Smith , freebsd-hackers@freebsd.org Subject: Re: How to get multiple PCI I/O base addresses in attach()? References: <38ED30E5.CA9D9578@lucent.com> <200004070010.RAA01618@mass.cdrom.com> <200004070205.UAA95227@harmony.village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh wrote: > > In message <38ED30E5.CA9D9578@lucent.com> "Gary T. Corcoran" writes: > : #define NdisRawReadPortUchar( _port, _ptr) *(_ptr) = inb((_port)) > > Yes. The bus_space_handle_t that rman_get_bushandle returns on the > i386 is the portnumber in I/O space. However, you'll need a separate > one for each of them since you don't know where the bios is going to > map the areas relative to one another. Right. > : As long as I stick to x86 machines, do you see any problem in doing this? > > As long as they don't cahnge too much, you should be OK at this. Okay - thanks. Now I just have to get my code to compile (into a module)... ;-) Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message