patch-1.3.55 linux/drivers/scsi/53c7,8xx.scr
Next file: linux/drivers/scsi/53c8xx_d.h
Previous file: linux/drivers/scsi/53c7,8xx.h
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Sat Jan 6 15:31:06 1996
- Orig file:
v1.3.54/linux/drivers/scsi/53c7,8xx.scr
- Orig date:
Thu Dec 21 08:53:32 1995
diff -u --recursive --new-file v1.3.54/linux/drivers/scsi/53c7,8xx.scr linux/drivers/scsi/53c7,8xx.scr
@@ -1109,17 +1109,24 @@
; a new value to a previously NULL head of the issue queue.
;
; 2. The NCR53c810 was selected or reselected by another device.
-;
+;
+; 3. The bus was allready busy since we were selected or reselected
+; before starting the command.
wait_reselect_failed:
#ifdef EVENTS
INT int_EVENT_RESELECT_FAILED
#endif
+; Check selected bit.
MOVE SIST0 & 0x20 TO SFBR
JUMP selected, IF 0x20
; Reading CTEST2 clears the SIG_P bit in the ISTAT register.
MOVE CTEST2 & 0x40 TO SFBR
JUMP schedule, IF 0x40
+; Check connected bit.
+; FIXME: this needs to change if we support target mode
+ MOVE ISTAT & 0x08 TO SFBR
+ JUMP reselected, IF 0x08
; FIXME : Something bogus happened, and we shouldn't fail silently.
#if 0
JUMP schedule
@@ -1141,6 +1148,11 @@
; Reading CTEST2 clears the SIG_P bit in the ISTAT register.
MOVE CTEST2 & 0x40 TO SFBR
JUMP select, IF 0x40
+; Check connected bit.
+; FIXME: this needs to change if we support target mode
+; FIXME: is this really necessary?
+ MOVE ISTAT & 0x08 TO SFBR
+ JUMP reselected, IF 0x08
; FIXME : Something bogus happened, and we shouldn't fail silently.
#if 0
JUMP schedule
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this