aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2000-03-18 19:18:36 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2000-03-18 19:18:36 +0000
commite5399702e8be450f4ebfac1c662b7f064c6feba4 (patch)
treefa8fcd09b666bc09becca37095b66fd319cc80d0 /sys/dev/pci/pci.c
parent05433731b66854c2d6beac5ec58a272a4c96b902 (diff)
downloadsrc-e5399702e8be450f4ebfac1c662b7f064c6feba4.tar.gz
src-e5399702e8be450f4ebfac1c662b7f064c6feba4.zip
Print the PCI resources even if they are disabled. This shows more clearly
when the BIOS is forgetful about initialising the USB controllers.
Notes
Notes: svn path=/head/; revision=58244
Diffstat (limited to 'sys/dev/pci/pci.c')
-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 349778f63ee9..74ae9f950684 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;
}