SASI Shugart Associates System lnterf ace Shugart Rev. F (18 October 82) SASI SHUGART ASSOCIATES SYSTEM INTERFACE Abstract: The Shugart Associates System Interface is capable of interconnecting small computers with each other and with low to medium performance intelligent peripherals such as rigid disks, flexible disks, magnetic tape devices, and printers. SASI REVISION LIST Revision Letter Description Date First presentation to ANSI committee X3T9-3 (2 weeks following announcement in Electronic Design) 9-15-81 A • Revised to reflect changes to meet NCR requirements 1-5-82 • Further revised to add description of commands 1-12-82 B Edited and improved for working meeting with NCR, Adaptec and Optimum in Sunnyvale 1-25-82 c • Rewritten in preparation for presentation to ANSI 1-29-82 • Addenda and Errata for Rev. C 2-3-82 D Revised to make all known corrections in preparation for "working session" in Sunnyvale on March 3 and 4 2-19-82 E Revised to incorporate changes resulting from "working session" in Sunnyvale in preparation for April 26 and 27 meeting in Phoenix. 4-1-82 F Revised to incorporate changes transacted in ANSI meetingSup to this date. 10-18-82 FOREWORD The major goal of this interface is to facilitate the integration of small computers and intelligent peripheral devices into computer systems. Since the computers and peripherals envisioned are physically small and the market for such systems is quite cost sensitive, the interface will be suitable for implementation in LSI circuitry and use inexpensive drivers, cables, and connectors, but need only operate over moderate distances (15 m) and data rates (1.5 Mbytes per second). The command set which will be a part of this standard will be a device independent set for hosts and intelligent devices which largely masks the internal structure of the device (cylinders, tracks, sectors, and the like) from the interface. 2 CONTENTS Section Page 1. Scope 4 2. Definitions 4 3. Introduction • • 5 4. Physical Path Specification • • • • • • • • • • . 6 4.1 SASI BUS • • • . • 6 4.2 SASI Physical Path Philosophy 9 4.3 BUS Signals • • • • • • • • • • • • • 11 4.4 BUS Phases • • • • • • • • • 13 4.5 BUS Conditions . • • • • • • • • 19 4.6 Phase Sequencing • • 20 4.7 Signal Assertions • • 23 4.8 Timing • • • . • • 25 4.9 Physical Description. • 26 4.10 Electrical Description •• 33 5. Message System Specification • 36 5.1 Message Protocol • • 36 5.2 Messages • • • . 37 5.3 Extended Messages • • • • 41 6. Command and Status Definition • . • • • 42 6.1 SASI Functional Control Philosophy • • • • • 43 6.2 Command Descriptor Block (CDB) • • • • • • 44 6.3 Commands - Direct Access Devices • • • • • 46 6.4 Commands - Sequential Access Devices 85 6.5 Commands - Processor Devices • • 118 6.6 Completion Status • • • 126 6.7 Completion Status Byte • • • • • 126 6.8 Sense Bytes • • • • • • • • • • • • • 127 6.9 Extended Sense Bytes • • • • • 128 3 1. Scope This Shugart Associates System Interface defines a local 1/0 Bus specification which can be operated at data rates up to an estimated l.5 megabytes per second, depending upon circuit implementation choices. The primary objective of the interface is to provide host computers with device independence, within a class of devices. Thus, disk drives, tape drives, printers and even communication devices, of different types, can be added to the host computer without requiring modifications to generic system hardware or software. Provision is made for the ready addition of non-generic features and functions. The interface uses "logical" rather than "physical" addressing for all data structures. All data is addressed as logical blocks up to the maximum number of blocks in a device; and, each device can be interrogated to determine how many blocks it contains. Provision is made for cable lengths up to 15 meters using differential drivers and receivers. An in-cabinet mounting using cable lengths up to six meters and single ended drivers and receivers is also available. The interface protocol includes provision for the connection of multiple initiators (SASI bus devices capable of initiating an operation) and multiple targets (SASI bus devices capable of responding to a request to perform an operation). Arbitration (i.e., bus-contention logic) is built into the architecture of SASI. A logical priority system awards interface control to a SASI bus device that wins arbitration. 2. Definitions BUS DEVICE A host computer or peripheral controller which can be attached to the SASI bus. BYTE 8 bits (Octet). COB Command Descriptor Block CONNECT This function occurs when an INITIATOR selects a TARGET, to start an operation. CONTROLLER An SASI BUS DEVICE which controls one or more Peripheral Devices. DISCONNECT This function occurs when a TARGET drops off of the SASI bus, after a connect. ENDING STATUS One byte of information sent from a TARGET to an INITIATOR upon completion of one command or a set of linked commands. INITIATOR A Bus Device which initiates an operation on the SASI bus. INTERMEDIATE STATUS One byte of information sent from a TARGET to an INITIATOR upon completion of each command in a set of linked commands except the last command in the set. LUN Logical Unit Number. ms Millisecond. ns Nanosecond. PASSIVE SIGNAL STATE When a signal is not driven by a SASI BUS DEVICE but is biased by the cable terminators to the non-asserted state. PERIPHERAL DEVICE An 1/0 device such as a disk, printer or magnetic tape unit. RECONNECT This function occurs when a TARGET selects an INITIATOR to continue an operation after a disconnect. SIGNAL ASSERTION Driving a signal to the asserted state. SIGNAL DE-ASSERTION When a signal is either driven by a BUS DEVICE to the non-asserted state or biased by the cable terminators to the non-asserted state. SIGNAL RELEASE See PASSIVE SIGNAL STATE. TARGET A Bus Device on the receiving end of an operation on the SASI Bus. us Microsecond. 3. Introduction The main body of this specification is given in Sections 4-., 5. and 6. Section 4-. This section contains definitions of physical components of interface. It contains all of the specifications associated with obtaining and maintaining control of the SASI bus. 5 Section 5. This section contains definitions of the message protocol which links the SASI bus devices to each other and controls the physical path between them. Section 6. This section contains definition of the operation of the interface in detail, which in turn defines the operation of the bus devices (controllers or hosts). "Standard" level SASI BUS devices shall implement all Standard (S) commands defined in section 6 for the applicable type of device, and may implement various Extended (E), Optional (O), or Vendor unique (V) commands as well. "Extended" level SASI devices shall implement all Standard commands for the applicable device type plus all Extended commands defined in section 6, and may implement various Optional or Vendor unique commands as well. The Extended level devices include commands necessary to write "device independent" software drivers which can "discover" all necessary device attributes without some prior knowledge of the specific device characteristics. The Extended level device also includes commands with a very large address space (232 blocks), adequate for all present and anticipated future devices, while the Standard command set provides for a somewhat restricted address space (221), which is adequate for present devices but may be insufficient for very large future devices (e.g., optical disks). Standard commands may be used with Extended class SASI devices!· however, if the Generic device implements an address space greater than 22 blocks, the portion of the address space above block number 221_1 cannot be accessed via the Standard commands. 4. Physical Path Specification This is the physical path definition of the Shugart Associates System Interface (SASI), which is designed to provide an efficient method of communication between computers and peripheral input/output devices. SASI is implemented using an eight-port, daisy chained bus which includes the following key features: • Single or multiple host com-puter system. • Bus contention handled via distributed-arbitration on a prioritized basis. • Accommodation of multiple peripheral device types. • Asynchronous communication of up to l.5 MBytes/sec, at 15 meters cable length. • Multiple overlap of peripheral device operations. • Direct copy between peripheral devices. • Oriented toward intelligent peripheral devices. 4.1 SASI BUS Communication on the SASI Bus is allowed between only two SASI BUS PORTS at any given time. There is a maximum of eight (8) BUS PORTS. Each port is attached to a SASI DEVICE (e.g., peripheral device controller or host computer). 6 When two SASI BUS DEVICES communicate on the bus, one acts as an INITIATOR and the other acts as a TARGET. The INITIATOR (typically a host computer) starts an operation and the TARGET (typically a peripheral device controller) performs the operation. A SASI BUS DEVICE will usually have a fixed role as an INITIATOR or TARGET, but some may be able to assume either role. An INITIATOR may address up to eight (8) peripheral 1/0 devices that are connected to a TARGET. Three sample system configurations are shown in Figure 1. 7 SIMPLE SYSTEM BASIC TWO CONTROL UNIT SYSTEM COMPLEX SYSTEM Up to 8 SASI DEVICES can be supported by the SASI bus. They can be any combination of host CPUs and intelligent controllers. Figure l Sample SASI Configurations 8 Certain bus functions are assigned to the INITIATOR and certain bus functions are assigned to the TARGET. The INITIATOR may arbitrate for the bus and select a particular TARGET. The TARGET may request the transfer of COMMAND, DAT A, STATUS or other inform a ti on on the bus, and in some cases it may arbitrate for the bus and reselect an INITIATOR for the purpose of continuing some operation. Data transfers on the bus are asynchronous and follow a defined REQUEST/ACKNOWLEDGE handshake protocol. One eight-bit byte of information may be transferred with each handshake. 4.2 SASI Physical Path Philosophy Consider the system shown in Figure 2 where an INITIATOR and TARGET communicate on the SASI bus in order to execute some command (e.g., READ or WRITE data). Since it would be cumbersome to briefly describe these functions at the detailed level of the bus, a higher level of description is used here. Only one of a number of possible partitions of the physical/functional interface is presented for illustration. r-------PHYSICAL PATH-------. Function INITIATOR SASI TARGET Function Origin Path BUS Path Execution -- Control Control ----INITIATOR---- -----·TARGET-----' Figure 2 Physical Path 4.2.1 Pointers In the SASI architecture there are three "conceptual" memory address pointers which point to the next byte of command, data or status to be accessed. The pointers are used to represent the state of the interface. The pointers reside in the INITIATOR path control. After the pointers are initially loaded by the INffiATOR, their movement is under strict control of the TARGET. When the TARGET transfers a byte of information to or from the three areas, the corresponding pointer increments. 9 4.2.2 Typical Functions (External to Path Control) Listed below are some typical functions that affect the physical path but come from outside the physical path boundary. • Establish Path This function allows the INITIATOR to set up the physical path (the physical and logical connection between the INITIATOR and a particular peripheral device for the purpose of executing some peripheral device command). This may involve arbitration to gain control of the SASI bus. The "Establish Path" function requires the peripheral device address (i.e., SASI TARGET bus address and LUN within that address). Also required are the three pointers to the COMMAND, DATA and STATUS areas. A saved copy of these pointers may also be required (see "Reestablish Path" and "Restore Pointers" functions). • Get Command This function allows a TARGET to fetch a COMMAND from the area pointed to by the COMMAND pointer. • Get Data and These functions allow the TARGET to transfer Send Data data to or from the area pointed to by the DATA pointer. • Send Status This allows the TARGET to send STATUS information for a command to the area pointed to by the STATUS pointer. • End of Command This function is sent by the TARGET to indicate that the current command terminated and that valid status has been sent. (Note that the current command may be linked to another command.) • End Path The TARGET uses this function to completely clear the physical path with regards to the currently attached peripheral device. A new path can thus be established for this device. • Break Path This function is done by the TARGET to temporarily break the physical path so that others may use the SASI bus. • Reestablish Path The TARGET uses this function to establish a physical path connection that was temporarily broken by the "Break Path" function. An indication of the INITIATOR 's SASI bus address and the peripheral device address are required. SASI bus arbitration is also required. The INITIATOR must restore the COMMAND, DATA and STATUS pointers. 10 • End of Link This function is sent by the TARGET to indicate that the current command has terminated but that it was linked to another command. The initiator is then allowed to set up its COMMAND, DATA and STATUS pointers to the initial state of the next command. • Save Data Pointer The TARGET uses this function to direct the INITIATOR to save a copy of the current (active) DATA pointer for the currently connected peripheral device. • Restore Pointers The TARGET uses this function to direct the INITIATOR to load the current (active) COMMAND, DATA and STATUS pointers with the last saved values for the currently connected peripheral device. 4.3 BUS Signals There shall be nine (9) control signals and nine (9) data signals (including parity), as listed below: • BSY • SEL • C/D • I/O • MSG • REQ • ACK • ATN • RST • DB (7-0, P) (Data Bus) These signals are described below: • BSY (BUSY) An "or-tied" signal which generally indicates when the bus is being used. • SEL (SELECT) An "or-tied" signal used by an INITIATOR to select a TARGET or by a TARGET to reselect an INITIATOR. • C/D (CONTROL/DATA) A signal driven by a TARGET; it generally indicates whether CONTROL or DATA information is on the data bus. Assertion indicates CONTROL. • 1/0 (INPUT/OUTPUT) A signal driven by a TARGET which controls the direction of data movement on the data bus with respect to an INITIATOR. Assertion indicates INPUT to the INITIATOR. 11 • MSG (MESSAGE) A signal driven by a TARGET during the MESSAGE phase. • REQ (REQUEST) A signal driven by a TARGET to indicate a request for a REQ/ACK data transfer handshake. • ACK (ACKNOWLEDGE) A signal driven by an INITIATOR to indicate an acknowledgement for a REQ/ ACK data transfer handshake. • ATN (ATTENTION) A signal driven by an INffiATOR to indicate the ATTENTION condition. • RST (RESET) An "or-tied" signal which indicates the RESET condition. • DB(7-0,P) (DATA BUS) Eight data bit signals, plus a parity bit signal which form a DAT A BUS. DB(7) is the most significant bit and has the highest priority during ARBITRATION. Bit number, significance and priority decrease downward to DB(O). Data parity DB(P) is odd. The use of parity is a system option (i.e., a system is configured so that all SASI DEVICES on a bus generate parity and have parity detection enabled, or all SASI DEVICES have parity detection disabled or not implemented). Parity is not guaranteed valid during the ARBITRATION phase. Each of the eight data signals DB(7) through DB(O) is uniquely assigned as a TARGET or INITIATOR's own SASI BUS address (i.e., SASI DEVICE ID). This SASI DEVICE ID would normally be assigned and strapped in a SASI DEVICE during system configuration. During ARBITRATION, a SASI DEVICE that desires the use of the SASI BUS asserts its assigned data bit (SASI DEVICE ID) but leaves the other data bits in the passive (non- driven) state. Thus, a SASI DEVICE may use one data bit driver for its SASI DEVICE ID during ARBITRATION and a different driver when driving the complete data bus in other phases of the bus operation. 12 IJ.4 BUS Phases The bus shall have eight (8) distinct operational phases: e BUS FREE Phase • ARBITRATION Phase • SELECTION Phase • RESELECTION Phase • COMMAND Phase • DATA Phase } These phases are collectively termed the INFORMATION TRANSFER phases. e ST A TUS Phase • MESSAGE Phase The bus can never be in more than one phase at any given time. Unless otherwise noted, the following descriptions assume that bus signals which are not mentioned will not be asserted. 4.4.1 Bus Free Phase The BUS FREE phase is used to indicate that no SASI DEVICE is actively using the bus and that the bus is available for subsequent users. The BUS FREE phase is created by the passive release of all bus signals. SASI DEVICES shall detect the BUS FREE phase by the simultaneous (within a DESKEW DELAY) condition of both SEL and BSY not asserted while the RESET condition is not active. During the BUS FREE phase, all active SASI DEVICES shall immediately release all bus signals (within a BUS CLEAR DELAY) after the BSY and SEL signals are released from the bus. 4.4.2 Arbitration Phase (Optional) The ARBITRATION phase allows one SASI DEVICE to gain control of the bus so that this device can assume the role of an INITIATOR or TARGET. Note: Implementation of the ARBITRATION phase is a system option. Systems with no ARBITRATION phase can have only one INITIATOR. The ARBITRATION phase is required for systems which use the RESELECTION phase. 13 After a SASI DEVICE that wants to arbitrate for the bus detects the BUS FREE phase it shall wait a minimum of BUS FREE DELAY and a maximum of BUS SET DELAY in order to assert BSY and its own SASI DEVICE ID on the bus. (The time required for the device to detect the BUS FREE phase shall be included in the measurement of the amount of time that the device waits.) Note: The SASI DEVICE ID shall be asserted on the DAT A BIT signal that corresponds to the device's unique BUS ADDRESS. All other seven DATA BIT drivers in this SASI DEVICE shall be passive. Data parity is not guaranteed valid during ARBITRATION. See 4.7 for restrictions on driving the parity signal. Any SASI DEVICE that is arbitrating shall immediately clear itself from arbitration (within a BUS CLEAR DELAY time) by releasing its BSY and ID signals if SEL is asserted by any other SASI DEVICE that has won arbitration. After an ARBITRATION DELAY (measured from the assertion of BSY) the SASI DEVICE that is arbitrating shall examine the DATA bus. If a higher priority SASI DEVICE ID is on the bus (DB(7) =highest) then the SASI DEVICE shall clear itself from ARBITRATION by releasing its BSY and ID signals. If the SASI DEVICE determines that its own ID is the highest asserted, then it wins ARBITRATION and asserts SEL; (after the assertion of SEL the SASI DEVICE shall wait a minimum of two BUS SETTLE DELAYS before changing the assertion of any bus signals). 4.4.3 Selection Phase The SELECTION phase allows an INITIATOR to select a TARGET for the purpose of initiating some TARGET function(s), (e.g. read or write data). Note: All during the SELECTION phase the 1/0 signal shall not be asserted so that this phase can be distinguished from the RESELECTION phase. In systems where the ARBITRATION phase is not implemented, the INmATOR shall first detect the BUS FREE phase and then wait a minimum of BUS SETTLE DELAY. Then the INmATOR shall assert the DATA BUS with both the desired TARGET's ID and its own INITIATOR ID (see option note at 4.4.3.1). After two DESKEW DELAYS the INITIATOR shall assert SEL. In systems with ARBITRATION implemented, the BSY and SEL signals shall be asserted by an INITIATOR when going from the ARBITRATION phase to the SELECTION phase. Also, the INITIATOR shall wait a minimum of two BUS SETTLE DELAYS. The INITIATOR shall then assert the DATA BUS with both the desired TARGET's ID and its own INITIATOR ID (see option note 4.4.3.1). After these assertions, the INmATOR shall wait at least two DESKEW DELAYS and then release BSY. The INITIATOR shall then wait a BUS SETTLE DELAY before looking for a response from the TARGET. 14 In all systems, the selected TARGET shall detect the simultaneous (within a DESKEW DELAY) condition of SEL and its own SASI DEVICE ID asserted, and both BSY and 1/0 not asserted. The selected TARGET may sample the DATA BUS in order to try to determine the SASI DEVICE ID of the INITIATOR that is doing the selecting (see option note 4.4.3.1). The selected TARGET shall then respond by asserting BSY within a SELECTION RESPONSE TIME of its actual detection of being selected; this is required for the timeout procedure to work. (Note that in systems with parity implemented, the TARGET shall not respond to its SASI DEVICE ID if bad parity is detected on the bus. Note also that if more than two SASI DEVICE IDs are on the bus, the TARGET shall consider this an illegal condition and shall not respond to the selection.) At least two DESKEW DELAYS after the INITIATOR detects BSY sent from the TARGET, it releases SEL and may change the DATA signals. 4.4.3.1 Option: Initiators that do not implement the RESELECTION phase are allowed the option of asserting only one BUS DEVICE ID (the TARGET's ID) during SELECTION. 4.4.3.2 Two optional selection timeout procedures are specified for clearing the SAS.I BUS if the INITIATOR waits a minimum of a SELECTION TIMEOUT PERIOD and there has been no BSY response from the TARGET: (1) The INITIATOR may cause the reset condition. (2) The INITIATOR shall leave SEL asserted and shall deassert all BUS ID signals. If the INITIATOR has not detected a BSY response from the TARGET after trying for at least a SELECTION RESPONSE TIME plus two DESKEW DELAYS, the INITIATOR shall release SEL and let the bus go to the BUS FREE PHASE. 4.4.4 Reselection Phase (Optional) RESELECTION is an optional phase which allows a TARGET to reconnect to an INITIATOR for the purpose of continuing some operation that was previously started by the INITIATOR but was interrupted by the TARGET; (i.e., the TARGET disconnected by allowing a BUS FREE phase to occur before the operation was complete). 4.4.4.l RESELECTION can only be used in systems that have ARBITRATION implemented. After the TARGET has gone through the ARBITRATION phase, it will be asserting BSY and SEL and will have waited a minimum of two BUS SETTLE DELAYS. The TARGET shall then assert the 1/0 signal and also assert the DATA BUS with the desired INITIATOR's ID and its own TARGET ID. After these assertions the TARGET shall wait at least two DESKEW DELAYS and then release BSY. The TARGET shall then wait a BUS SETTLE DELAY before looking for a response from the INITIATOR. 15 The reselected INITIATOR detects the simultaneous (within a DESKEW DELAY) condition of SEL, I/O and its own SASI DEVICE ID asserted, and BSY not asserted. The reselected INITIATOR may sample the DATA BUS to determine the SASI DEVICE ID of the TARGET that is doing the RESELECTION. The reselected INmATOR shall then respond by asserting BSY within a RESELECTION RESPONSE TIME of its actual detection of be reselected; this is required for the timeout procedure to work. (Note that in systems with parity implemented the INITIATOR shall not respond to a DEVICE ID that has bad parity. Note also that if more than two SASI DEVICE IDs are on the bus, the INITIATOR shall consider this an illegal condition and shall not respond to the RESELECTION.) After the TARGET detects BSY sent from the INmATOR, the TARGET shall: (1) also assert BSY and continue the assertion until it is done using the bus; and (2) wait at least two DESKEW DELAYS and then release SEL and possibly change the 1/0 and DATA signals. The reselected INITIATOR detects the release of SEL and shall release its assertion of BSY. 4.4.4.2 Two optional RESELECTION timeout procedures are specified for clearing the SASI BUS if the TARGET waits a minimum of a SELECTION TIMEOUT PERIOD and there has been no BSY response from the INITIATOR: 1. The TARGET may cause the RESET condition. 2. The TARGET shall leave SELECT and 1/0 asserted and shall deassert all BUSY DEVICE ID signals. If the TARGET has not detected a BSY response from the INITIATOR after trying for at least a SELECTION RESPONSE TIME plus two DESKEW DELAYS, the TARGET shall release SEL and 1/0 and let the bus go to the BUS FREE phase. 4.4.5 Information Transfer Phases (COMMAND, DATA, STATUS and MESSAGE Phases) Common Notes: The COMMAND, DATA, STATUS and MESSAGE phases can all be grouped together as the INFORMATION TRANSFER phases because they are all used to transfer data or control information via the DATA BUS. The actual contents of the information is beyond the scope of this section. The C/D, 1/0 and MSG signals are used to distinguish between the different INFORMATION TRANSFER phases. See Table 1. 16 Table 1 Information Transfer Phases SIGNAL DIRECTION OF MSG C/D 1/0 PHASE NAME INFORMATION XFER COMMENT 0 0 0 DAT A OUT PHASE (!NIT to T ARG) } DATA 0 0 l DAT A IN PHASE (!NIT from T ARG) PHASES 0 l 0 COMMAND PHASE (!NIT to TARG) 0 l 1 STATUS PHASE (INIT from TARG) 1 0 0 * l 0 l * l l 0 MSG OUT PHASE (INIT to TARG) } MESSAGE l l 1 MSG IN PHASE (INIT from T ARG) PHASES Notes: 0 = SIGNAL DEASSERTION, 1 = SIGNAL ASSERTION. INIT =INITIATOR, TARG =TARGET. * =Not used. The INFORMATION TRANSFER phases use one or more REQ/ACK handshakes to control the data transfer. Each REQ/ACK allows the transfer of one byte of data. The REQ/ ACK handshake shall start with the TARGET asserting the REQ signal. The INITIATOR shall respond by asserting the ACK signal. The TARGET shall then deassert the REQ signal. The INIDATOR shall again respond by deasserting the ACK signal. If the 1/0 signal is asserted, data will be INPUT into the INITIATOR from the TARGET. The TARGET shall guarantee that valid data is available on the bus at the INmATOR's port at least a DESKEW DELAY before the assertion of REQ is at the INITIATOR's port. The data shall remain valid until the assertion of ACK by the INITIATOR. It shall be the TARGET's responsibility to compensate for the maximum CABLE SKEW and the skew of its own drivers. If the 1/0 signal is NOT asserted, data will be OUTPUT from the INIDATOR into the TARGET. The INITIATOR shall guarantee that valid data is available on the bus at the TARGET's port at least a DESKEW DELAY before the assertion of ACK is at the TARGET's port. Valid data shall remain on the bus until the TARGET deasserts REQ. It shall be the INIDATOR's responsibility to compensate for the maximum CABLE SKEW and the skew of its own drivers. During each INFORMATION TRANSFER phase the BSY line shall remain asserted and the SEL line shall remain released. Additionally, during each INFORMATION TRANSFER phase the TARGET shall continuously envelope the REQ/ ACK handshake(s) with the C/D, 1/0 and MSG signals in such a manner that these control signals are valid for a BUS SETTLE DELAY before the REQ of the first handshake and remain valid until the deassertion of ACK at the end of the last handshake. 17 4.4.6 Command Phase The COMMAND phase allows the TARGET to request command information from the INITIATOR. The TARGET shall assert the C/D signal and deassert the 1/0 and MSG signals during the REQ/ ACK handshake(s) of this phase. 4.4.7 Data Phase The DATA phase is a term that encompasses both the DATA IN phase and the DATA OUT phase. 4.4.7.1 Data In Phase The DATA IN phase allows the TARGET to request that data be INPUT to the INITIATOR from the TARGET. The TARGET shall assert the 1/0 signal and deassert the C/D and MSG signals during the REQ/ ACK handshake(s) of this phase. 4.4.7 .2 Data Out Phase The DATA OUT phase allows the TARGET to request that data be OUTPUT from the INITIATOR to the TARGET. The TARGET shall deassert the C/D, 1/0 and MSG signals during the REQ/ ACK handshake(s) of this phase. 4.4.8 Status Phase The STATUS phase allows the TARGET to request that status information be sent from the TARGET to the INITIATOR. The TARGET shall assert C/D and 1/0 and deassert the MSG signal during the REQ/ ACK handshake(s) of this phase. 4.4.9 Message Phase The MESSAGE phase is a term that encompasses the MESSAGE IN, and MESSAGE OUT phases. 4.4.9.1 Message In Phase The MESSAGE IN phase allows the TARGET to request that MESSAGES be INPUT to the INITIATOR from the TARGET. The TARGET shall assert C/D, 1/0 and MSG during the REQ/ ACK handshake(s) of this phase. 18 4.4.9.2 Message Out Phase The MESSAGE OUT phase allows the TARGET to request that a MESSAGE be OUTPUT from the INITIATOR to the TARGET. The TARGET may invoke this phase at its convenience only in response to the ATTENTION condition created by the INITIATOR. In response to the ATTENTION condition, the TARGET shall assert C/D and MSG and deassert the 1/0 signal during the REQ/ACK handshake(s) of this phase. (See ATTENTION condition description 4.5.1.) 4.4.10 Signal Restrictions Between Phases When the BUS is between two phases, the following restrictions shall apply to the bus signals: • The BSY, SEL, REQ and ACK signals shall not change. • The C/D, 1/0, MSG and DATA signals may change. • The ATN and RST signals may change as defined under the descriptions for the ATTENTION and RESET conditions. 4.5 BUS Conditions The bus has two asynchronous conditions: • ATTENTION Condition. • RESET Condi ti on. These conditions cause certain BUS DEVICE actions and can alter the bus phase sequence. 4.5.1 Attention Condition The ATTENTION condition allows an INITIATOR to inform a TARGET that the INITIATOR has a MESSAGE ready. The TARGET may get this message at its convenience by performing a MESSAGE OUT phase. The INITIATOR creates the ATTENTION condition by asserting ATN at any time except during the ARBITRATION or BUS FREE phases. The TARGET may respond with the MESSAGE OUT phase. The INITIATOR shall keep ATN asserted if more than one byte is to be transferred. The INITIATOR shall deassert the ATN signal during: (1) the RESET condition, or when the bus goes to a BUS FREE phase, or (2) while the REQ signal is asserted and the ACK signal is not yet asserted during the last REQ/ ACK handshake of a MESSAGE OUT phase. 19 4.5.2 Reset Condition The RESET condition is used to immediately clear all SASI DEVICES from the bus and to reset these devices and their associated equipment (as defined in the DEVICE specification). This condition shall take precedence over all other phases and conditions. The RESET condition is created by the assertion of the RST signal. The RESET condition can occur at any time. The RESET condition shall be on for a minimum of a RESET HOLD TIME. Any SASI DEVICE (whether active or not) can create the RESET condition. The RESET condition should be used with caution because of its possible effects. During the RESET condition, no bus signal except RST is guaranteed to be in a valid state. When the RESET condition exists, all SASI DEVICES shall immediately (within a BUS CLEAR DELAY) release all bus signals except RST itself. The specification for the BUS DEVICE determines whether or not a specific 1/0 operation is "cleared" by the RESET condition. T ARGETs which are capable of continuing an 1/0 operation interrupted by the RESET condition shall clear any 1/0 operation that has not yet been completely identified. Completely identified 1/0 operations are those I/Os for which a valid IDENTIFY message has been received following the initial selection. Refer to 5.2 for a definition of the IDENTIFY message and for a description of additional reset capability. Regardless of what bus phase may have been interrupted, following the RESET condition the bus shall go to a BUS FREE phase and then start a normal phase sequence. 4.6 Phase Sequencing The order in which phases are used on the bus follows a prescribed sequence. In all systems, the RESET condition can interrupt any phase and is always followed by the BUS FREE phase. Also, any other phase can be followed by the BUS FREE phase. In systems where the ARBITRATION phase is not implemented, the allowable sequencing shall be as shown in Figure 3. The normal progression would be from the BUS FREE phase to SELECTION, and from SELECTION to one or more of the INFORMATION TRANSFER phases (COMMAND, DAT A, ST ATUS or MESSAGE). In systems where the ARBITRATION phase is implemented, the allowable sequencing shall be as shown in Figure 4-. The normal progression would be from the BUS FREE phase to ARBITRATION, from ARBITRATION to SELECTION or 20 RESELECTION, and from SELECTION or RESELECTION to one or more of the INFORMATION TRANSFER phases (COMMAND, DAT A, STATUS or MESSAGE). There are no restrictions on the sequencing between INFORMATION TRANSFER phases. A phase may even follow itself (e.g., a DAT A phase may be followed by another DATA phase). 21 Figure 3 Phase Sequencing (For systems with no arbitration) Figure 4 Phase Sequencing (For systems with arbitration) 22 4.7 Signal Assertions Two methods of driving SASI Bus signals are specified for use in SASI BUS DEVICES: "or-tied" and "non-or-tied." With both methods, signal assertion shall be achieved by having the signal actively driven to the asserted state. For the "non-or-tied" method, signal non-assertion shall be achieved by driving the signal to the non-asserted state. For the "or-tied" method, signal non-assertion shall be achieved by a passive driver condition which allows the cable terminators to bias the signal to the non-asserted state; the signal shall not be driven to the non-asserted state. Implementation of the BSY, SEL and RST signals shall always be with the "or- tied" method. Implementation of the other signals may be done with either method. Table 2 indicates which type of SASI BUS DEVICE is allowed to source each signal. No attempt is made to show if this source is driving asserted, driving non-asserted or is passive. All Bus Device drivers that are not active sources shall be in the passive state. Note that the RST signal may be sourced by any SASI BUS DEVICE at any time. 23 Table 2 Signal Sources Signal C/D, 1/0 Bus Phase BSY SEL MSG,REQ ACK/ATN DB(7-0,P) Bus Free None None None None None Arbitration All One None None ID Selection I&T Init None Init Init Reselection I&T Targ Targ Init Targ Command Targ None Targ Init Init Data In Targ None Targ Init Targ Data Out Targ None Targ Init Init Status Targ None Targ Init Targ Message In Targ None Targ Init Targ Message Out Targ None Targ lnit lnit All = The signal shall be driven by all SASI BUS DEVICES that are actively arbitrating. ID = A unique data bit (the SASI BUS DEVICE ID) shall be driven by each Bus Device that is actively arbitrating; the other seven data bits shall be released (i.e., not driven) by this Bus Device. The parity bit (DB(P)) may be undriven or driven to the asserted state, but shall never be driven to the non-asserted state during this phase. I&T = The signal shall be driven by the INITIATOR and/or TARGET as specified in 4.4.2 and 4.4.3. Init = If this signal is driven, it shall be driven only by the active INITIATOR. None = The signal shall not be driven by any Bus Device (i.e., all drivers shall be passive). One = The signal shall be driven by the one Bus Device that wins arbitration. Targ = If this signal is driven, it shall be driven only by the active TARGET. 24 4.8 Timing Unless otherwise indicated, the delay time measurements for each SASI DEVICE shall be calculated from signal conditions existing at that device's own SASI BUS PORT. Thus, normally these measurements need not consider delays in the bus cable. • ARBITRATION DELAY (1.7 us) The minimum time a SASI DEVICE must wait from asserting BSY for arbitration until the data bus can be examined to see if arbitration has been won. There is no maximum time. • BUS CLEAR DELAY (650 ns) The maximum time that a SASI DEVICE can take to stop driving all bus signals after: • The release of BSY when going to the BUS FREE phase. • Another SASI DEVICE asserts SEL during the ARBITRATION phase. • BUS FREE DELAY (100 ns) The minimum time that a SASI DEVICE must wait from its detection of the BUS FREE phase until its assertion of BSY when going to the ARBITRATION phase. • BUS SET DELAY (1.1 us) The maximum time a SASI DEVICE can take from its detection of the BUS FREE phase to its assertion of BSY and its ID for the purpose of ARBITRATION. • BUS SETTLE DELAY (450 ns) The minimum time to wait for the BUS to settle after changing certain control signals. e CABLE SKEW (10 ns) The maximum difference in propagation time allowed between any two SASI BUS signals when measured between any two SASI BUS PORTS. • DESKEW DELAY (45 ns) Used to calculate the minimum time required for deskew of certain BUS signals. 25 • RESET HOLD TIME (25 us) The minimum time for which RST is asserted. There is no maximum. • SELECTION (200 us) RESPONSE TIME The maximum time a TARGET (or INITIATOR) shall take from its actual detection of being selected (or re-selected) until asserting a BSY response. • SELECTION (250 ms) (recommended) TIMEOUT PERIOD The minimum time that an INITIATOR (or TARGET) shall wait for a BSY response during the selection (or re-selection) phase before starting the TIMEOUT PROCEDURE. Note that this is only a recommended time period. Consult device specifications for the actual timing requirements. 4.9 Physical Description SASI devices are daisy-chained together using a common cable. Both ends of the cable are terminated. All signals are common between all SASI devices. Two driver/receiver options are available: • Single-ended drivers and receivers, which allow a maximum cable length of six meters (primarily for in-cabinet interconnection). • Differential drivers and receivers, which allow a maximum cable length of fifteen meters (primarily for interconnection outside of a cabinet). 4.9.1 Cable Requirements (Single-Ended Option) A fifty (50) conductor flat cable (or twisted pair flat cable) shall be used. The maximum cable length shall be 6.0 meters. Each SASI BUS PORT shall have a 0.1 meter maximum stub length of any conductor when measured from the bus cable connector. Bus termination may be internal to the SASI BUS DEVICES that are at the ends of the bus cable. The cable pin assignment shall be as shown in Figure 7. Cable Connector Requirements: The connector shall be a fifty (50) conductor flat cable connector which consists of two rows of 25 female contacts on 100 mil centers. See Figure 5. Note that keying is optional. Bus Device Connector Requirements: The connector shall be a fifty (50) conductor connector which consists of two rows of 25 male pins on 100 mil centers. See Figure 6. Note that a shroud and header body are optional. 26 4.9.2 Cable Requirements (Differential Option) A fifty conductor flat cable or twisted pair cable shall be used. The maximum cable length shall be 15 meters. Each BUS PORT shall have a 0.2 meter maximum stub length of any conductor when measured from the bus cable connector. The maximum stub link difference shall be 0.1 meters. Bus termination may be internal to the BUS DEVICES that are at the ends of the bus cable. The cable pin assignment shall be as shown in Figure 8. Connector Requirements: The connector shall be a fifty (50) conductor flat cable connector or equivalent for round cable. The connector shall consist of two rows of 25 pins on 100 mil centers. 27 Figure 5 Cable Connector 28 Figure 6 Bus Device Connector 29 Table 3 Dimensions For Cable Connector --------------------------------------------------------------------------------------- Millimeters Inches Cl 2.5400 0 .100 C2 60.9600 2.400 C3 2.5400 0.100 C4 8.3570 0.329 C5 3.3025 0.130 C6 68.0720 2.680 C7 f>.0960 0.240 C8 8.1530 0.321 C9 13.4870 0.531 ClO 3.8100 0 .150 Cll 1. 2700 0.050 Cl2 6.0960 0.240 Cl3 32.3850 1.275 Cl4 3.3020 0 .130 Cl5 7.4930 0.295 Cl6 2.6670 0.105 Cl7 l.6250 0.064 --------------------------------------------------------------------------------------- Note 1: 50 Contacts on 1.27 mm (0.05 in) staggered spacing = 62.23 mm (2.450 in) Note 2: Tolerances +/- 0.127 mm (.005 in) noncumulative Table 4 Dimensions For Bus Device Connector 3===·-=·=======·==========·============================================================ Millimeters Inches 01 2.54 0.100 02 82.80 3.260 03 2.54 0.100 04 4.83 0.190 05 8.51 0.335 06 72.64 2.860 07 78.74 3 .100 08 13.94 0.549 09 4.19 0.165 010 6.09 0.240 011 6.60 0.260 --------------------------------------------------------------------------------------- Note 1: 50 Contacts on 2.54 mm (0.100 in) spacing = 60.96 mm (2.40 in) Note 2: Tolerances +/- 0.127 mm (.005 in) noncumulative 30 SIGNAL PIN NUMBER -DB(O) 2 -DB(l) 4 -DB(2) 6 -DB(3) 8 -DB(4) 10 -DB(5) 12 -DB(6) 14 -DB(7) 16 -DB(P) 18 GROUND 20 GROUND 22 GROUND 24 *TERMPWR 26 GROUND 28 GROUND 30 -ATN 32 GROUND 34 -BSY 36 -ACK 38 -RST 40 -MSG 42 -SEL 44 -CID 46 -REQ 48 -1/0 50 *Note: This pin is reserved for providing optional terminator power (plus 5 volts). Note: All odd pins except pin 25 shall be connected to ground. Pin 25 should be left open but may be connected to ground. Figure 7 Pin Assignments (Single-Ended Option) 31 SIGNAL PIN NUMBER SIGNAL *SHIELD GROUND 1 2 GROUND +DB(O) 3 4 -DB(O) +DB(l) 5 6 -DB(l) +DB(2) 7 8 -DB(2) +DB(3) 9 10 -DB(3) +DB(4) 11 12 -DB(4) +DB(5) 13 14 -DB(5) +DB(6) 15 16 -DB(6) +DB(7) 17 18 -DB(7) +DB(P) 19 20 -DB(P) GROUND 21 22 GROUND GROUND 23 24 GROUND **TERMPWR 25 26 **TERMPWR GROUND 27 28 GROUND +ATN 29 30 -ATN GROUND 31 32 GROUND +BSY 33 34 -BSY +ACK 35 36 -ACK +RST 37 38 -RST +MSG 39 40 -MSG +SEL 41 42 -SEL +C/D 43 44 -CID +REQ 45 46 -REQ +1/0 47 48 -1/0 GROUND 49 50 GROUND *Optional shield ground on some cables. **These pins are reserved for providing optional terminator power (plus 5 volts). Figure 8 Pin Assignments (Differential Option) 32 4.10 Electrical Description Note: For these measurements, bus termination is assumed to be external to the SASI DEVICE. A typical SASI DEVICE would have the provision for allowing optional internal termination. 4.10.1 Single-Ended Option All signals shall be asserted low. All assigned signals are terminated with 220 ohms to +5 volts (nominal) and 330 ohms to ground at each end of the cable. See Figure 9. All signals use open collector or three-state drivers as noted in Section t.+.7. Each signal driven by a SASI DEVICE shall have the following output characteristics when measured at the device's SASI BUS PORT connection: Signal Assertion =0.0 VDe to O.t.+ Voe Minimum driver output capability = t.+8 ma (sinking) @ 0.5 voe Signal Non-assertion =2.5 Voe to 5.25 Voe Each signal received by a SASI DEVICE shall have the following input characteristics when measured at the device's SASI BUS PORT connection: Signal Assertion = 0.0 voe to 0.8 Voe Maximum total input load = -0.t.+ ma @ O.t.+ voe Signal Non-assertion = 2.0 voe to 5.25 Voe Minimum input hysteresis shall be 0.2 VDe t.+.10.2 Differential Option All bus signals consist of two lines denoted SIGNAL(+) AND SIGNAL(-). A signal is ASSERTED when SIGNAL (+) is more positive than SIGNAL (-), while a signal is NON-ASSERTED when SIGNAL(-) is more positive than SIGNAL(+). All assigned signals shall be terminated at each end of the cable as shown in Figure 10. Each signal driven by a SASI Device shall have the following output characteristics when measured at the device's SASI BUS PORT connection: VoL (Low-level output voltage) = 2.0V Max@ loL = 55 mA. VoH (High-level output voltage) =3.0V Min @ IQH =-55 mA. These two levels shall be as measured between the output terminal and the SASI DEVICE's logic reference. Yoo (Differential voltage = l.OV Min with common-mode voltage ranges from - 7V to +12V). The output characteristics shall additionally conform to EIA Standards Proposal Number lt.+88, Draft 9, dated June 3, 1981. 33 Each signal received by a SASI DEVICE shall have the following input characteristics when measured at the device's SASI BUS PORT connection. (Note: These characteristics include both receivers and passive drivers): Ii (Input current on either input) =±. 2.0 mA max. This requirement shall be met with the input voltage varying between -7V and +12V and with power on or off. Hysteresis = 35 m V Min. The input characteristics shall additionally conform to EIA Standards Proposal Number 14-88, Draft 9, dated June 3, 1981. 34- Figure 9 Termination for Single-Ended Option Figure 10 Termination for Differential Option 35 5. Message System Specification The message system allows communication between an INITIATOR and TARGET for the purpose of physical path management. 5. I Message Protocol All SASI bus devices shall implement the COMMAND COMPLETE message. A functional SASI bus device can be constructed without using any of the other messages if the LUN is specified in the COB. SASI DEVICES indicate their ability to accommodate more than the COMMAND COMPLETE message by asserting or responding to the ATN signal. The INITIATOR indicates this by creating the ATTENTION condition before it releases BSY when going through the SELECTION phase. The TARGET indicates its ability to accommodate more messages by responding to the ATTENTION condition with the MESSAGE OUT phase after going through the SELECTION phase. Normally, the first message sent by the INITIATOR after the SELECTION phase is the IDENTIFY message. This allows the establishment of the physical path for a particular LUN specified by the INITIATOR. After RESELECTION, the T ARGET's first message is also IDENTIFY. This allows the physical path to be re-established for the TARGET's specified LUN. Under some exceptional conditions, an INITIATOR may send the ABORT message or the BUS DEVICE RESET message instead of the IDENTIFY message, as the first me;sage. Whenever a physical path is established in an INITIATOR that can accommodate disconnection and reconnections, the INITIATOR must assure that the present pointers of the physical path are equal to the saved pointers for that particular LUN. Note that BUS DEVICES that implement any message other than the COMMAND COMPLETE message shall also implement the REJECT message. 36 Table 5 Message Codes ============================================================================== Code Description 00 COMMAND COMPLETE 01 EXTENDED MESSAGE FOLLOWS 02 SA VE DAT A POINTER 03 RESTORE POINTERS 04 DISCONNECT 05 INITIATOR DETECTED ERROR 06 ABORT 07 MESSAGE REJECT 08 NO OPERATION 09 MESSAGE PARITY ERROR OA LINKED COMMAND COMPLETE OB LINKED COMMAND COMPLETE (WITH FLAG) oc BUS DEVICE RESET OD to 7F RESERVED 80 to FF IDENTIFY ------------------------------------------------------------------------------ 5.2 Messages The single byte messages are listed along with their coded values (in HEX) and their definitions. COMMAND Sent from a TARGET to an INITIATOR to COMPLETE (00) indicate that the execution of a command (or (Standard) series of linked commands) has terminated and that valid status has been sent to the INITIATOR. Note: This command may have been executed successfully or unsuccessfully as indicated in the status. 37 EXTENDED MESSAGE Sent from either the INITIATOR or TARGET FOLLOWS (01) to indicate that a multiple byte message will (Optional) follow. (See 5.3 for extended messages.) SAVE OAT A POINTER (02) This code is sent from a TARGET to direct (Optional) the INITIATOR to save a copy of the present active data pointer for the currently attached LUN. See 4.2.1 for a definition of pointers. RESTORE POINTERS (03) This code is sent from a TARGET to direct (Optional) the INITIATOR to restore the most recently saved pointers (for the currently attached LUN) to the active state. Pointers to the COMMAND, DATA, and STATUS locations for the LUN will be restored to the active pointers. COMMAND and STATUS pointers will be restored at the beginning of the present operation. The DATA pointer will be restored at the beginning of the operation or at the point at which the last SAVE DATA POINTER message occurred. DISCONNECT (04) Sent from a TARGET to inform an (Optional) INITIATOR that the present physical path is going to be broken (the TARGET will disconnect by releasing BSY), but that a later reconnect will be required in order to complete the current operation. By not sending this message or the COMMAND COMPLETE message before going to BUS FREE (other than as a result of reset), the TARGET indicates that a error condition has occured on the current 1/0. INITIATOR DETECTED Sent from an INffiATOR to inform a ERROR (05) TARGET that an INITIATOR detected (Optional) retryable error has occured since the last time the state of the DAT A POINTER was saved. Note: Commonly, this is for a data parity error. 38 ABORT (06) This message is sent from the INITIATOR to (Optional) direct the TARGET to: 1. Clear any 1/0 for the specified LUN from the selecting INITIATOR 2. Cause the bus to go to the BUS FREE phase. No status or ending message shall be sent for the 1/0. Only the I/Os from a single INffiA TOR are affected. If no LUN has been selected by the IDENTIFY message, then all pending 1/0 operations for the selected TARGET from that INITIATOR will be cleared. MESSAGE REJECT (07) This message is sent from either the (Optional) INITIATOR or TARGET to indicate that the last message it received was inappropriate or has not been implemented. Note: In order to indicate its intentions of sending this message, the INITIATOR must assert the ATN signal prior to its release of ACK for the REQ/ ACK handshake of the message that will be rejected. This provides an interlock so that the TARGET can determine which message will be rejected. This message shall be implemented if any other optional messages are implemented. NO OPERATION (08) Sent from an INITIATOR in response to a (Optional) TARGET's request for a message when the INITIATOR does not currently have any other valid message to send. MESSAGE PARITY Sent from either the INITIATOR or TARGET ERROR (09) to indicate that the last message it received (Optional) had a parity error. Note: In order to indicate its intentions of sending this message, the INITIATOR must assert the ATN signal prior to its release of ACK for the REQ/ ACK handshake of the message that has the parity error. This provides an interlock so that the TARGET can determine which message has the parity error. 39 LINKED COMMAND Sent from a TARGET to an INITIATOR to COMPLETE (OA) indicate that the execution of a linked (Optional) command has completed and that status has been sent. The INITIATOR is then allowed to set up the pointers for the initial state for the next linked command. LINKED COMMAND Sent from a TARGET to an INffiATOR COMPLETE to indicate that the execution of a linked (WITH FLAG) (OB) command (with the FLAG set) has completed (Optional) and that status has been sent. The INITIATOR is then allowed to set up the pointers for the initial state of the next linked command. Typically the FLAG would cause an interrupt in the INITIATOR. BUS DEVICE RESET (OC) This message can be sent from an INITIATOR (Optional) to direct a TARGET to reset all current 1/0 operations on that BUS DEVICE. This message forces the BUS DEVICE to an initial state with no 1/0 operations pending for any INITIATOR. RESERVED (OD to 7F) Reserved for future definition. IDENTIFY (80 to FF) This message can be sent by either the (Optional) INITIATOR or TARGET. It is used to establish the physical path connection between an INITIATOR and TARGET for a particular LUN. Bit 7 This bit is always set to distinguish this message from the others. Bit 6 This bit is only set by the INITIATOR. When it is set, it indicates that the INITIATOR has the ability to accommodate disconnection and reconnection. Bits 5 - 3 Reserved. Bits 2 - 0 These bits specify an LUN address in a TARGET. 40 5.3 Extended Messages Messages whose first byte is 01 HEX are multiple byte messages that take the following form: Table 6 Extended Message Format ----------------------------------------------------------------------------------------------------- BYTE VALUE FUNCTION 00 01 Extended Message Follows 01 nn Extended Message Length 02 yy Extended Message Code The following fiefd is repeated nn-1 times. 00 to nn-1 xx Extended Message Arguments ===================================================================================================== nn = Number of bytes to follow this byte. A value of zero indicates 256 bytes. Table 7 Extended Message Code ====================================================================== Code Description 00 MODIFY DAT A POINTER (Optional) 01 to 7F RESERVED 80 to FF VENDOR UNIQUE ====================================================================== 41 Table 8 Modify Data Pointer ----------------------------------------------------------------------------------------------------- BYTE VALUE FUNCTION 00 01 Extended Message Follows 01 05 Extended Message Length 02 00 Modified Data Pointer Code 03 xx MSB Argument 01./. xx Argument 05 xx Argument 06 xx LSB Argument ----------------------------------------------------------------------------------------------------- This message is sent from the TARGET to the INITIATOR and requests that the signed argument be added (two's complement) to the present value of the data pointer. 6. Command and Status Definition This is the functional definition of the Shugart Associates System Interface, software command set, as well as specific status information related to the various commands. The document defines the logical structure of the 1/0 subsystem, the functions available from the 1/0 subsystem, and how to request these functions. By defining a fixed block structure using a simple logical address scheme, the 1/0 interface can support device independence. In addition, by including the address as a component of the command structure, physical requirements such as SEEK can be imbedded within the basic READ and WRITE requests. Although the interface has been kept quite simple, it has been designed to provide high performance in a multiple host multi-task environment. Functions have been included to enhance random access applications. Multiple block transfers may be accomplished with a single command. By keeping to a minimum the functions essential to communicate via this protocol, a wide range of devices of varying capability can operate in the same environment. The objective of low cost may be satisfied without precluding that of high performance. 4-2 6.1 SASI Functional Control Philosophy This subsection contains examples of the process of obtaining commands, transferring data, and storing results. Command execution itself (the actual implementation of a command) is device specific and is therefore not described. Because subsets of the full architecture may be implemented, optional functions are noted. 6.1.1 Single Command Example A typical operation on the SASI interface is likely to include a single READ to the 1/0 subsystem. This operation will be described in detail starting with a request from the system to the INITIATOR path control logic. Data that is sent back during the READ shall be data that most recently was properly written. The INITIATOR path control logic has an active state and a set of stored states representing active disconnected devices (INITIATOR path control logic without disconnect capability does not require stored states). Upon receipt of an "Establish Path" request from the system, the INITIATOR path control logic sets up the active state for the operation, arbitrates for the bus, and selects the LUN. Once this process is completed, the TARGET function control logic (a functional component of the LUN) assumes control of the operation. The TARGET obtains the command from the INITIATOR (in this case a READ command) via the "Get Command" request to the TARGET path control logic. The TARGET then reads the data from the peripheral device and sends it to the INITIATOR using the "Send Data" function of the TARGET path control logic. At the completion of the READ command, the TARGET stores the command's completion status in the INITIATOR using the "Send Status" path control function. To end the operation, and to acknowledge completion, the TARGET path control logic is given the "End Path" function. 6.1.2 Disconnect Example In the above READ example, the length of time necessary to obtain the data may have been considerable (e.g., requiring a time-consuming physical seek). In order to improve system throughput, the TARGET may disconnect from the INITIATOR, freeing the bus to allow other requests to be sent to other LUNs. To do this, the INITIATOR path control logic must be reselectable and capable of restoring the device state upon reconnection. The TARGET path control logic must be capable of arbitrating for the data bus and reselecting the INITIATOR. After the TARGET has received the READ command (and determined that there will be a delay), it will request, via path control logic, that the INITIATOR save the present state; this state differs from the state when the TARGET was initially selected because the command has already been transferred. The TARGET then requests that the TARGET path control logic break the path (i.e., disconnect). When data is ready to be transferred, the TARGET will request that path control logic reconnect the INITIATOR. As a a result of this reconnection, the INITIATOR path control logic will restore the "saved" state (last saved by the 43 reconnecting LUN); the TARGET will continue (as in the single command example) to finish the operation. At "Path End," the INITIATOR path control logic recognizes that the operation is complete. On those occasions when a TARGET could disconnect without first saving the latest state (as might occur if an error was detected while transferring data to the INITIATOR), the operation may be repeated by either restoring the previous state or by disconnecting without saving the present state. When reconnection is completed, the previous state will be restored. 6.1.3 Linked Command Example The "Link" function defines a relationship between commands which, when combined with the RELATIVE ADDRESS BIT, allows previous oper.ations to modify subsequent commands. "Link" makes high performance I/O functions possible by providing a relative addressing capability and allowing multiple command execution without invoking the functional component of the INITIATOR and without requiring reselection. If the desired data address (in the previously described READ example) is unknown, but a search key defined as some particular bytes of the field is known, then by linking the READ to a SEARCH EQUAL command this data can be quickly and effectively transferred to the INITIATOR. One additional function must be completed prior to requesting the next command. This function, "End of Link," is sent from the TARGET to the INITIATOR to acknowledge command completion. The INITIATOR then updates the stored state so that subsequent requests from the TARGET will reference the next command of the chain. Other than the "End of Link" function and the address modification of linked commands, command processing of linked and single commands is identical. For example, the successful completion of a SEARCH EQUAL will cause the TARGET to fetch the linked READ command from the INITIATOR. If the RELATIVE ADDRESS BIT in the READ command has been set, and the address field at the READ command is set to zero, the TARGET will transfer to the INITIATOR the block that was just successfully searched. 6.2 Command Descriptor Block (CDB) An 1/0 request to a device is performed by passing a Command Descriptor Block (COB) to the TARGET. The first byte of the COB is the command group and operation code. The remaining bytes specify such things as the Logical Unit Numbers (LUN), block starting address, control byte, and the number of blocks to transfer. Commands are in eight categories as follows: • Group 0 - 6 byte commands including control, data transfer and status. • Group 1 - 10 Byte Commands. 44 • Group 2 - Reserved. • Group 3 - Reserved. • Group 4 - Reserved. • Group 5 - 12 Byte Commands. • Group 6 - Vendor Unique Commands. • Group 7 - Vendor Unique Commands. Note: The reserved or RESRV used within this document indicates that it is reserved for future use. Reserved bits that are passed over the interface should be set to zero but not checked for zero by the recipient. Vendor Unique or V.U. used within this document indicates codes which are device specific. 6.2.1 Group Code The Group Code (Bits 7-6-5, Byte 00) can be 0 to 7. 6.2.2 Operation Code The Operation Code (Bits 4-0, Byte 00) for each group allows 32 commands (0 to 31). 6.2.3 Logical Unit Number The Logical Unit Numbers (Bits 7-6-5, Byte 01) designate the primary unit for all groups. Logical Unit Number allows 8 devices per TARGET (0 to 7). This method of device addressing is designed for low-end systems that do not implement separate paths for command and address functions. It is not recommended for more sophisticated implementations, that use the IDENTIFY MESSAGE. 6.2.4 Logical Block Address Group 0 commands contain 21 bit starting block addresses. Extended address commands contain 32 bit starting block addresses. The concept of block implies that the INITIATOR and TARGET have previously agreed to the number of bytes of data to be transferred. 6.2•.5 Number of Blocks The number of blocks to transfer for the command allows 1 to 256 blocks, for standard commands (1 to 255, and 0 indicates 256 blocks). Extended address commands allow 1 to 65,536 blocks. (0 indicates 65,536.) 45 6.2.6 Control Byte (Last Byte in All Commands) • Bit 7-6 Vendor Unique • • Bit 5-2 Reserved • • Bit 1 This bit is only meaningful when Bit 0 is set and means an interrupt is requested for this command in a group of linked commands. • Bit 0 The use of this bit is optional and means an automatic link to the next command upon successful completion of the current command for this INITIATOR. Status shall be returned for each command executed. 6.2.7 Relative Address Bit The RELATIVE ADDRESS BIT (Bit 0 of Byte 1) of the EXTENDED commands is set to indicate that the block address portion of the COB is a two's complement displacement. This displacement is to be added to the Block Address last accessed on the unit to form the Block Address for this 1/0. This feature is only available when linking commands. The feature requires that a previous command in the linked group have accessed a block of data on the device. For an example of the operation of this function, see the section on linked commands. 6.3 Commands - Direct Access Devices 6.3.1 Command Descriptions (Group 00) for Direct Access Devices STANDARD (S) Commands shall be implemented in order to meet the minimum requirement of this specification. EXTENDED (E) Commands shall be implemented in addition to Standard commands to meet the extended requirement of this specification. OPTIONAL (0) Commands, if used, shall be implemented as defined in this specification. VENDOR UNIQUE (V) Commands available for Vendor Unique implementations. See Appendix C for a list of current Vendor Unique commands. See the vendor specifications where compatibility is desired. RESERVED (R) Command codes not currently used are reserved for ANSI definition at a future date. Command operation codes and names are listed in Table 9. 46 Table 9 Command Codes Group 00 Commands ====================================================================== HEX OP Code Type Description ---------------------------------------------------------------------- 00 0 TEST UNIT READY 01 0 REZERO UNIT 02 v 03 s REQUEST SENSE Of./. S/E FORMAT UNIT 05 v 06 v 07 0 RE-ASSIGN BLOCK 08 s READ 09 v OA s WRITE OB 0 SEEK oc v OD v OE v OF v 10 v 11 v 12 E INQUIRY 13 v 1f./. v 15 0 MODE SELECT 16 0 RESER VE UNIT 17 0 RELEASE UNIT 18 0 COPY 19 v lA 0 MODE SENSE lB 0 START/STOP lC 0 RECEIVE DIAGNOSTIC RESULTS lD 0 SEND DIAGNOSTIC lE R lF R ====================================================================== 4-7 Table 10 Test Unit Ready Command ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- BIT 7 6 5 4 3 2 1 0 BYTE 00 0 0 0 0 0 0 0 0 -------i:~i~~-ti~i~-~~~~;-------1-------------FZ~;~~~-;ci------------------------------- 01 ------------------------------------- ----------------------------------------------------- 02 Reserved 03 Reserved 04- Reserved TEST UNIT READY (00) (Optional). Returns zero status if addressed unit is powered on and ready. This is not a request for unit self test. Table 11 Rezero Unit Command ===================================================================================================== BIT 7 6 5 4 3 2 l 0 BYTE 00 0 0 0 0 0 0 0 l -------------------------------------[----------------------------------------------------- 01 Logical Unit Number Reserved ------------------------------------- ----------------------------------------------------- 02 Reserved 03 Reserved 04- Reserved REZERO UNIT (01) (Optional). Sets the unit to a device specific state. 4-8 Table 12 Request Sense Command ----------------------------------------------------------------------------------------------------- BIT 7 6 5 4 3 2 1 0 BYTE 00 0 0 0 0 0 0 1 1 01------- --------L~i~~-l1~i;-~~~b~;-----i-------------~~~~~~-;--------~----E;;~;-~~"d;--------------------------------­ ;--;----- -------------- ~~~:;;;;'d"~::~--------[---------- -i:is-S-~~gi~-;i"Ei'1ock:~dci;:;s~------------------- -------- ___________________________:~--------- ------------------------------------------------------------ 02 Logical Block Address 03 LSB Logical Block Address ============================================================================================================ 127 6.9 Extended Sense Bytes The EXTENDED SENSE BYTES are defined as follows: ------------------------------------------------------------------------------------------------------------ BIT 7 6 .5 3 2 1 0 04 Information Byte 2 05 Information Byte 3 06 Information Byte 4 07 Additional Sense Length 08- NN Additional Sense Bytes --------- -------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------ The Valid bit (bit 7 of byte 0) indicates that the Information Bytes contain valid device type specific information. For type 0 devices, the Information Bytes specify the Logical Block Address associated with the Sense Key. For type 1 devices, the Information Bytes specify the difference (residue) of the requested length and the actual length in either bytes or blocks, as determined by the command. This field is not defined for other device types or if the Valid bit is not set. The Segment Number (Byte 1) contains the current Segment Number if the Extended Sense is in response to a Copy command. Up to 256 segments are suported beginning with segment zero. The Filemark bit (bit 7 of byte 2) indicates that the current 1/0 read a Filemark Block. This bit is only used for type 1 devices. The End of Media bit (bit 6 of byte 2) indicates that an End of Media (End of Tape, Beginning of Tape, Out of Paper, etc.) has occurred on a sequential device. For type 1 devices, this bit indicates End of Tape if the direction was forward and Beginning of Tape if the direction was reverse. Direct Access devices will NOT use this bit; instead, these devices will report attempts to access beyond the end of media as ILLEGAL REQUEST Sense Key (see below). The Incorrect Length Indicator (Bit 5 of Byte 2) indicates that the requested data transfer did not match the length of data on the media. 128 The Sense Key is defined as follows: Sense Key Meaning 0 NO SENSE. There is no sense information currently locked for the designated unit. This means that the last 1/0 from the current host to the addressed LUN completed with a Status that had the Check Condition bit off. This would be the case for a Good 1/0. l RECOVERABLE ERROR. The last 1/0 completed successfully with some recovery action required. Details can be determined by examining the Additional Sense bytes and the Logical Block Address field. 2 NOT READY. The addressed unit cannot be accessed. Operator intervention may be required to correct this condition. 3 MEDIA ERROR. The 1/0 completed with a Non-recoverable error condition which was probably caused by a flaw on the media. HARD\V ARE ERROR. This condition indicates that the TARGET detected a Non-recoverable hardware failure while attempting to perform the command. 5 ILLEGAL REQUEST. This condition indicates that there was an illegal parameter in the Command Descriptor Block or in the additional parameters supplied as data for some commands (FORMAT UNIT, SEARCH DATA, etc.). 6 MEDIA CHANGE. This status indicates that the removeable media may have been changed since the last command was issued to the addressed unit. This status will be reported the FIRST time that a command which reads or writes on the media is issued after the condition is detected and the requested command will not be performed. This condition is cleared on the next 1/0 from the same host. Note: The MEDIA CHANGE condition MUST be reported to ALL hosts in a multi-host system. 7 WRITE PROTECT. This condition indicates that a command which writes on the media was attempted on a "write protected" unit. The write was not performed. 129 Sense Key Meaning 8 DIAGNOSTIC UNIQUE. This condition is provided to report diagnostic unique conditions that should be handled by diagnostic programs instead of the Operating System. This condition should only be used with diagnostic commands. If this status occurs on a non-diagnostic command, the Operating System should treat it the same as HARDWARE ERROR. 9 VENDOR UNIQUE. This condition is provided to report vendor unique conditions. A POWER UP FAILED. This condition indicates that the Bus Device has failed its Power-Up self-test. This condition should be reported to ALL hosts. B ABORTED COMMAND. The TARGET aborted the command. The Operating System may be able to recover by trying the command again. C EQUAL. Will be sent when search data equal is satisfied. D VOLUME OVERFLOW. This condition indicates that a buffered divice has reached the End of Media and data remains in the buffer which has not been written to the media. Recover Buffered Data command(s) may be issued to read the unwritten data from the buff er. E-F These sense keys are reserved The Additional Sense Length (byte 7) specifies the number of Additional Sense Bytes. The Additional Sense Bytes contain device specific data that further define the nature of the Check Condition. 130 APPENDIX A: SHUGART ASSOCIATES SYSTEM INTERFACE "This Appendix is included for informational purposes only and is not a part of the SCSI Standard." "Bus set delay" max time from check of "bus free" (BSY & SELL not asserted) until assertion of "BSY" and 10, (1.1 µs). "Bus free delay" - min time bus must be left free. (100 ns) -"Bus c le.ir delay"~ time to clear from bus after drop of "BSY' for bus free phase or asserting of SEL for arbitration phase by other device. {"~O ,. ~). "Arbitration delay'~ min time from asserting "BSY" to check if arbitration 1s won, 11 7µs• I ~ "Bus settle delay." (450 ns) I l -t.jlI i'Deskew delay:· (45 ns) : I : (Busy) +ssv-------,J ~ ll1 r I:: / u~---:---~j~ll--~1 -~1----:--~--~----- I r I --~systems ~ I I 11 r I L I I ----------1~-----. . . .-+-....' -+1-~t-~~-r~-~t;_:t ~ ~ with J.j ii ..;. -----1.l___.1t. _ _...i__ (Select) +SEL (Control/Data) +CID i JI I ...., ' n - - - l l - -.... t- -- ___, I ;; ,1 11 !. J. I w~~--:--r--------1:i ,f-1,r pr------ 'Read peripheral device ---1~~i-----~~----~-~:-~r~: 1 1 (Input/Output) +110 (Request) +REO (Acknowledge) (Attention) (Message) +ACK +ATN +MSG 1 i I ! ! : H+h4 i qj I I I I l!f I I I I , : I ( I ttH I , ~ iR=T :;I !, rr--; j :: I i r I 1'------+--- 11 l 111 1 m 1I I : I II I .I I I(~ I II II 1I l (Reset) +AST I I I . I I 'J I I l I I' I I I Valid I ~, Valid! I I I First data (read peripheral) 1 I I Last data (read peripheral) I I I 1 I I I DB(?OP)----+---'l'---..;;.A~b•r-it~ra~ti~o~n-ID~·~s--+--..J'---"'ln•it•ia•to-r•l~D•&•t~a~r~e•t~ID;...-.-r'"----.;-...1.---~!).---"-...l.-ff~bl_,_l .....1~~--....m"-1.'----~ ~a£d}, (,1-"•V•a-l•1d._,.r.:~v•;•1~Ji;g,_-+1-----------IJ'..,;...........__.__-+______.,..,')-..;;;...-.~-'----~------.._------+--~ 1 (D t b't) __ Valid aa 1 - · ~t CMD byt~ First data (write peripheral) Last data (write peripheral) Status byte { ~~~~~~~~st~~;et ~~~~~,~~1~~~s" II I Target "requests" data II ~a;~~!sts· I Target "requests" Bus is I initiator I transfer with initiator I initiator to I I initiator to take message available b:RuE~l take status Note: ~===:SELECTION _ _ __. ::=====COMMAND PHASE======~ :-::====DATA PHASE-:;::=:=:=:=::] = l ESTATUS:::::::3 --MESSAGE__j E PHASE~ DB(?){= Most significant bit. PHASE L I i: PHASE ___, I (Interrupt) I FPHASE~ =Highest priority ID for arbitration: Initiator asserts data bus I Target asserts I ._ r I (Ending L s a us 1 I t t I L Target drops I Note·. DB(P) =Data parity (odd). with desired target's ID & its own (initiator) ID. I "C/D and does not assert 1/0" or ~Target asserts "1/0" .and does not assert "CID" or I delay" Target asserts I and I L I Target asserts I I I "BSY"to I Parity 1s not valid during arbitration. After two "deskew delays" f- "MSG .. "MSG .. Target then waits at least a "bus settle before asserting "REQ." 1 I I "C/D" & "1/0 · does not I I "C/D," "1/0," "MSG." After I indicate that the bus is free.· I The use of parity is a system option the initiator drops "BSY" I After a "bus settle delay" tar- L I Target also puts data on the bus at least assert "MSG.. After a "bus I I "bus settle delay" 1t I r Targetand The selected target sees get asserts "REQ.. L "deskew delay" before the assertion of "REQ.. 1 settle delay asserts "REQ" initiator get I Note: In a typical system, a compu- the condition of "BSY" not asserted while "SEL" & its l- I Initiator puts j Initiator takes data and asserts "ACK." L it asserts "REO." I I.- I Target also asserts data I I off the bus (within "bus I ter's host adapter will act as the "initiator," and an 1/0 ID are asserted. The target responds by assert- I data (commecd) on the bus before asserting Data are no longer guaranteed valid LTarget drops "REQ.. Target also I asserts I (message) at I clear delay" I device's control unit will act as the "target." ing "BSY." L "ACK." data (status) at j least a "des- I I time) in preparation After two "deskew delays" I LI Initiator drops "ACK .. I least a "des· j I kew delay" before "REO." I lorasub- I the initiator drops "SEL" andmaychangethedata I Target takesthedata& ~ 1 kew delay· before"REO d• I f- I Note: Message sent here I I sequent arbitration. I lines. I then drops "REQ .. I 1'1itiat r take'> I could indicate Note: After initiator drops "SEL" it is the only I r Initiator drops "ACK" & data ~Target asserts "REQ" and does not assert I "1/0." "CID." or "MSG." 1 data and ass(~rts I-· ACK' I command done interrupt 1 I I ~ Initiator takes I I II bus device that can assert "ACK" and ATN (and the I ._Initiator asserts data & then "ACK" I Data are no long- I data lines if "l/O" is not asserted (indicating out- I r I Target then takes er guaranteed valid II I data and asserts "ACK" I I put from initiator) Note: After the target sees I I the data & then drops "REQ." rData are no longer guaranteed valid. I . t- Target dro~s "REO." r- Data are no long- er guaranteed I I I drop of "SEL," the target is the only bus device that I I-Initiator drops "ACK." L Initiator drops I I valid j I I can assert "BSY," "CID." I 1 I j 'ACK"in response to the j I Target drops "AEQ." j I I "1/0," "MSG,'' "REQ." (and the data lines if "1/0" I drop of "REO " I is asserted (indicating input to the initiator)) L Note: In theory. more than one r Then initiator drops "ACK" in response to the Note: This 1s an example of Note: In systems in which the arbitration phase is not status byte I drop of "REQ." a typical bus sequence. It is not a definition of bus could be se!'ll implemented, the initiator first detects the bus free phase ("BSY" & "SEL" not asserted) and then waits a "bus settle delay" Then the initiator asserts L Note: In theory, protocol the data bus with the desired target's ID and its own (initiator) ID more than one Then after two "deskew delays" the initiator asserts "SEL " message byte Then as described above. the target responds could be sent. with "BSY" and the initiator drops "SEL." Appendix - A. Timing Sequence Example SASI TIMING CHART (Command without Disconnect/Reselect) Al APPENDIX B: "This Appendix is included for informational purposes only and is not a part of the SASI Standard." (To be completed.) Bl APPENDIX C: Typical Bus Phase Sequence "This Appendix is included for informational purposes only and is not a part of the SASI Standard." Table C Read Data Transfer With No Disconnect ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- Signals B s A M c I R A R D D s E T s I I E c s B B Bus Phase y L N G D 0 Q K T (7-0) (P) Comment Bus Free 0 0 0 0 0 0 0 0 0 0 0 BUS is available. Arbitration 1 0 0 0 0 0 0 0 0 ID x INITIATOR II 1 tries to to get BUS. Selection 1 1 1 0 0 0 0 0 0 IDI,T v INITIATOR II 0 1 IDI,T v has BUS II 1 1 IDI,T v and selects II 1 0 x x TARGET. ATN is on. Message Out 1 0 1 1 1 0 0 0 0 x x TARGET II 1 1 0 x x has control II 0 1 0 x x of BUS II 0 l 1 Message v and gets II 0 0 1 x x IDENTIFY II 0 0 0 x x message from INITIATOR. Command 1 0 0 0 1 0 0 0 0 x x TARGET II 1 0 x x gets command II 1 1 Command v from II 0 1 x x INITIATOR. II 0 0 x x (This phase is repeated for each byte.) Cl Table C (continued) Read Data Transfer With No Disconnect ----------------------------------------------------------------------------------------------- Signals B s A M c I R A R D D s E T s I I E c s B B Bus Phase y L N G D 0 Q K T (7-0) (P) Comment Data In 1 0 0 0 0 1 0 0 0 x x TARGET II 1 0 Read Data v sends data II 1 1 x x to INITIATOR. II 0 1 x x (This phase II 0 0 x x is repeated for each byte.) Status 1 0 0 0 1 1 0 0 0 x x TARGET II 1 0 Status v sends II 1 1 x x status to II 0 1 x x INITIATOR. II 0 0 x x Message In 1 0 0 1 1 1 0 0 0 x x TARGET II 1 0 Message v sends II 1 1 x x COMMAND II 0 1 x x COMPLETE II 0 0 x x message to INITIATOR. Bus Free 0 0 0 0 0 0 0 0 0 0 0 BUS is available. =============================================================================================== o = Signal driver is passive. 0 = Signal is not asserted. 1 = Signal is asserted. "Blank" = Signal condition is the same as the previous line. ID = BUS Device ID for arbitration. ID1,T = TARGET's ID and INITIATOR's ID. V = Parity is valid. X =The signals are not guaranteed to be a known state. C2 APPENDIX D: "This Appendix is included for informational purposes only and is not a part of the SASI Standard." (To be completed.) Dl APPENDIX E: "This Appendix is included for informational purposes only and is not a part of the SASI Standard." (To be completed.) El APPENDIX F: Error Codes in Sense Bytes "This Appendix is included for informational purposes only and is not a part of the SASI Standard." Table Fl Error Codes in sense Bytes Class 00 Errors Drive Errors ----------------------------------------------------------------------------------- ERROR CODE 00 NO SENSE 01 NO INDEX SIGNAL 02 NO SEEK COMPLETE 03 WRITE FAULT 04- DRIVE NOT READY 05 DRIVE NOT SELECTED --------------------- 06 --------------------------~---------------------------------- NO TRACK 0 07 MULTIPLE DRIVES SELECTED 08 NO ADDRESS ACKNOWLEDGE 09 MEDIA NOT LOADED OA INSUFFICIENT CAPACITY OB VENDOR UNIQUE OC VENDOR UNIQUE OD VENDOR UNIQUE OE OF Fl Table F2 Error Codes in Sense Bytes Class 01 Errors Target Errors ············-=-=···=····=·==·=··==·====-======·=========··====·==================== ERROR CODE 00 I.D. CRC ERROR 01 UNCORRECTABLE DAT A ERROR 02 I.D. ADDRESS MARK NOT FOUND 03 DAT A ADDRESS MARK NOT FOUND 04 RECORD NOT FOUND 0.5 SEEK ERROR 06 OMA TIMEOUT ERROR 07 WRITE PROTECTED 08 CORRECT ABLE DAT A CHECK 09 BAD BLOCK FOUND OA INTERLEAVE ERROR OB DATA TRANSFER INCOMPLETE OC VENDOR UNIQUE OD VENDOR UNIQUE OE VENDOR UNIQUE OF F2 Table F3 Error Codes in Sense Bytes Class 02 Errors System Related Errors ----------------------------------------------------------------------------------- ---------------------~------------------------------------------------------------ ERROR CODE 00 INVALID COMMAND 01 ILLEGAL BLOCK ADDRESS 02 VENDOR UNIQUE 03 VENDOR UNIQUE 04 VENDOR UNIQUE 05 06 07 08 09 OA OB oc OD OE OF F3 Table F4 Error Codes in Sense Bytes Class 07 Errors Extended Sense ----------------------------------------------------------------------------------- ERROR CODE 00 EXTENDED SENSE 01 02 03 04 05 06 07 08 09 OA OB oc OD OE OF VENDOR UNIQUE SENSE F4 APPENDIX G: Comman~Currently in Use "This Appendix is included for informational purposes only and is not a part of the SASI Standard." The Shugart Associates Systems Interface (SASI) is an ANSI X3T9.2 project with the objective to inter-connect multiple small computers and peripherals. The SASI is oriented to a future environment of distributed logic which is device- independent. The original working document for the SASI was based on the Shugart Associates System Interface (SASI). The SASI is currently in use by a number of manufacturers and there was a strong industry desire to enhance and extend the SASI. Different manufacturers were beginning to evolve from the SASI in different ways, and this was the root of the desire for an ANSI interface, so that all could grow to a common goal. At this time (circa 1982) there are a number of different SASI implementations which have many device-dependent. characteristics embodied therein. Even though the functional differences affect interchangeability there is a high degree of hardware compatibility. It is the intention of X3T9.2 to ensure that the current implementations of the SASI will form a viable, compatible subset of the SASI functions as device- dependencies move towards device-independence. The addendums in this appendix represents a composite of all commands known to be currently in use by different manufacturers (presented in the same form as Table 2 in Section 6.3) and descriptions provided by SASI manufacturers of their command repertoires. Addendum: I Summary of Commands in Use (To be completed) II Cynthia Peripherals (See: ANSI X3T9.2/82-ll) III DTC (See: ANSI X3T9.2/82-12) IV OMTI (See ANSI X3T9.2/82-13) Gl