Date: Sun, 24 Aug 2008 15:05:46 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sparc64/pci ofw_pcibus.c Message-ID: <200808241506.m7OF62oi011755@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2008-08-24 15:05:46 UTC FreeBSD src repository Modified files: sys/sparc64/pci ofw_pcibus.c Log: SVN rev 182108 on 2008-08-24 15:05:46Z by marius 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. MFC after: 3 days Revision Changes Path 1.21 +58 -20 src/sys/sparc64/pci/ofw_pcibus.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808241506.m7OF62oi011755>