From owner-freebsd-hackers Thu Apr 6 19: 6:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 053EB37BF01; Thu, 6 Apr 2000 19:06:25 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id UAA03756; Thu, 6 Apr 2000 20:06:22 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id UAA95227; Thu, 6 Apr 2000 20:05:32 -0600 (MDT) Message-Id: <200004070205.UAA95227@harmony.village.org> To: "Gary T. Corcoran" Subject: Re: How to get multiple PCI I/O base addresses in attach()? Cc: Mike Smith , freebsd-hackers@freebsd.org In-reply-to: Your message of "Thu, 06 Apr 2000 20:50:45 EDT." <38ED30E5.CA9D9578@lucent.com> References: <38ED30E5.CA9D9578@lucent.com> <200004070010.RAA01618@mass.cdrom.com> Date: Thu, 06 Apr 2000 20:05:32 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. : for x86 machines, the "handle" is, effectively, really the I/O base address. Yes. : 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. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message