Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   thorpej
Date:           Fri Aug 29 01:28:53 UTC 2003

Modified Files:
        src/sys/dev/ic: aic79xx.c aic79xx_inline.h
        src/sys/dev/microcode/aic7xxx: aic79xx.reg aic79xx.seq aic79xx_reg.h
            aic79xx_seq.h

Log Message:
Apply the following change made on 5/26/2003 21:26:51 by gibbs to the
FreeBSD ahd driver:

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.


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/sys/dev/ic/aic79xx.c
cvs rdiff -r1.6 -r1.7 src/sys/dev/ic/aic79xx_inline.h
cvs rdiff -r1.4 -r1.5 src/sys/dev/microcode/aic7xxx/aic79xx.reg \
    src/sys/dev/microcode/aic7xxx/aic79xx_seq.h
cvs rdiff -r1.5 -r1.6 src/sys/dev/microcode/aic7xxx/aic79xx.seq \
    src/sys/dev/microcode/aic7xxx/aic79xx_reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index