cvs commit: src/sys/sparc64/pci ofw_pcibus.c

Marius Strobl marius at FreeBSD.org
Thu Aug 28 18:05:33 UTC 2008


marius      2008-08-28 18:05:18 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/sparc64/pci      ofw_pcibus.c 
  Log:
  SVN rev 182385 on 2008-08-28 18:05:18Z by marius
  
  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.
  
  Revision  Changes    Path
  1.16.2.5  +58 -20    src/sys/sparc64/pci/ofw_pcibus.c


More information about the cvs-src mailing list