]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r182108
authormarius <marius@FreeBSD.org>
Thu, 28 Aug 2008 18:05:18 +0000 (18:05 +0000)
committermarius <marius@FreeBSD.org>
Thu, 28 Aug 2008 18:05:18 +0000 (18:05 +0000)
commit0e583522430d63f8e48e91ceb831793bd4819cd7
treeea880fc0197d7e9da08961f834227c55badc04d4
parent29a82d6282b0fc49efebb8367cfe6a89c9174194
MFC: r182108

The PCI specifications don't explain the details on how to calculate
the latency based on the Min_Gnt register so use the algorithm found
in OpenSolaris as they probably know how to interpret the value Sun
puts into these registers (previously, the latency calculated for
66MHz was most likely wrong) and for bridges additionally set up the
secondary latency register. Also set up the bridge control register
the way it's done in OpenSolaris. As the latency register don't apply
to PCI-Express and the bridge control setup wasn't tested on sun4v
(besides most likely not being needed), expand the #ifndef SUN4V
accordingly.
sys/sparc64/pci/ofw_pcibus.c