]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct/Simplify ignore wide residue message handling
authorgibbs <gibbs@FreeBSD.org>
Mon, 26 May 2003 21:26:52 +0000 (21:26 +0000)
committergibbs <gibbs@FreeBSD.org>
Mon, 26 May 2003 21:26:52 +0000 (21:26 +0000)
commit662549db7e4206f31a84849a34cf36db51e56f20
treec8648128d974a6f5d574a99b98853fb9a3d53689
parent8d1a019282b444e6b5f5331e13141a1ae47b6afa
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.
sys/dev/aic7xxx/aic79xx.c
sys/dev/aic7xxx/aic79xx.reg
sys/dev/aic7xxx/aic79xx.seq
sys/dev/aic7xxx/aic79xx_inline.h