Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2011 07:06:05 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/mips/cavium octeon_ebt3000_cf.c
Message-ID:  <201106040706.p5476EI8079557@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2011-06-04 07:06:05 UTC

  FreeBSD src repository

  Modified files:
    sys/mips/cavium      octeon_ebt3000_cf.c 
  Log:
  SVN rev 222671 on 2011-06-04 07:06:05Z by imp
  
  Add support for True IDE mode to the Octeon CF driver.  This mode is
  signalled when the attribute address for the CF is 0 in the octeon
  sysinfo structure.  In this mode, the DATA port is 16-bits, but the
  other ports are 8-bits, but on a 16-bit bus (so you have to access it
  a short at a time, but only believe the lower byte).  See the code for
  more details on this slightly odd arrangement.  I'm still not 100%
  happy with the abstractions here on many levels (starting with the
  globals for these settings, on down to no bus_space use, etc), but the
  driver had these problems before the change.
  
  Also, clean up the code a bit to make this support easier, and the
  code a bit easier to read.  I tried to follow existing style, but may
  have missed a few spots.  Add some comments.
  
  Fix probe/attach routine to return a proper error for the simulator.
  
  With this change, my EBH5200 eval board now recognizes the CF well
  enough to boot to the login prompt.  Before it would say it never
  became ready.  My CN3010-EVB-HS5 still boots properly.  My older
  CN3860-based board won't load the 64-bit kernel, either before or
  after the change, and I didn't chase that down.
  
  Revision  Changes    Path
  1.7       +194 -137  src/sys/mips/cavium/octeon_ebt3000_cf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106040706.p5476EI8079557>