From owner-freebsd-scsi Mon Nov 8 14:47:36 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (Postfix) with ESMTP id EEA23150EA for ; Mon, 8 Nov 1999 14:47:27 -0800 (PST) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.9.3/8.7.3) id PAA75614; Mon, 8 Nov 1999 15:37:02 -0700 (MST) Date: Mon, 8 Nov 1999 15:37:02 -0700 (MST) From: "Justin T. Gibbs" Message-Id: <199911082237.PAA75614@narnia.plutotech.com> To: Gerard Roudier Cc: scsi@FreeBSD.org Subject: Re: Q: pci #bus #dev #func from device_t X-Newsgroups: pluto.freebsd.scsi In-Reply-To: User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (FreeBSD/4.0-CURRENT (i386)) Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article you wrote: > > I need to know about the actual bus number, device number and function > number of a PCI device from some driver that attached this device. > Is there some method to get this information from device_t? Yes. Use the pci_get/pci_set functions as defined in pcivar.h. ahc_pci.c uses these to get function numbers, etc. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message