diff options
author | peter <peter@FreeBSD.org> | 1999-05-08 20:28:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-08 20:28:01 +0000 |
commit | e3538aa94eefaf6db9a1c10eeabeb967f6e7fcb9 (patch) | |
tree | a1dabde21cc3a59ff31f430bdfa264ec055a30e0 /sys/dev/pci | |
parent | 8205d9ed5dee69b5be4fe9b1176470424385f37d (diff) | |
download | FreeBSD-src-e3538aa94eefaf6db9a1c10eeabeb967f6e7fcb9.zip FreeBSD-src-e3538aa94eefaf6db9a1c10eeabeb967f6e7fcb9.tar.gz |
Print 'irq nn' on the device attach line like the old pci code did.
However, we are not printing 'int a/b/c/d' yet, is it worth it on non-SMP
systems? (It's useful when tracing PCI->IO-APIC routing on SMP systems)
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/pci.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index ffd226d..aa707cc 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.97 1999/05/06 22:05:38 peter Exp $ + * $Id: pci.c,v 1.98 1999/05/08 18:09:53 peter Exp $ * */ @@ -1034,6 +1034,13 @@ pci_new_probe(device_t dev) static void pci_print_child(device_t dev, device_t child) { + struct pci_devinfo *dinfo; + pcicfgregs *cfg; + + dinfo = device_get_ivars(child); + cfg = &dinfo->cfg; + if (cfg->intpin > 0 && cfg->intline != 255) + printf(" irq %d", cfg->intline); printf(" at device %d.%d", pci_get_slot(child), pci_get_function(child)); printf(" on %s%d", device_get_name(dev), device_get_unit(dev)); } |