FORCE Computers SYS68K/ISCSI-1 — SYS68K/ISCSI-1 User's Manual

5.5.13 TRANSFER INFO The Transfer Info command is an Interrupting command that is valid only when connected to the bus in the Initiator role. It is used by the Initiator for all information transfers across the SCSI bus. A Transfer Info command is issued by an Initiator in response to a Bus Service interrupt. The Bus Service interrupt, as explained in a previous section, is received by the connected Initiator upon the following conditions: receiving the first REO from a Target, a previous command has completed and the Target changes phases, the Target changes phases before termination, or when a previous command has completed and the Target is requesting more information.

It is not valid to issue a Transfer Info command without having a Bus Service interrupt, because the Target requests and controls all transfers. The chip will only permit one Transfer Info or Transfer Pad per Bus Service interrupt. After an Initiator receives a Bus Service interrupt, and prior to issuing a Transfer Info command, the 110, C/O, and MSG bits from the Auxiliary Status Register (read prior to reading the Interrupt) should be ex- amined to determine the type of information phase and the direction of transfer requested by the Target. The Initiator then prepares for the transfer.

If the Single Byte Transfer bit is not going to be set in the Command Register, the Transfer Counter must be loaded prior to issuing the Transfer Info com- mand. This is done in order to specify to the chip the maximum number of bytes to be transferred. When a Transfer Info is issued, the chip immediately resets the Data Register Full bit in the Auxili·ary Status Register. For this reason, the first byte of data for an output operation cannot be loaded into the Data Register until after the command is loaded into the Command Register.

The chip then proceeds with the transfer, expecting data to be read from (input), or written to (output), its Data Register as in- dicated by the DMA Mode bit in the Command Register. The chip automatically detects the direction of the transfer from the 110 bit which is stored in the Auxiliary Status Register. The chip continues a transfer until an interrupt causing event occurs. The following four events will cause the chip to terminate and interrupt. 1. The maximum number of bytes specified have been transferred and the Target activated REO or the Information Phase changed. This event results in a Bus Service Interrupt.

Either Single byte transfer was specified or the Transfer Counter is zero as indicated by a bit in the Auxiliary Status Register. The Target mayor may not have changed the information phase type. The 110, C/O, and MSG bits in the Auxiliary Status Register need to be examined at the time of the interrupt to determine what phase the Target is requesting. (NOTE: Due to early notification of the phase change, a phase may be selected spuriously and not transfer any data. The microprocessor should not consider this an error condition. The early notification can be blocked with "valid phase bit".) 2. The Target changes the information phase type before the maximum number of bytes are transferred.

This event also causes a Bus Service interrupt. The new information phase may be determined by examining the 110, C/O, and MSG bits in the Auxiliary Status Register. The Transfer Counter may be read at the time of the interrupt to determine the number of bytes remaining to be transferred. When this interrupt occurs for an output transfer, the chip may take one more byte from the microprocessor than it transfers, because of pre-fetching. However, the Transfer Counter still reflects the number of bytes remaining to be transferred. 3. The Target releases the bus by dropping BSY. This event results in a Disconnected interrupt.

Following this interrupt, the chip is no longer in the Initiator role. It now remains in the Disconnected state. 4. The last byte of a Message Input phase has been received. This event results in a Function Complete interrupt. For this case, ACK is left active on the bus to allow the microprocessor to Set ATN for the purpose of rejecting the message. After this interrupt is received and a Set ATN is issued (if desired), a Message Accepted must be issued to turn off ACK for the last byte of the Message In phase. 27