Emerson MVME147 Computer Hardware User Manual


 
TARGET ROLE ROUTINES
6-8
6
The operation code of $0A is for the SEND command. The LUN should match
the logical unit for the MVME147 TARGET. The transfer length tells you how
many bytes are going to be exchanged during the data-out phase.
The flag and link bits are handled by the firmware and you only have to load
a "INTERMEDIATE STATUS/GOOD STATUS" if the link bit was set and a
"GOOD STATUS" if the link bit was clear. If the link bit is set, you load a
"LINKED COMMAND COMPLETE" message into the message-in buffer. If
both the link and flag bits are set, you load a "LINKED COMMAND
COMPLETE WITH FLAG" message into the message-in buffer. If neither the
link nor the flag bits are set, you should load a "COMMAND COMPLETE"
message-into the message-in buffer. (The status byte is part of the command
table -- word $14. The message-in buffer is pointed to by words $20 and $22
of the command table.) (Link and flag features not supported on the first
release of the TARGET module.)
STEP 2: Script Preparation
The SEND command requires the following script:
Note
The SCSI firmware automatically performs the arbitration
and reselection of the disconnected initiator. The
IDENTIFY message is also automatically sent to the
disconnected initiator, therefore, the initial message-in
phase should not be in the script for a SEND command.
v u = vendor unique
- = reserved
f= flag
l = link
$08 : DATA-OUT PHASE
$10 : STATUS PHASE
$18 : MESSAGE-IN PHASE
$1C : END OF TARGET SCRIPT