Date: Tue, 9 Nov 1999 01:29:38 +0100 (MET) From: Gerard Roudier <groudier@club-internet.fr> To: "Justin T. Gibbs" <gibbs@narnia.plutotech.com> Cc: scsi@FreeBSD.org Subject: Re: Q: pci #bus #dev #func from device_t Message-ID: <Pine.LNX.3.95.991109012704.1078B-100000@localhost> In-Reply-To: <199911082237.PAA75614@narnia.plutotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 8 Nov 1999, Justin T. Gibbs wrote: > In article <Pine.LNX.3.95.991109004016.342A-100000@localhost> you wrote: > >=20 > > 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? >=20 > Yes. Use the pci_get/pci_set functions as defined in pcivar.h. ahc_pci.= c > uses these to get function numbers, etc. Thanks very much. 'grep' is indeed not skilled enough to get them. :-) G=E9rard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.991109012704.1078B-100000>