cvs commit: src/sys/dev/aic7xxx aic79xx.c aic79xx.reg aic79xx.seq aic79xx_inline.h

Justin T. Gibbs gibbs at FreeBSD.org
Mon May 26 14:26:53 PDT 2003


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


More information about the cvs-all mailing list