Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 1999 15:37:02 -0700 (MST)
From:      "Justin T. Gibbs" <gibbs@narnia.plutotech.com>
To:        Gerard Roudier <groudier@club-internet.fr>
Cc:        scsi@FreeBSD.org
Subject:   Re: Q: pci #bus #dev #func from device_t
Message-ID:  <199911082237.PAA75614@narnia.plutotech.com>
In-Reply-To: <Pine.LNX.3.95.991109004016.342A-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.LNX.3.95.991109004016.342A-100000@localhost> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911082237.PAA75614>