Emerson MVME147 manual Target Role Routines

Models: MVME147

1 170
Download 170 pages 32.5 Kb
Page 78
Image 78
Manual background

6

TARGET ROLE ROUTINES

v u

= vendor unique

-

= reserved

f

= flag

l

= link

 

The operation code of $08 is for the RECEIVE 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 should be treated in the same manner as for the SEND

 

command example above. (Not supported on the first release.)

 

STEP 2: Script Preparation

 

The RECEIVE command requires the following script:

$0C

: DATA-IN PHASE

$10

: STATUS PHASE

$18

: MESSAGE-IN PHASE

$1C

: END OF TARGET 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 RECEIVE command.

STEP 3: Data Preparation

a.Decode the transfer length from the CDB and load this length into the command table words $16 and $18 -- data length.

b.Decode the link bit and store the status to be sent to the initiator during the status phase into the STATUS word (MSB) of the command table -- word $64, even byte.

6-10

Page 78
Image 78
Emerson MVME147 manual Target Role Routines