summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/tsunami_pci.c
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2000-01-20 16:49:18 +0000
committergallatin <gallatin@FreeBSD.org>2000-01-20 16:49:18 +0000
commite5fa3c588c32ab81c7dcf1f99d942eafdf67df2a (patch)
tree7e35eec5bf3d6415768bed0514b40336b668dc14 /sys/alpha/pci/tsunami_pci.c
parente65ad563e9e153b9857c7a2e9692140f96fa2294 (diff)
downloadFreeBSD-src-e5fa3c588c32ab81c7dcf1f99d942eafdf67df2a.zip
FreeBSD-src-e5fa3c588c32ab81c7dcf1f99d942eafdf67df2a.tar.gz
Make devices behind PPBs work on DS10s (and any other single pchip tsunamis)
I was wagering on DEC being elegant & numbering PCI buses normally on machines with one pchip. It looks like they went with consistent -- buses behind ppbs begin with bus 2.
Diffstat (limited to 'sys/alpha/pci/tsunami_pci.c')
-rw-r--r--sys/alpha/pci/tsunami_pci.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/alpha/pci/tsunami_pci.c b/sys/alpha/pci/tsunami_pci.c
index c5301d1..5372420 100644
--- a/sys/alpha/pci/tsunami_pci.c
+++ b/sys/alpha/pci/tsunami_pci.c
@@ -78,15 +78,7 @@ tsunami_bus_within_hose(int hose, int bus)
if (hose == bus)
return 0;
else
- return ( (bus - tsunami_hoses[hose])
- + (tsunami_num_pchips - 1)); /* XXX */
- /*
- * XXX (tsunami_num_pchips - 1) is a just a guess!
- *
- * I assume that a ppb in a ds10 will get bus 1
- * if it is assigned bus 2, then replace
- * (tsunami_num_pchips - 1) with 1.
- */
+ return ( (bus - tsunami_hoses[hose]) + 1);
}
/*
OpenPOWER on IntegriCloud