From owner-freebsd-hackers Wed Apr 5 20: 7:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.nj.home.com (ha1.rdc1.nj.home.com [24.3.128.66]) by hub.freebsd.org (Postfix) with ESMTP id 4A94D37BE41 for ; Wed, 5 Apr 2000 20:07:06 -0700 (PDT) (envelope-from garycor@home.com) Received: from home.com ([24.3.185.85]) by mail.rdc1.nj.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000406030705.QLVM25411.mail.rdc1.nj.home.com@home.com> for ; Wed, 5 Apr 2000 20:07:05 -0700 Message-ID: <38EBFF8D.56BB4841@home.com> Date: Wed, 05 Apr 2000 23:07:57 -0400 From: "Gary T. Corcoran" X-Mailer: Mozilla 4.6 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: How to get multiple PCI I/O base addresses in attach()? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I installed FreeBSD 4.0 and I'm trying to write the attach() routine for my device driver, to be compiled as a loadable module. In 4.0 the attach routine only gets passed a dev pointer, not a PCI configuration pointer. My PCI device has up to 6 I/O ranges, and I need to get the base addresses for those ranges. So how does one get multiple I/O base addresses from a dev pointer for a PCI device in FreeBSD 4.x ? Thanks, Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message