summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci/apb.c
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-06-13 17:44:03 +0000
committerjmg <jmg@FreeBSD.org>2003-06-13 17:44:03 +0000
commit698f866771c54c49fd9d78bc2d352231f525172c (patch)
tree358064850aec99a6285f4a33c6927e97bdcd6011 /sys/sparc64/pci/apb.c
parent56e414d2aab241f2c990d45c19bf675a78307c43 (diff)
downloadFreeBSD-src-698f866771c54c49fd9d78bc2d352231f525172c.zip
FreeBSD-src-698f866771c54c49fd9d78bc2d352231f525172c.tar.gz
Hardwire APB's PCI buses down. If we don't do this, pciconf -l returns
selectors that are incorrect to use with pciconf -[rw] Fixes-PR: sparc64/50789 Ok's by: tmm
Diffstat (limited to 'sys/sparc64/pci/apb.c')
-rw-r--r--sys/sparc64/pci/apb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/sparc64/pci/apb.c b/sys/sparc64/pci/apb.c
index 4f01630..4e8b746 100644
--- a/sys/sparc64/pci/apb.c
+++ b/sys/sparc64/pci/apb.c
@@ -203,13 +203,10 @@ apb_attach(device_t dev)
}
/*
- * XXX If the subordinate bus number is less than the secondary bus
- * number, we should pick a better value. One sensible alternative
- * would be to pick 255; the only tradeoff here is that configuration
- * transactions would be more widely routed than absolutely necessary.
+ * If we don't hardwire the bus down, pciconf gets confused.
*/
if (sc->secbus != 0) {
- child = device_add_child(dev, "pci", -1);
+ child = device_add_child(dev, "pci", sc->secbus);
if (child != NULL)
return (bus_generic_attach(dev));
} else
OpenPOWER on IntegriCloud