(2) Pointer
operation
When the TARG issues a request message or executes reconnection, the INIT saves the pointer
(that is, the INIT sets the current pointer value to the Saved pointer) or restores the pointer (that is,
the INIT sets the Saved pointer value to the current pointer).
Within the Saved pointer, the command pointer and status pointer always have their initial value
of that command. The command pointer points to the first byte position of the CDB (command),
and the status pointer points to the storage position of status byte in that command. While in the
Saved pointer, the data pointer points to the beginning of data area of the command when the
command execution has started. These values are held until the TARG issues a SAVE DATA
POINTER message to the INIT. When the INIT receives this SAVE DATA POINTER message,
the INIT stores the current data pointer value in the saved data pointer area.
The TARG can restore the pointers by sending the RESTORE POINTERS message to the INIT.
When the INIT receives this RESTORE POINTERS message, it stores pointer values of the saved
pointer in the corresponding current pointer.
If the INIT receives an IDENTIFY message after the RESELECTION phase, the INIT restores the
pointers in the similar way as when it has received the RESTORE POINTERS message.
If a command is in the disconnect state, the INIT saves only the saved pointer value of the
command. Therefore, if the command disconnect is expected during data transfer, the TARG
shall save the current data pointer values by issuing the SAVE DATA POINTER message before
issuing the DISCONNECT message.
Note:
As the TARG may set any pointer value before starting disconnect processing or command
termination, the pointer value of the INIT may or may not point to the byte position of the data
recently transferred over the SCSI bus.
Figure 2.2 shows the SCSI pointer configuration. It indicates the execution of the command
(CDB
0
) after the INIT was connected with TARG#0 and LUN#0. Therefore, the current pointer
keeps each pointer value to execute the command (CDB
0
). The initial values for the command,
data, and status pointers for this command are X
0
, Y
0
, and Z
0
.
The current pointer values are updated to (X
0
+ c) and (Y
0
+ d) by fetching the command (CDB
0
)
and executing the data transfer. The saved pointer values except for the data pointer keep the
initial values (X
0
, Z
0
) until the command execution ends. The saved data pointer value keeps the
initial value at the command issuance, (Y
0
), or the current pointer value at the time the pointer
saving operation was performed by the TARG specification, (Y
0
+ dn). These saved pointer
values can be restored into the current pointer by a RESTORE POINTERS message when the
TARG retries the command.
Also, the pointers to the commands (CDB
1
, CDB
m
) which are in operation with other logical units
are stored at the corresponding positions (1, m) in the saved pointer group. They are fetched and
restored as the current pointers when the commands are reconnected.
158
C141-C015
Summary of Contents for MBA3300 NP SERIES
Page 6: ...This page is intentionally left blank ...
Page 18: ...This page is intentionally left blank ...
Page 69: ...C141 C015 63 Figure 1 26 ARBITRATION phase ...
Page 81: ......
Page 117: ...1 37 C141 C007 Figure 1 43 Bus phase sequence 1 of 2 ...
Page 118: ...38 C141 C015 Figure 1 43 Bus phase sequence 2 of 2 ...
Page 128: ...48 C141 C015 Figure 1 47 SPI information unit sequence during initial connection ...
Page 129: ...1 49 C141 C007 Figure 1 48 SPI information unit sequence during data type transfers ...
Page 130: ...50 C141 C015 Figure 1 49 SPI information unit sequence during data stream type transfers ...
Page 131: ...1 51 C141 C007 Figure 1 50 SPI information unit sequence during status transfers ...
Page 155: ...1 75 C141 C007 Figure 1 56 Connection to the LVD receivers ...
Page 161: ...Figure 2 1 Message format 154 C141 C015 ...
Page 166: ...Figure 2 2 SCSI pointer configuration C141 C015 159 ...
Page 201: ...This page is intentionally left blank ...
Page 205: ...This page is intentionally left blank ...
Page 207: ...This page is intentionally left blank ...
Page 208: ......
Page 209: ......