Description Of Operation; Execution Of Initiator Mode Operations - Adaptec AHA-1740A Technical Reference Manual

Eisa-to-fast scsi host adapter
Hide thumbs Also See for AHA-1740A:
Table of Contents

Advertisement

EISA-to-Fast SCSI Host Adapter
The actual boundary limitation is somewhat less restrictive. If the binary values of
the starting address of a segment, the byte count of that segment, and the starting
address of the next segment are all exclusive OR'd together, and the result of that ex-
clusive OR is an even number, the boundary between those two segments is valid. An-
other way to express the limitation is to require that the ending boundary of one
segment must be the same as the beginning boundary of the next segment. If a seg-
ment ends on a word boundary, the next segment must begin on a word boundary.
Similarly, if a segment ends on an odd-byte boundary, the next segment must begin
on an odd-byte boundary.

Description of Operation

This section describes the interface operations required to invoke the desired SCSI
behavior. The AHA-1740A/1742A/1744 must be properly initialized before any of
these operations can be performed.
After system initialization is done, the I/O Command Port initialization commands
must be executed. The Mailbox Initialization command must be executed to assign
the mailbox area. The Enable Target Mode command may optionally be executed if
Target Mode is to be allowed.

Execution of Initiator Mode Operations

To begin an Initiator Mode SCSI command, the host first allocates a data buffer area.
A CCB is then created to perform the desired operation to the correct peripheral de-
vice and a pointer to the data buffer area is placed in the CCB. Once the CCB is com-
pletely defined, the host places a pointer to the CCB in an empty MBO location,
places an MBO full status in the MBO status byte, and transmits a Start SCSI com-
mand to the I/O command port. If it is not already scanning the MBO for an active
MBO entry, the Start SCSI command to the I/O port causes the host adapter to begin
scanning for such an entry.
After finding an active MBO entry, the AHA-1740A/1742A/1744 copies the MBO Com-
mand field contents and CCB pointer into its internal RAM and clears the MBO Com-
mand byte, freeing the mailbox. Up to 16 initiator CCBs and 16 target CCBs can be
stored in the host adapter's internal RAM concurrently. The AHA-1740A/1742A/1744
maximizes the SCSI bus utilization by starting the next available CCB as soon as the
bus is free. Disconnection and reconnection on the bus are automatically taken care
of by the AHA-1740A/1742A/1744. As the host adapter starts the SCSI operation, it
will first determine if the addressed target/LUN is busy. If the target/LUN is busy,
the command will be placed in the task queue to be tried again later.
Commands are removed from the queue in the order they were received, establishing
a First In First Out (FIFO) command execution order. Of course, the order of task
completion may vary due to the different amounts of time required to process and
complete different commands. If the target/LUN is not busy, the new command is
started at the next bus free phase. If Busy status is received by the AHA-
1740A/1742A/1744, the CCB is placed at the end of the FIFO queue to be restarted
later.
Standard Mode Firmware Description
5-29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aha-1744Aha-1742a

Table of Contents