freebsd-nq/sys/dev/aic7xxx
Justin T. Gibbs 92931c12ff Correct/Simplify ignore wide residue message handling
aic7xxx.c:
	In ahc_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 Ensure that SG_LIST_NULL is cleared in the
	  residual sg pointer for "mid-transfer" ignore
	  wide residue cases.
	o Use multibyte in/out macros instead of shifting/masking
	  by hand.

aic7xxx.h:
	Modify the SCB_GET_LUN() macro to mask the lun hardware
	SCB field with LID.  This leaves two bits in the LUN
	field that can be used for other purposes.

aic7xxx.reg:
	Change LID to be 0x3F.  This is the maximum supported
	lun size for non-packetized SCSI.  Map the top bit
	of the lun to SCB_XFERLEN_ODD.  The host must set
	this bit whenever a transfer is an odd length.

	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.

aic7xxx.seq:
	Be more careful in our handling of the SCB_LUN field.  It
	must be masked with LID if only lun information is desired.

	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.

aic7xxx_inline.h:
	In ahc_queue_scb(), setup the SCB_XFERLEN_ODD field.

Approved by: RE
2003-05-26 21:24:01 +00:00
..
aicasm Allow constants to be complex expressions so long as those 2003-01-20 18:02:11 +00:00
ahc_eisa.c hc_eisa.c: 2003-05-03 23:27:57 +00:00
ahc_pci.c hc_eisa.c: 2003-05-03 23:27:57 +00:00
ahd_pci.c hc_eisa.c: 2003-05-03 23:27:57 +00:00
aic7xxx_93cx6.c Update Perforce Ids. 2002-08-31 06:45:28 +00:00
aic7xxx_93cx6.h Update Perforce Ids. 2002-08-31 06:45:28 +00:00
aic7xxx_inline.h Correct/Simplify ignore wide residue message handling 2003-05-26 21:24:01 +00:00
aic7xxx_osm.c aic7xxx.c: 2003-05-03 23:55:38 +00:00
aic7xxx_osm.h Last minute fixes to ahc and ahd: 2002-12-04 22:51:29 +00:00
aic7xxx_pci.c Fix disabling of PCI parity error interrupts. We need to set 2003-05-26 21:20:47 +00:00
aic7xxx.c Correct/Simplify ignore wide residue message handling 2003-05-26 21:24:01 +00:00
aic7xxx.h Correct/Simplify ignore wide residue message handling 2003-05-26 21:24:01 +00:00
aic7xxx.reg Correct/Simplify ignore wide residue message handling 2003-05-26 21:24:01 +00:00
aic7xxx.seq Correct/Simplify ignore wide residue message handling 2003-05-26 21:24:01 +00:00
aic79xx_inline.h Change hadling of the Rev. A packetized lun output bug 2003-05-26 21:18:48 +00:00
aic79xx_osm.c Correct spelling errors. 2003-05-04 00:20:07 +00:00
aic79xx_osm.h Last minute fixes to ahc and ahd: 2002-12-04 22:51:29 +00:00
aic79xx_pci.c Add 7901B support. 2003-05-26 21:15:52 +00:00
aic79xx.c Change hadling of the Rev. A packetized lun output bug 2003-05-26 21:18:48 +00:00
aic79xx.h Fixup spelling of "coalesce" and derivatives. 2003-05-26 21:10:58 +00:00
aic79xx.reg Fixup spelling of "coalesce" and derivatives. 2003-05-26 21:10:58 +00:00
aic79xx.seq Change hadling of the Rev. A packetized lun output bug 2003-05-26 21:18:48 +00:00
aic7770.c aic7xxx.c: 2003-05-03 23:55:38 +00:00