summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-03-18 19:18:36 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-03-18 19:18:36 +0000
commitdebfad46bd08b01d4fdc6a19fc43fa9dfcc63ada (patch)
treeaa6982c6cca3927e488ce185e79b8dff08893cac /sys/dev/pci
parent5445855c7b83ba8461931716b332f92281d05e34 (diff)
downloadFreeBSD-src-debfad46bd08b01d4fdc6a19fc43fa9dfcc63ada.zip
FreeBSD-src-debfad46bd08b01d4fdc6a19fc43fa9dfcc63ada.tar.gz
Print the PCI resources even if they are disabled. This shows more clearly
when the BIOS is forgetful about initialising the USB controllers.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 349778f..74ae9f9 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1075,6 +1075,18 @@ pci_add_map(device_t dev, pcicfgregs* cfg, int reg)
base |= ((u_int64_t)cfg->hose << shift);
}
#endif
+ if (bootverbose) {
+ printf("\tmap[%02x]: type %x, range %2d, base %08x, size %2d",
+ reg, pci_maptype(base), ln2range,
+ (unsigned int) base, ln2size);
+ if (type == SYS_RES_IOPORT && !pci_porten(cfg))
+ printf(", port disabled\n");
+ else if (type == SYS_RES_MEMORY && !pci_memen(cfg))
+ printf(", memory disabled\n");
+ else
+ printf(", enabled\n");
+ }
+
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
return 1;
if (type == SYS_RES_MEMORY && !pci_memen(cfg))
@@ -1084,12 +1096,6 @@ pci_add_map(device_t dev, pcicfgregs* cfg, int reg)
base, base + (1 << ln2size) - 1,
(1 << ln2size));
- if (bootverbose) {
- printf("\tmap[%02x]: type %x, range %2d, base %08x, size %2d\n",
- reg, pci_maptype(base), ln2range,
- (unsigned int) base, ln2size);
- }
-
return (ln2range == 64) ? 2 : 1;
}
OpenPOWER on IntegriCloud