CUSTOM SCSI PACKETS
2-16
2
second command. The following linked command example may be
performed on the Archive 2150 disk controller (it supports linked commands).
The SCSI firmware does not support linked command with flag.
PACKET FOR THE LINKED COMMAND EXAMPLE:
PACKET DC.W $0400 CONTROLLER LEVEL=4, DEVICE LUN=0
DS.W 1 RETURNED STATUS WORD (BYTES 0 AND 1)+2
DC.L LSCRIPT SCRIPT POINTER +4
DC.L CT1 COMMAND TABLE POINTER +8
DC.W 0 RESERVED +C
DC.W 0 INITIATOR ROLE CUSTOM SEQUENCE +E
DC.W 0 RESERVED +10
DC.W 0 RESERVED +12
DC.W $001C FUNCTION CODE=CUSTOM SCSI SEQUENCE +14
DC.W $0260 INTERRUPT LEVEL 2, VECTOR $60 +16
DS.W 1 STATUS BYTES 2 AND 3 +18
DC.W 3 RETRY COUNT=3 +1A
SCRIPT for a READ followed by a WRITE:
LSCRIPT DC.B $14 MESSAGE OUT (IDENTIFY)
DC.B $04 COMMAND (READ)
DC.B $0C DATA IN
DC.B $10 STATUS
DC.B $18 MESSAGE IN
DC.B $04 COMMAND (WRITE)
DC.B $08 DATA OUT
DC.B $10 STATUS
DC.B $18 MESSAGE IN
DC.B $00 END OF SCRIPT
(LINKED COMMANDS REQUIRE AS MANY COMMAND TABLES AS
THERE ARE PIECES OF THE
LINKED COMMAND. I.E. FOR A READ/WRITE LINKED COMMAND, 2
TABLES ARE REQUIRED)