1、American National StandardDeveloped byfor Information Technology AT Attachment with Packet Interface - 7Volume 1 - Register Delivered Command Set,Logical Register Set(ATA/ATAPI-7 V1) ANSI INCITS 397-2005 (Vol.1)ANSIINCITS397-2005 (Vol.1)Copyright American National Standards Institute Provided by IHS
2、 under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ANSIINCITS 397-2005(Vol
3、. 1)American National Standardfor Information Technology AT Attachment with Packet Interface - 7Volume 1 - Register Delivered Command Set,Logical Register Set(ATA/ATAPI-7 V1)SecretariatInformation Technology Industry CouncilApproved February 7, 2005 American National Standards Institute, Inc.Abstrac
4、tThis standard specifies the AT Attachment Interface between host systems and storage devices. It pro-vides a common attachment interface for systems manufacturers, system integrators, software suppliers,and suppliers of intelligent storage devices. It includes the Packet Command feature set impleme
5、nted bydevices commonly known as ATAPI devices. It also includes the Serial Transport Protocols and PhysicalInterconnect for AT Atachment devices commonly known as Serial ATA.This standard maintains a high degree of compatibility with the AT Attachment Interface with Packet Inter-face - 6 (ATA/ATAPI
6、-6), ANSI INCITS 361-2002, and while providing additional functions, is not intendedto require changes to presently installed devices or existing software.Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted with
7、out license from IHS-,-,-Approval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval havebeen met by the standards developer.Consensus is established when, in the judgement of the ANSI Board ofStandards Review, su
8、bstantial agreement has been reached by directly andmaterially affected interests. Substantial agreement means much more thana simple majority, but not necessarily unanimity. Consensus requires that allviews and objections be considered, and that a concerted effort be madetowards their resolution.Th
9、e use of American National Standards is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standards or not, from manufacturing, marketing, purchasing, or usingproducts, processes, or procedures not conforming to the standards.The American Nation
10、al Standards Institute does not develop standards andwill in no circumstances give an interpretation of any American NationalStandard. Moreover, no person shall have the right or authority to issue aninterpretation of an American National Standard in the name of the AmericanNational Standards Instit
11、ute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that acti
12、on be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican National Standards Institute
13、, Inc.25 West 43rd Street, New York, NY 10036Copyright 2005 by Information Technology Industry Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 1250 Eye Street NW, Washin
14、gton, DC 20005. Printed in the United States of AmericaCAUTION: The developers of this standard have requested that holders of patents that may berequired for the implementation of the standard disclose such patents to the publisher. However,neither the developers nor the publisher have undertaken a
15、 patent search in order to identifywhich, if any, patents may apply to this standard. As of the date of publication of this standardand following calls for the identification of patents that may be required for the implementation ofthe standard, no such claims have been made. No further patent searc
16、h is conducted by the de-veloper or publisher in respect to any standard it processes. No representation is made or impliedthat licenses are not required to avoid infringement in the use of this standard.Copyright American National Standards Institute Provided by IHS under license with ANSINot for R
17、esaleNo reproduction or networking permitted without license from IHS-,-,-iContentsPageForeword xvIntroduction . xviii1 Scope. 12 Normative references. 32.1 Approved references 32.1.1 ANSI References . 32.1.2 ISO References . 32.2 References under development. 32.3 Other references 33 Definitions, a
18、bbreviations, and conventions. 53.1 Definitions and abbreviations. 53.2 Conventions. 83.2.1 Precedence 93.2.2 Lists 93.2.3 Keywords . 93.2.4 Numbering . 103.2.5 Signal conventions. 103.2.6 Bit conventions. 103.2.7 State diagram conventions 113.2.8 Timing conventions 123.2.9 Byte ordering for data tr
19、ansfers . 133.2.10 Byte, word and DWORD Relationships 144 General operational requirements . 154.1 Command delivery. 154.2 Register delivered data transfer command sector addressing. 154.2.1 Definitions and value ranges of IDENTIFY DEVICE data words . 154.2.2 Addressing constraints and error reporti
20、ng 154.3 General feature set 154.3.1 General feature set for devices not implementing the PACKET command feature set . 154.3.2 General feature set for devices implementing the PACKET command feature set . 164.4 PACKET Command feature set. 174.4.1 Identification of PACKET Command feature set devices.
21、 174.4.2 PACKET Command feature set resets 184.4.3 The PACKET command. 184.5 Power Management feature set. 184.5.1 Power management commands 184.5.2 Standby timer. 194.5.3 Power modes. 194.6 Advanced Power Management feature set 224.7 Security Mode feature set 22Copyright American National Standards
22、 Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-iiPage4.7.1 Security mode initial setting . 234.7.2 User password lost 234.7.3 Attempt limit for SECURITY UNLOCK command 234.7.4 Security mode states . 234.8 SMART (Se
23、lf-monitoring, analysis, and reporting technology)feature set. 294.8.1 Device SMART data structure . 294.8.2 On-line data collection . 294.8.3 Off-line data collection . 294.8.4 Threshold exceeded condition. 294.8.5 SMART feature set commands 294.8.6 SMART operation with power management modes 304.8
24、.7 SMART device error log reporting . 304.9 Host Protected Area feature set 304.9.1 BIOS determination of SET MAX security exension status . 324.9.2 BIOS locking SET MAX . 324.10 CompactFlash Association (CFA) feature set 344.11 Removable Media Status Notification and Removable Media feature sets 35
25、4.11.1 Removable Media Status Notification feature set 354.11.2 Removable Media feature set 364.12 Power-Up In Standby feature set. 364.13 Automatic Acoustic Management (AAM) feature set . 374.14 48-bit Address feature set 384.15 Device Configuration Overlay feature set 404.16 Media Card Pass Throug
26、h Command feature set . 424.17 Streaming feature set 434.17.1 Streaming commands 434.17.1.1 Urgent bit . 444.17.1.2 Flush to Disk bit . 444.17.1.3 Not Sequential bit 444.17.1.4 Read Continuous bit 444.17.1.5 Write Continuous bit 444.17.1.6 Handle Streaming Error bit 444.17.2 Streaming Logs 444.18 Ge
27、neral Purpose Logging feature set 464.19 Overlapped feature set 464.20 Queued feature set 474.21 Long Physical Sector Feature Set for Non-Packet Devices . 484.22 Long Logical Sector Feature Set for Non-Packet Devices . 494.23 Devices Implementing the Long Physical Sector Feature Set and the Long Log
28、ical Feature Sector Set 50Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-iiiPage5 I/O register descriptions . 515.1 Overview 515.2 Alternate Status register. 525.3 Command regis
29、ter 525.4 Data port 535.5 Data register. 545.6 Device register . 555.7 Device Control register. 565.8 Error register 575.9 Features register 585.10 LBA High/Byte Count High register 585.11 LBA Low register 595.12 LBA Mid/Byte Count Low register 595.13 Sector Count/Interrupt Reason register . 605.14
30、Status register 615.14.1 Direction. 615.14.2 Access restrictions . 615.14.3 Effect 615.14.4 Functional description 615.14.5 Field/bit description 615.14.5.1 BSY (Busy). 615.14.5.2 DRDY (Device ready). 625.14.5.3 DF/SE (Device Fault / Stream Error) 625.14.5.4 Command dependent. 625.14.5.5 DRQ (Data r
31、equest) . 635.14.5.6 Obsolete bits 635.14.5.7 ERR / CHK (Error / Check) 635.15 Signature and persistence . 655.15.1 Signature for devices not implementing the PACKET command feature set 655.15.2 Signature for devices implementing the PACKET command feature set 655.15.3 Reserved Signatures for Serial
32、 ATA Working Groups . 655.16 Single device configurations 665.16.1 Device 0 only configurations 665.16.2 Device 1 only configurations 666 Command Descriptions 686.1 Overview 686.2 CFA ERASE SECTORS 706.3 CFA REQUEST EXTENDED ERROR CODE 726.4 CFA TRANSLATE SECTOR 75Copyright American National Standar
33、ds Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ivPage6.5 CFA WRITE MULTIPLE WITHOUT ERASE . 776.6 CFA WRITE SECTORS WITHOUT ERASE 796.7 CHECK MEDIA CARD TYPE 816.8 CHECK POWER MODE 836.9 CONFIGURE STREAM . 856.10
34、 DEVICE CONFIGURATION 886.10.1 DEVICE CONFIGURATION RESTORE 886.10.2 DEVICE CONFIGURATION FREEZE LOCK 896.10.3 DEVICE CONFIGURATION IDENTIFY. 916.10.4 DEVICE CONFIGURATION SET 956.11 DEVICE RESET 1026.12 DOWNLOAD MICROCODE 1046.13 EXECUTE DEVICE DIAGNOSTIC 1066.14 FLUSH CACHE . 1086.15 FLUSH CACHE E
35、XT . 1096.16 GET MEDIA STATUS 1126.17 IDENTIFY DEVICE 1146.17.1 Command code . 1146.17.2 Feature set. 1146.17.3 Protocol 1146.17.4 Inputs . 1146.17.5 Outputs 1146.17.6 Error Outputs . 1156.17.7 Prerequisites 1156.17.8 Description. 1156.17.9 Word 0: General configuration. 1226.17.10 Word 1: Obsolete.
36、 1226.17.11 Word 2: Specific configuration. 1236.17.12 Word 3: Obsolete. 1236.17.13 Word (5:4): Retired. . 1236.17.14 Word 6: Obsolete. 1236.17.15 Words (8:7): Reserved for assignment by the CompactFlashTMAssociation . 1236.17.16 Word 9: Retired 1236.17.17 Words (19:10): Serial number 1236.17.18 Wor
37、d (21:20): Retired. . 1236.17.19 Word 22: Obsolete. 1236.17.20 Word (26:23): Firmware revision . 1236.17.21 Words (46:27): Model number . 1236.17.22 Word 47: READ/WRITE MULTIPLE support. 1236.17.23 Word 48: Reserved 1236.17.24 Word (50:49): Capabilities . 1246.17.25 Words (52:51): Obsolete 1246.17.2
38、6 Word 53: Field validity . 1246.17.27 Word (58:54): Obsolete . 1246.17.28 Word 59: Multiple sector setting 125Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-vPage6.17.29 Word (
39、61:60): Total number of user addressable sectors 1256.17.30 Word 62: Obsolete . 1256.17.31 Word 63: Multiword DMA transfer 1256.17.32 Word 64: PIO transfer modes supported . 1266.17.33 Word 65: Minimum Multiword DMA transfer cycle time per word 1266.17.34 Word 66: Device recommended Multiword DMA cy
40、cle time 1266.17.35 Word 67: Minimum PIO transfer cycle time without IORDY flow control 1276.17.36 Word 68: Minimum PIO transfer cycle time with IORDY flow control 1276.17.37 Words (74:69): Reserved. 1276.17.38 Word 75: Queue depth. 1276.17.39 Words (79:76): Reserved for Serial ATA 1276.17.40 Word 8
41、0: Major version number. 1276.17.41 Word 81: Minor version number. 1276.17.42 Words (84:82): Features/command sets supported. 1286.17.43 Words (87:85): Features/command sets enabled 1306.17.44 Word 88: Ultra DMA modes . 1326.17.45 Word 89: Time required for Security erase unit completion . 1346.17.4
42、6 Word 90: Time required for Enhanced security erase unit completion 1346.17.47 Word 91: Advanced power management level value. 1346.17.48 Word 92: Master Password Revision Code . 1356.17.49 Word 93: Hardware configuration test results 1356.17.50 Word 94: Current automatic acoustic management value
43、. 1356.17.51 Word 95: Stream Minimum Request Size 1356.17.52 Word 96: Streaming Transfer Time - DMA . 1356.17.53 Word 97: Streaming Access Latency - DMA and PIO 1366.17.54 Words (99:98): Streaming Performance Granularity 1366.17.55 Words (103:100): Maximum user LBA for 48-bit Address feature set. 13
44、66.17.56 Word 104: Streaming Transfer Time - PIO 1366.17.57 Word 106: Physical sector size / Logical Sector Size 1366.17.58 Word 107: Inter-seek delay for ISO 7779 standard acoustic testing . 1376.17.59 Words (111:108): World wide name. 1376.17.60 Words (115:112): Reserved for a 128-bit world wide n
45、ame. 1376.17.61 Word 116: Reserved for technical report. 1376.17.62 Words 117-118: Logical Sector Size 1376.17.63 Words (126:119): Reserved . 1376.17.64 Word 127: Removable Media Status Notification feature set support 1376.17.65 Word 128: Security status 1376.17.66 Words (159:129): Vendor specific
46、1386.17.67 Word 160: CFA power mode 1386.17.68 Words (175:161): Reserved for assignment by the CompactFlashTMAssociation . 1386.17.69 Words (205:176): Current media serial number. 1386.17.70 Words (254:206): Reserved. 1386.17.71 Word 255: Integrity word 1386.18 IDENTIFY PACKET DEVICE . 139Copyright
47、American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-viPage6.18.9 Word 0: General configuration. 1486.18.10 Word 1: Reserved 1486.18.11 Word 2: Specific configuration . 1486.18.12 Words (9:3):
48、Reserved. 1486.18.13 Words (19:10): Serial number 1486.18.14 Words (22:20): Reserved. 1486.18.15 Words (26:23): Firmware revision 1496.18.16 Words (46:27): Model number . 1496.18.17 Words (48:47): Reserved. 1496.18.18 Word 49: Capabilities. 1496.18.19 Word 50: Capabilities. 1496.18.20 Word 51: Obsol
49、ete. 1496.18.21 Word 52: Reserved 1496.18.22 Word 53: Field validity . 1496.18.23 Words (61:54): Reserved. 1496.18.24 Word 62: DMADIR . 1496.18.25 Word 63: Multiword DMA transfer 1506.18.26 Word 64: PIO transfer mode supported. 1506.18.27 Word 65: Minimum multiword DMA transfer cycle time per word 1506.18.28 Word 66: Device recommended multiword DMA cycle time 1506.18.29 Word 67: Minimum PIO