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.
This commit is contained in:
Andrew Gallatin 2000-01-20 16:49:18 +00:00
parent 2945c302da
commit e1364adbae

View File

@ -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);
}
/*