Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2003 14:26:52 -0700 (PDT)
From:      "Justin T. Gibbs" <gibbs@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/aic7xxx aic79xx.c aic79xx.reg aic79xx.seq aic79xx_inline.h
Message-ID:  <200305262126.h4QLQqCI016967@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
gibbs       2003/05/26 14:26:52 PDT

  FreeBSD src repository

  Modified files:
    sys/dev/aic7xxx      aic79xx.c aic79xx.reg aic79xx.seq 
                         aic79xx_inline.h 
  Log:
  Correct/Simplify ignore wide residue message handling
  
  aic79xx.c:
          In ahd_handle_ign_wide_residue():
          o Use SCB_XFERLEN_ODD SCB field to determine transfer
            "oddness" rather than the DATA_COUNT_ODD logic.
            SCB_XFERLEN_ODD is toggled on every ignore wide
            residue message so that multiple ignore wide residue
            messages for the same transaction are properly supported.
          o If the sg list has been exausted, the sequencer
            doesn't bother to update the residual data count
            since it is known to be zero.  Perform the zeroing
            manually before calculating the remaining data count.
          o Use multibyte in/out macros instead of shifting/masking
            by hand.
  
  aic79xx_inline.h:
          In ahd_setup_scb_common(), setup the SCB_XFERLEN_ODD field.
  
  aic79xx.reg:
          Use the SCB_TASK_ATTRIBUTE field as a bit field in the
          non-packetized case.  We currently only define one bit,
          SCB_XFERLEN_ODD.
  
          Remove the ODD_SEG bit field that was used to carry the odd
          transfer length information through the SG cache.  This
          is obviated by SCB_XFERLEN_ODD field.
  
          Remove the DATA_COUNT_ODD scratch ram byte that was used
          dynamicaly compute data transfer oddness.  This is obviated
          by SCB_XFERLEN_ODD field.
  
  aic79xx.seq:
          Remove all updates to the DATA_COUNT_ODD scratch ram field.
          Remove all uses of ODD_SEG.  These two save quite a few
          sequencer instructions.
  
          Use SCB_XFERLEN_ODD to validate the end of transfer
          ignore wide residue message case.
  
  Revision  Changes    Path
  1.15      +24 -32    src/sys/dev/aic7xxx/aic79xx.c
  1.13      +7 -2      src/sys/dev/aic7xxx/aic79xx.reg
  1.11      +4 -13     src/sys/dev/aic7xxx/aic79xx.seq
  1.11      +7 -2      src/sys/dev/aic7xxx/aic79xx_inline.h



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