1、INTERNATIONAL STANDARD ISO/IEC 9316 Second edition 1995-l I-01 Information technology - Small Computer System Interface-2 Technologies de /information - Interface (Small Computer System-Z) Reference number ISO/IEC 9316:1995(E) ISO/IEC 9316:1996(E) Contents Page 1 Scope . 1 2 Normative references 2 3
2、 Definitions, symbols and abbreviations . 3 3.1 Definitions . 3 3.2 Symbols and abbreviations 5 4General 6 4.1 Overview . 6 4.2 Conventions . 7 5 Physical characteristics 5.1 Physical description . 5.2 Cable requirements 5.2.1 Single-ended cable 5.2.2 Differential cable 5.2.3 Cable requirements for
3、fast synchronous data transfer 5.3 Connector requirements 5.3.1 Non-shielded connector requirements 5.3.1 .l Non-shielded connector alternative 1 - A cable 5.3.1.2 Non-shielded connector alternative 2 - A cable 5.3.1.3 Non-shielded connector - B cable 5.3.2 Shielded connector requirements 5.3.2.1 Sh
4、ielded connector alternative 1 - A cable 5.3.2.2 Shielded connector alternative 2 - A cable 5.3.2.3 Shielded connector - B cable . 6 6 6 6 9 9 9 9 9 10 10 15 15 15 15 20 5.3.3 Connector contact assignments . . . . , . . . , . . . . , . . , . , . . . . . . . . , , 0 ISO/IEC 1995 All rights reserved.
5、Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher. ISO/IEC Copyright Office. Case postale 56 * CH-1211 Geneve 20 l Switzer
6、land Printed in Switzerland ii OISO/IEC ISO/IEC 9316:1995(E) 5.4 Electrical description . 25 5.4.1 Single-ended alternative . 25 5.4.1 .l Output characteristics . 25 5.4.1.2 Input characteristics 25 5.4.2 Differential alternative . 26 5.4.2.1 Output characteristics . 26 5.4.2.2 Input characteristics
7、 26 5.4.3 Terminator power 26 5.4.4 RESERVED lines 29 5.5SCSlbus . 30 5.6 SCSI bus signals . 32 5.6.1 Signal values . 33 5.6.2 OR-tied signals . 33 5.6.3 Signal sources 33 5.7 SCSI bus timing 34 5.7.1 Arbitration delay 35 5.7.2Assertion period 35 5.7.3 Bus clear delay . 35 5.7.4 Bus free delay . 35
8、5.7.5Bus set delay 36 5.7.6Bus settledelay 36 5.7.7 Cable skew delay . 36 5.7.6 Data release delay 36 5.7.9 Deskew delay 36 5.7.10 Disconnection delay 36 5.7.11 Hold time 36 5.7.12 Negation period . 36 5.7.13 Power-on to selection time . 36 5.7.14 Reset to selection time 36 5.7.15 Reset hold time 37
9、 5.7.16 Selection abort time 37 5.7.17 Selection time-out delay . 37 5.7.16 Transfer period 37 5.6 Fast synchronous transfer option . 37 5.6.1 Fast assertion period 37 5.6.2 Fast cable skew delay 37 5.6.3 Fast deskew delay 37 5.6.4 Fast hold time 37 5.6.5 Fast negation period . 36 6 Logical characte
10、ristics . 39 6.1 SCSlbus phases . 39 6.1.1 BUS FREE phase 39 6.1.2 ARBITRATION phase . 40 6.1.3 SELECTION phase . 40 6.1.3.1 SELECTION time-out procedure . 41 6.1.4 RESELECTION phase 41 6.1.4.1 RESELECTION . 41 6.1.4.2 RESELECTION time-out procedure . 42 6.1.5 Information transfer phases 42 6.1.5.1
11、Asynchronous information transfer 43 6.1.5.2 Synchronous data transfer 43 6.1.5.3 Wide data transfer 44 . . . III ISO/IEC 9316:1995(E) OISO/IEC 6.1.6 COMMAND phase . 46 6.1.7Dataphase 46 6.1.7.1 DATAIN phase 46 6.1.7.2DATAOUT phase 46 6.1.6 STATUS phase . 46 6.1.9Messagephase . 46 6.1.9.1 MESSAGE IN
12、 phase 46 6.1.9.2 MESSAGE OUT phase 46 6.1 .lO Signal restrictions between phases 47 6.2SCSlbusconditions . 47 6.2.1 Attention condition . 47 6.2.2Resetcondition . 46 6.2.2.1 Hard reset alternative . 49 6.2.2.2 Soft reset alternative 49 6.3 SCSI bus phase sequences . 50 6.4 SCSI pointers 51 6.5 Mess
13、age system description . 52 6.6 Messages . 55 6.6.1ABORT . 55 6.6.2ABORTTAG 55 6.6.3 BUS DEVICE RESET . 56 6.6.4 CLEAR QUEUE . 56 6.6.5 COMMAND COMPLETE . 56 6.6.6 DISCONNECT 56 6.6.7 IDENTIFY 57 6.6.6 IGNORE WIDE RESIDUE 56 6.6.9 INITIATE RECOVERY . 56 6.6.10 INITIATOR DETECTED ERROR . 59 6.6.11 LI
14、NKED COMMAND COMPLETE 59 6.6.12 LINKED COMMAND COMPLETE (WITH FLAG) . 59 6.6.13 MESSAGE PARITY ERROR 59 6.6.14 MESSAGE REJECT . 59 6.6.15 MODIFY DATA POINTER Message 60 6.6.16 NO OPERATION 60 6.6.17 Queue tag messages 60 6.6.17.1 HEAD OF QUEUE TAG . 61 6.6.17.2 ORDERED QUEUE TAG 61 6.6.17.3 SIMPLE Q
15、UEUE TAG . 61 6.6.16RELEASERECOVERY . 61 6.6.19 RESTORE POINTERS 61 6.6.20 SAVE DATA POINTER . 62 6.6.21 SYNCHRONOUS DATA TRANSFER REQUEST . 62 6.6.22 TERMINATE I/C PROCESS 64 6.6.23 WIDE DATA TRANSFER REQUEST 64 7 SCSI commands and status 67 7.1 Command implementation requirements 67 7.1.1Reserved
16、67 7.1.2 Operation code types . 67 7.2 Command descriptor block 66 7.2.1 Operation code . 69 7.2.2 Logical unit number 70 7.2.3 Logical block address 70 iv OISO/IEC ISO/IEC 9316:1995(E) 7.2.4 Transfer length 70 7.2.5 Parameter list length . 70 7.2.6 Allocation length 70 7.27 Control field 71 7.3 Sta
17、tus 71 7.4 Command examples . 73 7.4.1 Single command example . 73 7.4.2 Disconnect example 73 7.4.3 Linked command example . 74 7.5 Command processing considerations and exception conditions 74 7.5.1 Programmable operating definition . 74 7.5.2 Incorrect initiator connection . 75 7.5.3 Selection of
18、 an invalid logical unit 75 7.5.4 Parameter rounding 76 7.5.5 Asynchronous event notification 76 7.5.6 Unexpected reselection . 77 7.6 Contingent allegiance condition 78 7.7 Extended contingent allegiance condition . 78 7.8 Queued I/O processes . 79 7.8.1 Untagged queuing . 79 7.8.2Tagged queuing 79
19、 7.8.3 Example of queued I/O process . 80 7.8.3.1 Typical sequences for tagged queuing 81 7.8.3.2 Example of tagged queuing . 81 7.9 Unit attention condition 83 8 All device types . 84 8.1 Model for all device types . 84 8.1 .l SCSI addresses . 84 8.1.1 .l SCSI device address 84 8.1.1.2 Logical unit
20、s 84 8.1.1.3 Target routines 84 8.1.2 Commands implemented by all SCSI devices . 84 8.1.2.1 Using the INQUIRY command . 85 8.1.2.2 Using the REQUEST SENSE command 85 8.1.2.3 Using the SEND DIAGNOSTIC command 85 8.1.2.4 Using the TEST UNIT READY command . 85 8.2 Commands for all device types . 85 8.2
21、.1 CHANGE DEFINITION command 86 8.2.2 COMPARE command . 88 8.2.3 COPY command 89 8.2.3.1 Errors detected by the managing SCSI device . 90 8.2.3.2 Errors detected by a target . 91 8.2.3.3 COPY function code OOh and Olh 91 8.2.3.4 COPY function code 02h . 92 8.2.3.5 COPY function code 03h . 93 8.2.3.6
22、 COPY function code 04h . 94 8.2.3.7 Copies with unequal block lengths . 94 8.2.4 COPY AND VERIFY command 95 8.2.5 INQUIRY command 96 8.2.5.1 Standard INQUIRY data 97 8.2.5.2Vital product data 100 8.2.6 LOG SELECT command . 101 V ISO/IEC 9316:1995(E) OISO/IEC 8.2.7 LOG SENSE command . 103 8.2.8 MODE
23、 SELECT(G) command . 104 8.2.9 MODE SELECT(lO) command 106 8.2.10 MODE SENSE(G) command . 106 8.2.10.1 Current values 107 8.2.10.2Changeablevalues 108 8.2.10.3 Default values 108 8.2.10.4 Saved values . 108 8.2.10.5 Initial responses 108 8.2.11 MODE SENSE(lO) command 109 8.2.12 READ BUFFER command 1
24、09 8.2.12.1 Combined header and data mode (OOOb) . 110 8.2.12.2Vendor-specific mode (OOib) . 110 8.2.12.3 Data mode (OlOb) . 110 8.2.12.4Descriptor mode (Ollb) . 111 8.2.13 RECEIVE DIAGNOSTIC RESULTS command 112 8.2.14 REQUEST SENSE command 112 8.2.14.1 Sense-key specific . 116 8.2.14.2 Deferred err
25、ors . 117 8.2.14.3 Sense key and sense code definitions 119 8.2.15 SEND DIAGNOSTIC command . 125 8.2.16 TEST UNIT READY command . 126 8.2.17 WRITE BUFFER command 127 8.2.17.1 Combined header and data mode (OOOb) . 128 8.2.17.2Vendor-specific mode (OOlb) . 128 8.2.17.3 Data mode (OlOb) . 128 8.2.17.4
26、 Download microcode mode (100b) 129 8.2.17.5 Download microcode and save mode (101b) . 129 8.3 Parameters for all device types . 129 8.3.1 Diagnostic parameters . 129 8.3.1 .l Supported diagnostic pages 130 8.3.2 Log parameters . 131 8.3.2.1 Buffer over-run/under-run page 134 8.3.2.2 Error counter p
27、ages 135 8.3.2.3 Last n error events page . 136 8.3.2.4 Non-medium error page . 136 8.3.2.5Supportedlogpages13 6 8.3.3 Mode parameters 137 8.3.3.1 Control mode page . 140 8.3.3.2 Disconnect-reconnect page . 142 8.3.3.3 Peripheral device page 144 8.3.4 Vital product data parameters 144 8.3.4.1 lSO/IE
28、C 646 implemented operating definition page 145 8.3.4.2 ISO/IEC 646 information page . 146 8.3.4.3 Implemented operating definition page 146 8.3.4.4 Supported vital product data pages . 148 8.3.4.5 Unit serial number page . 149 9 Direct-access devices . 150 9.1 Direct-access device model . 150 9.1 .
29、l Removable medium 150 9.1.2 Logical blocks 150 9.1.3Ready state 151 vi OISO/IEC ISO/IEC 9316:1995(E) 9.1.4 Initialization 151 9.1.5 Medium defects . 151 9.1.6Datacache 152 9.1.7 Reservations . 153 9.1.8 Seek and rezero 154 9.1.9 Notched drives 154 9.1 .lO Rotational position locking 154 9.1 .l 1 Re
30、lative addressing . 154 9.1.12 Error reporting . 154 9.1.13 Examples . 155 9.1.13.1 Rotating media . 155 9.1.13.2 Sequential media 156 9.1.13.3 Memory media . 156 9.2 Commands for direct-access devices. 157 9.2.1 FORMAT UNIT command 158 9.2.1.1 Defect list formats 162 9.2.1.2 Initialization pattern
31、option 163 9.2.2 LOCK UNLOCK CACHE command . 165 9.2.3 PRE-FETCH command 166 9.2.4 PREVENT ALLOW MEDIUM REMOVAL command 167 9.2.5 READ(06) command . 168 9.2.6 READ(lO) command . 168 9.2.7 READ CAPACITY command 169 9.2.8 READ DEFECT DATA command . 171 9.2.9 READ LONG command . 173 9.2.10 REASSIGN BLO
32、CKS command 174 9.2.11 RELEASE command . 175 9.2.11.1 Logical unit release 176 9.2.11.2 Extent release 176 9.2.11.3 Third-party release. 176 9.2.12 RESERVE command 177 9.2.12.1 Logical unit reservation . 177 9.2.12.2 Extent reservation . 177 9.2.12.3 Third-party reservation . 179 9:2.12.4 Supersedin
33、g reservations . 180 9.2.13 REZERO UNIT command . 180 9.2.14 SEARCH DATAcommands 181 9.2.14.1 SEARCH DATAEQUALcommand . 183 9.2.14.2 SEARCH DATA HIGH command 183 9.2.14.3 SEARCH DATA LOW command . 183 9.2.15 SEEK(06) and SEEK(lO) commands . 183 9.2.16SETLlMlTScommand . 184 9.2.17 START STOP UNIT com
34、mand . 185 9.2.18 SYNCHRONIZE CACHE command 186 9.2.19 VERIFY command 187 9.2.20 WRITE(06) command 188 9.2.21 WRITE(10) command 188 9.2.22 WRITE AND VERIFY command . 189 9.2.23 WRITE LONG command 190 9.2.24 WRITE SAME command 191 9.3 Parameters for direct-access devices 192 9.3.1 Diagnostic paramete
35、rs 192 9.3.1 .l Translate address page - SEND DIAGNOSTIC 192 vii ISO/IEC 9316:1995(E) lSO/lEC 9.3.1.2 Translate address page - RECEIVE DIAGNOSTIC 193 9.3.2 Log parameters . 194 9.3.3 Mode parameters 194 9.3.3.1 Caching page 196 9.3.3.2 Flexible disk page 199 9.3.3.3 Format device page 202 9.3.3.4 Me
36、dium types supported page 205 9.3.3.5 Notch and partition page . 206 9.3.3.6 Read-write error recovery page 207 9.3.3.7 Rigid disk drive geometry page 214 9.3.3.8 Verii error recovery page 215 9.4 Definitions specific to direct-access devices . 217 10 Sequential-access devices . 218 10.1 Sequential-
37、access device model . 218 10.1 .l Physical elements 218 10.1.2 Data storage characteristics . 219 10.1.3 Partitions within a volume . 221 10.1.4 Logical elements within a partition 222 10.1.5Data buffering . 223 10.1.6 Recorded object descriptors (block identifiers) . 224 10.1.7 Direction and positi
38、on definitions . 224 10.1.8 Error reporting . 225 10.2 Command descriptions for sequential-access devices . 226 10.2.1ERASEcommand 227 10.2.2 LOAD UNLOAD command 228 10.2.3 LOCATE command . 229 10.2.4READcommand . 230 10.2.5 READ BLOCK LIMITS command 232 10.2.6 READ POSITION command . 233 10.2.7 REA
39、D REVERSE command . 235 10.2.8 RECOVER BUFFERED DATA command 236 10.2.9 RELEASE UNIT command 237 10.2.9.1 Third-party release 237 10.2.10 RESERVE UNIT command . 238 10.2.10.1 Third-party reservation . 238 10.2.10.2 Superseding reservations 239 10.2.11 REWIND command 239 10.2.12SPACEcommand 240 10.2.
40、13 VERIFY command . 242 10.2.14 WRITE command 243 10.2.15 WRITE FILEMARKS command 244 10.3 Parameters for sequential-access devices 246 10.3.1 Diagnostic parameters . 246 10.3.2 Log parameters 246 10.3.3 Mode parameters . 246 10.3.3.1 Device configuration page . 250 10.3.3.2 Medium partition page(l)
41、 253 10.3.3.3 Medium partition page(2-4) 254 10.3.3.4 Read-write error recovery page . 254 10.4 Definitions specific to sequential access devices . 256 11 Commands for printer devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 . . . VIII OISO/IEC ISO/IEC 9316:1995(E) 11 .l M
42、odel for printer devices 257 11.2 Commands for printer devices 258 11.2.1 FORMAT command . 259 11.2.2 PRINT command . 260 11.2.3 RECOVER BUFFERED DATA command 260 11.24 SLEW AND PRINT command 261 11.2.5 STOP PRINT command 262 11.2.6 SYNCHRONIZE BUFFER command . 262 11.3 Parameters for printer device
43、s . 263 11.3.1 Diagnostic parameters . 263 11.3.2 Log parameters 263 11.3.3 Mode parameters . 263 11.3.3.1 Parallel printer interface page 264 11.3.3.2 Printer options page . 266 11.3.3.3 Serial printer interface page 269 12 Processor devices . 271 12.1 Model for processor devices 271 12.1 .l Host-t
44、o-host communication, SEND only 272 12.1.2 Host-to-host communication, SEND and RECEIVE 272 12.1.3 Host-to-special-output peripheral . 272 12.1.4 Host-to-special-input peripheral 272 12.2 Commands for processor devices 273 12.2.1 RECEIVE command . 273 12.2.2 SEND command . 274 12.3 Parameters for pr
45、ocessor devices 275 12.3.1 Diagnostic parameters . 275 12.3.2 Log parameters 275 12.4 Definitions specific to processor devices . 275 13 Write-once devices 276 13.1 Model for write-once devices 276 13.1 .l Logical blocks . 276 13.1.2 Initialization . 276 13.1.3 Physical medium defects . 276 13.1.4 E
46、rror reporting . 276 13.2 Commands for write-once devices 277 13.3 Parameters for write-once devices 279 13.4 Definitions specific to write-once devices . 279 14 CD-ROM devices 280 14.1 Model for CD-ROM devices . 280 14.1 .l CD-ROM media organization 280 14.1.2 CD-ROM physical data format . 283 14.1
47、.2.1 Frame format for audio . 283 14.1.2.2 Sector format for data 283 14.1.2.3 Sub-channel information formats 284 14.1.3 CD Audio error reporting . 285 14.1.4 CD-ROM ready condition/not ready condition 285 14.1.5 CD-ROM address reporting formats (MSF bit) 285 14.1.6 Sensing support for CD-audio com
48、mands. 286 14.1.7 Error reporting . 286 14.2 Commands for CD-ROM devices . 287 ix ISO/IEC 9316:1995(E) OISO/IEC 14.2.1 PAUSE RESUME command . 288 14.2.2 PLAY AUDIO(lO) command . 289 14.2.3 PLAY AUDIO(12) command . 290 14.2.4 PLAY AUDIO MSF command 290 14.2.5 PLAY AUDIO TRACK INDEX command . 292 14.2
49、.6 PLAY AUDIO TRACK RElATIVE(10) command . 293 14.2.7 PLAY AUDIO TRACK RElATIVE(l2) command . 294 14.2.8 READ CD-ROM CAPACITY command 294 14.2.9 READ HEADER command 296 14.2.10 READ SUB-CHANNEL command 297 14.2.10.1 Sub-Q channel data format . 298 14.2.10.2 CD-ROM current position data format . 302 14.2.10.3 Media catalogue number data format 302 14.2.10.4 Track international standard recording code data format . , . . , . . 303 14.2.11 READ TOC command . 305 14.3 Parameters for CD-ROM devices . 307 14.3.1 Diagnostic parameters . 307 14.3.2 Log parameters 307 14.3.3 Mode parameters . 307 1