1、 ISO/IEC 24739-1 Edition 1.0 2009-09 INTERNATIONAL STANDARD Information technology AT attachment with packet interface-7 Part 1: Register delivered command set, logical register set (ATA/ATAPI-7 V1) ISO/IEC 24739-1:2009(E) THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2009 ISO/IEC, Geneva, Switz
2、erland All rights reserved. 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 either IEC or IECs member National Committee in the countr
3、y of the requester. If you have any questions about ISO/IEC copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or your local IEC member National Committee for further information. IEC Central Office 3, rue de Varemb CH-1211 Geneva 20
4、Switzerland Email: inmailiec.ch Web: www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standards for all electrical, electronic and related technologies. About IEC publications The technical conte
5、nt of IEC publications is kept under constant review by the IEC. Please make sure that you have the latest edition, a corrigenda or an amendment might have been published. Catalogue of IEC publications: www.iec.ch/searchpub The IEC on-line Catalogue enables you to search by a variety of criteria (re
6、ference number, text, technical committee,). It also gives information on projects, withdrawn and replaced publications. IEC Just Published: www.iec.ch/online_news/justpub Stay up to date on all new IEC publications. Just Published details twice a month all new publications released. Available on-li
7、ne and also by email. Electropedia: www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 20 000 terms and definitions in English and French, with equivalent terms in additional languages. Also known as the International Electrotechnical Vo
8、cabulary online. Customer Service Centre: www.iec.ch/webstore/custserv If you wish to give us your feedback on this publication or need further assistance, please visit the Customer Service Centre FAQ or contact us: Email: csciec.ch Tel.: +41 22 919 02 11 Fax: +41 22 919 03 00 ISO/IEC 24739-1 Editio
9、n 1.0 2009-09 INTERNATIONAL STANDARD Information technology AT attachment with packet interface-7 Part 1: Register delivered command set, logical register set (ATA/ATAPI-7 V1) INTERNATIONAL ELECTROTECHNICAL COMMISSION XH ICS 35.200 PRICE CODE ISBN 2-8318-1061-2 2 24739-1 ISO/IEC:2009(E) CONTENTS FOR
10、EWORD.7 INTRODUCTION.9 1 Scope.11 2 Normative references .12 3 Definitions, abbreviations and conventions .13 3.1 Definitions and abbreviations 13 3.2 Abbreviations 21 3.3 Conventions 22 4 General operational requirements.28 4.1 Command delivery.28 4.2 Register delivered data transfer command sector
11、 addressing 28 4.3 General feature set .29 4.4 PACKET Command feature set .31 4.5 Power Management feature set .32 4.6 Advanced Power Management feature set.35 4.7 Security Mode feature set35 4.8 SMART (self-monitoring, analysis and reporting technology) feature set42 4.9 Host Protected Area feature
12、 set 43 4.10 CompactFlash Association (CFA) feature set47 4.11 Removable Media Status Notification and Removable Media feature sets .48 4.12 Power-Up in Standby feature set .50 4.13 Automatic Acoustic Management (AAM) feature set 50 4.14 48-bit Address feature set .51 4.15 Device Configuration Overl
13、ay feature set 53 4.16 Media Card Pass Through Command feature set.56 4.17 Streaming feature set 57 4.18 General Purpose Logging feature set 59 4.19 Overlapped feature set59 4.20 Queued feature set60 4.21 Long physical sector feature set for non-packet devices61 4.22 Long logical Sector feature set
14、for non-packet devices62 4.23 Devices implementing the Long Physical Sector Feature Set and the Long Logical Feature Sector Set 65 5 I/O register descriptions .65 5.1 Overview.65 5.2 Alternate Status register65 5.3 Command register.66 5.4 Data port.66 5.5 Data register .67 5.6 Device register 67 5.7
15、 Device control register 68 5.8 Error register.69 5.9 Features register.69 5.10 LBA High/Byte Count High register70 24739-1 ISO/IEC:2009(E) 3 5.11 LBA Low register.70 5.12 LBA Mid/Byte Count Low register 71 5.13 Sector Count/Interrupt Reason register .71 5.14 Status register.71 5.15 Signature and pe
16、rsistence.74 5.16 Single device configurations75 6 Command descriptions .76 6.1 Overview.76 6.2 CFA ERASE SECTORS.78 6.3 CFA REQUEST EXTENDED ERROR CODE79 6.4 CFA TRANSLATE SECTOR 82 6.5 CFA WRITE MULTIPLE WITHOUT ERASE .84 6.6 CFA WRITE SECTORS WITHOUT ERASE86 6.7 CHECK MEDIA CARD TYPE .88 6.8 CHEC
17、K POWER MODE.90 6.9 CONFIGURE STREAM91 6.10 DEVICE CONFIGURATION .94 6.11 DEVICE RESET 108 6.12 DOWNLOAD MICROCODE .109 6.13 EXECUTE DEVICE DIAGNOSTIC .111 6.14 FLUSH CACHE .113 6.15 FLUSH CACHE EXT115 6.16 GET MEDIA STATUS 118 6.17 IDENTIFY DEVICE119 6.18 IDENTIFY PACKET DEVICE .144 6.19 IDLE158 6.
18、20 IDLE IMMEDIATE160 6.21 MEDIA EJECT.163 6.22 MEDIA LOCK 164 6.23 MEDIA UNLOCK .166 6.24 NOP168 6.25 PACKET169 6.26 READ BUFFER .175 6.27 READ DMA .176 6.28 READ DMA EXT178 6.29 READ DMA QUEUED181 6.30 READ DMA QUEUED EXT 185 6.31 READ LOG EXT 191 6.32 READ MULTIPLE 204 6.33 READ MULTIPLE EXT.207 6
19、.34 READ NATIVE MAX ADDRESS.210 6.35 READ NATIVE MAX ADDRESS EXT .211 6.36 READ SECTOR(S) 213 6.37 READ SECTOR(S) EXT 216 6.38 READ STREAM DMA EXT.218 6.39 READ STREAM EXT .223 6.40 READ VERIFY SECTOR(S).227 6.41 READ VERIFY SECTOR(S) EXT .229 6.42 SECURITY DISABLE PASSWORD232 4 24739-1 ISO/IEC:2009
20、(E) 6.43 SECURITY ERASE PREPARE 233 6.44 SECURITY ERASE UNIT.235 6.45 SECURITY FREEZE LOCK .237 6.46 SECURITY SET PASSWORD239 6.47 SECURITY UNLOCK.241 6.48 SERVICE 243 6.49 SET FEATURES244 6.50 SET MAX 251 6.51 SET MAX ADDRESS EXT .259 6.52 SET MULTIPLE MODE262 6.53 SLEEP 264 6.54 SMART .266 6.55 ST
21、ANDBY .297 6.56 STANDBY IMMEDIATE .299 6.57 WRITE BUFFER300 6.58 WRITE DMA302 6.59 WRITE DMA EXT 304 6.60 WRITE DMA FUA EXT 308 6.61 WRITE DMA QUEUED 311 6.62 WRITE DMA QUEUED EXT.315 6.63 WRITE DMA QUEUED FUA EXT.320 6.64 WRITE LOG EXT.326 6.65 WRITE MULTIPLE.329 6.66 WRITE MULTIPLE EXT .331 6.67 W
22、RITE MULTIPLE FUA EXT .334 6.68 WRITE SECTOR(S).338 6.69 WRITE SECTOR(S) EXT.340 6.70 WRITE STREAM DMA EXT .342 6.71 WRITE STREAM EXT346 7 Parallel interface physical and electrical requirements (see ISO/IEC 24739-2) .351 8 Parallel interface signal assignments and descriptions (see ISO/IEC 24739-2)
23、.351 9 Parallel interface general operating requirements of the physical, data link, and transport layers (see ISO/IEC 24739-2)351 10 Parallel interface register addressing (see ISO/IEC 24739-2) .351 11 Parallel interface transport Protocols (see ISO/IEC 24739-2)351 12 Parallel interface timing (see
24、 ISO/IEC 24739-2)351 13 Serial interface overview (see ISO/IEC 24739-)351 14 Serial interface physical layer (see ISO/IEC 24739-3) 351 15 Serial interface link layer (see ISO/IEC 24739-3)351 16 Serial interface transport layer (see ISO/IEC 24739-3) .351 17 Serial interface device command layer (see
25、ISO/IEC 24739-3) .351 18 Host command layer (see ISO/IEC 24739-3) 351 19 Serial interface host adapter register interface (see ISO/IEC 24739-3) .351 20 Serial interface error handling (see ISO/IEC 24739-3) 351 Annex A (informative) Command Set summary 352 Annex B (informative) Design and programming
26、 considerations for large physical sector devices 359 24739-1 ISO/IEC:2009(E) 5 Annex C Device determination of cable type (informative) (see ISO/IEC 24739-2) 361 Annex D Signal integrity and UDMA guide (informative) (see ISO/IEC 24739-2) .361 Annex E Register selection address summary (informative)
27、 (see ISO/IEC 24739-2)361 Annex F Sample code for CRC and scrambling (informative) (see ISO/IEC 24739-3)361 Annex G FIS type field value selection (informative) (see ISO/IEC 24739-3).361 Annex H Physical layer implementation examples (informative) (see ISO/IEC 24739-3)361 Annex I Command processing
28、Example (informative) (see ISO/IEC 24739-3) .361 Bibliography362 Figure 1 ATA document relationships.11 Figure 2 State diagram convention.24 Figure 3 Byte, word and DWORD relationships 28 Figure 4 Power management state diagram .33 Figure 5 Security mode state diagram37 Figure 6 SET MAX security sta
29、te diagram46 Figure 7 Device configuration overlay state diagram 54 Figure 8 Long Logical and long Physical Sector Example.62 Figure 9 Selective self-test test span example .277 Figure B.1 Unaligned Write Example360 Table 1 PACKET delivered command sets .12 Table 2 Byte order .26 Table 3 Byte order
30、.27 Table 4 Security mode command actions .40 Table 5 48-bit addresses .52 Table 6 28-bit addresses .52 Table 7 Media Card type references 56 Table 8 Long logical sector function.63 Table 9 I/O registers 65 Table 10 Extended error codes 81 Table 11 CFA TRANSLATE SECTOR Information83 Table 12 Device
31、Configuration Overlay Features register values94 Table 13 Device Configuration Identify data structure 100 Table 14 Device Configuration Overlay data structure105 Table 16 IDENTIFY DEVICE data 122 Table 17 - Minor version number 135 Table 18 IDENTIFY PACKET DEVICE data146 Table 19 Automatic Standby
32、timer periods .158 Table 20 Log address definition .192 Table 21 General Purpose Log Directory .194 Table 22 Extended Comprehensive SMART error log.195 Table 23 Extended Error log data structure196 Table 24 Command data structure .197 6 24739-1 ISO/IEC:2009(E) Table 25 Error data structure .198 Tabl
33、e 26 State field values.198 Table 27 Extended Self-test log data structure.199 Table 28 Extended Self-test log descriptor entry200 Table 29 Read Stream Error log.201 Table 30 Error Log Entry201 Table 31 Write Stream Error log.202 Table 32 Streaming Performance Parameters log 203 Table 33 Sector Time
34、 Array Entry (Linearly Interpolated) .203 Table 34 Position Array Entry (Linearly Interpolated) .203 Table 35 Access Time Array Entry (Linearly Interpolated)203 Table 36 Delayed LBA log204 Table 37 Security password content.233 Table 38 SECURITY ERASE UNIT password.237 Table 39 SECURITY SET PASSWORD
35、 data content241 Table 40 Identifier and security level bit interaction241 Table 41 SET FEATURES register definitions 246 Table 42 Transfer mode values247 Table 43 Advanced power management levels.248 Table 44 Automatic acoustic management levels .249 Table 45 SET MAX Features register values251 Tab
36、le 46 SET MAX SET PASSWORD data content255 Table 47 SMART Feature register values.267 Table 48 SMART EXECUTE OFF-LINE IMMEDIATE LBA Low register values .275 Table 49 Device SMART data structure .280 Table 50 Off-line data collection status byte values281 Table 51 Self-test execution status values .2
37、81 Table 52 Log address definition .284 Table 53 SMART Log Directory286 Table 54 SMART summary error log sector286 Table 55 Error log data structure .287 Table 56 Command data structure .288 Table 57 Error data structure .288 Table 58 State field values.289 Table 59 Comprehensive error log .290 Tabl
38、e 60 Self-test log data structure 291 Table 61 Self-test log descriptor entry291 Table 62 Selective self-test log 292 Table 63 Selective self-test feature flags .293 Table A.1 Command matrix352 Table A.2 Command codes (sorted by command code)353 Table A.3 Command codes (sorted by command) 356 24739-
39、1 ISO/IEC:2009(E) 7 INFORMATION TECHNOLOGY AT ATTACHMENT WITH PACKET INTERFACE-7 Part 1: Register delivered command set, logical register set (ATA/ATAPI-7 V1) FOREWORD 1) ISO (International Organization for Standardization) and IEC (International Electrotechnical Commission) form the specialized sys
40、tem for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards. Their preparation is entrusted to technical committees; any ISO and IEC member body interested in the subject dealt with may participate in this preparatory wo
41、rk. International governmental and non-governmental organizations liaising with ISO and IEC also participate in this preparation. 2) In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. Draft International Standards adopted by the joint tec
42、hnical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. 3) The formal decisions or agreements of IEC and ISO on technical matters express, as nearly as possible, an international
43、 consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC and ISO member bodies. 4) IEC, ISO and ISO/IEC publications have the form of recommendations for international use and are accepted by IEC and ISO member bodies in that sense. Whi
44、le all reasonable efforts are made to ensure that the technical content of IEC, ISO and ISO/IEC publications is accurate, IEC or ISO cannot be held responsible for the way in which they are used or for any misinterpretation by any end user. 5) In order to promote international uniformity, IEC and IS
45、O member bodies undertake to apply IEC, ISO and ISO/IEC publications transparently to the maximum extent possible in their national and regional publications. Any divergence between any ISO/IEC publication and the corresponding national or regional publication should be clearly indicated in the latt
46、er. 6) ISO and IEC provide no marking procedure to indicate their approval and cannot be rendered responsible for any equipment declared to be in conformity with an ISO/IEC publication. 7) All users should ensure that they have the latest edition of this publication. 8) No liability shall attach to
47、IEC or ISO or its directors, employees, servants or agents including individual experts and members of their technical committees and IEC or ISO member bodies for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal
48、fees) and expenses arising out of the publication of, use of, or reliance upon, this ISO/IEC publication or any other IEC, ISO or ISO/IEC publications. 9) Attention is drawn to the normative references cited in this publication. Use of the referenced publications is indispensable for the correct app
49、lication of this publication. 10) Attention is drawn to the possibility that some of the elements of this International Standard may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. International Standard ISO/IEC 24739-1 was prepared by subcommittee 25: Interconnection of information technology equipment, of