From 28ea1bf86907ca90fdcff7969e21e804b20d8809 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 5 Sep 2000 00:32:19 +0000 Subject: [PATCH] When dumping the 'found devices' list in verbose mode, actually show the bus/slot/function numbers. The old PCI code used other markers or something, but without it here under the new pci code it is very hard to tell which device is which (this only affects bootverbose mode). --- sys/dev/pci/pci.c | 2 ++ sys/pci/pci.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 49b4611e4ca..07c8cd8616b 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -904,6 +904,8 @@ pci_print_verbose(struct pci_devinfo *dinfo) printf("found->\tvendor=0x%04x, dev=0x%04x, revid=0x%02x\n", cfg->vendor, cfg->device, cfg->revid); + printf("\tbus=%d, slot=%d, func=%d\n", + cfg->bus, cfg->slot, cfg->func); printf("\tclass=%02x-%02x-%02x, hdrtype=0x%02x, mfdev=%d\n", cfg->baseclass, cfg->subclass, cfg->progif, cfg->hdrtype, cfg->mfdev); diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 49b4611e4ca..07c8cd8616b 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -904,6 +904,8 @@ pci_print_verbose(struct pci_devinfo *dinfo) printf("found->\tvendor=0x%04x, dev=0x%04x, revid=0x%02x\n", cfg->vendor, cfg->device, cfg->revid); + printf("\tbus=%d, slot=%d, func=%d\n", + cfg->bus, cfg->slot, cfg->func); printf("\tclass=%02x-%02x-%02x, hdrtype=0x%02x, mfdev=%d\n", cfg->baseclass, cfg->subclass, cfg->progif, cfg->hdrtype, cfg->mfdev);