西捷酷鱼硬盘指令集
Barracuda ATA IV Family Product Manual, Rev. A 273.1.1Supported ATA commands
The following table lists ATA-standard commands that the drive sup-
ports. For a detailed description of the ATA commands, refer to the Draft
ATA-5 Standard. See Section 3.1.4 on page 34 for details and subcom-
mands used in the S.M.A.R.T. implementation.
Command name Command code (in hex)
ATA-standard commands
Download Microcode
92H
Exec ute Device Diagnostics
90H
Flush Cache
E7H
Format Track
50H
Identify Device
ECH
Initialize Device Parameters
91H
Read Buffer
E4H
Read DMA
C8H, C9H
Read Multiple
C4H
Read Sectors
20H, 21H
Read Verify Sec tors
40H, 41H
Recalibrate
10H
Seek
70H
Set Features
EFH
Set Multiple Mode
C6H
S.M.A.R.T.
B0H
Write Buffer
E8H
Write DMA
CAH, CBH
Write Multiple
C5H
Write Sectors
30H, 31H
ATA-standard power-management commands
Check Power Mode
98H or E5H
Idle
97H or E3H
28 Barracuda ATA IV Family Product Manual, Rev. A
Command name Command code (in hex)
Idle Immediate
95H or E1H
Sleep
99H or E6H
Standby
96H or E2H
Standby Immediate
94H or E0H
ATA-standard security commands
Security Set Password
F1H
Security Unlock
F2H
Security Erase Prepare
F3H
Security Erase Unit
F4H
Security Freeze Lock
F5H
Security Disable Password
F6H
3.1.2Identify Device command
The Identify Device command (command code ECH) transfers informa-
tion about the drive to the host following power up. The data is organized
as a single 512-byte block of data, whose contents are shown in the table
on page 27. All reserved bits or words should be set to zero. Parameters
listed with an "x" are drive-specific or vary with the state of the drive. See
Section 1.0 on page 5 for default parameter settings.
The following commands contain drive-specific features that may not be
included in the Draft ATA-5 Standard.
Barracuda ATA IV Family Product Manual, Rev. A 29
Word Description Value
Configuration information:
. Bit 15: 0 = ATA; 1 = ATAPI
0C5AH
. Bit 7: removable media
0
. Bit 6: removable controller
. Bit 0: reserved
1 Number of logical cylinders 16,383
2 ATA-reserved
0000H
3 Number of logical heads 16
4 Retired
0000H
5 Retired
0000H
6 Number of logical sectors per
003FH
logical track: 63
7¨C9 Retired 0000H
10¨C19 Serial number: (20 ASCII
charac ters, 0000H = none) ASCII
20 Retired
0000H
21 Retired
0400H
22 Obsolete
0000H
23¨C26 Firmware revision (8 ASCII
x.xx
charac ter string, padded with
blanks to end of string)
27¨C46 Drive model number: (40 ST380021A
ST360021A
ASCII characters, padded
ST340016A
with blanks to end of string)
ST320011A
47 (Bits 7¨C0) Maximum sectors
8010H
per interrupt on Read multi-
ple and Write multiple (16)
48 Reserved 0000H
49 Standard Standbytimer,
2F00H
IORDY supported and may
be disabled
50 ATA-reserved 0000H
30 Barracuda ATA IV Family Product Manual, Rev. A
Word Description Value
51 PIO data-transfer cycle
0200H
timing mode
52 Retired 0200H
53 Words 54¨C58, 64¨C70 and 88
0007H
are valid
54 Number of current logical xxxxH
cylinders
55 Number of current logical xxxxH
heads
56 Number of current logical
sectors per logical track xxxxH
57¨C58 Current capacity in sectors xxxxH
59 Number of sectors trans-
xxxxH
ferred during a Read Multiple
or Write Multiple command
ST380021A =156,301,488
60¨C61 Total number of user-addres-
ST360021A = 117,231,408
sable LBA sectors available
ST340016A = 78,165,360
(see Section 2.2.3 for related
ST320011A = 39,102,336
information)
62 Retired
0000H
63 Multiword DMA active and
xx07H
modes supported (see note
following this table)
64 Advanced PIO modes sup-
0003H
ported (modes 3 and 4 sup-
ported)
65 Minimum multiword DMA
0078H
transfer cycle time per word
(120 nsec)
66 Recommended multiword
0078H
DMA transfer cycle time per
word (120 nsec)
67 Minimum PIO cycle time
00F0H
without IORDY flow control
(240 nsec)
Barracuda ATA IV Family Product Manual, Rev. A 31
Word Description Value
68 Minimum PIO cycle time with
0078H
IORDY flow control (120
nsec)
69¨C74 ATA-reserved 0000H
75 Queue depth 0000H
76¨C79 ATA-reserved 0000H
80 Major version number 003EH
81 Minor version number 0000H
82 Command sets supported 306BH
83 Command sets supported 4001H
84 Command sets support 4000H
extension
85 Command sets enabled 30xxH
86 Command sets enabled 0001H
87 Command sets enable 4000H
extension
88 Ultra DMA support and
xx3FH
current mode
(see note following this table)
89 Security erase time
0000H
90 Enhanced security erase
0000H
time
91 Advanced power manage- 0040H
ment value
92 Master password revision
FFFEH
code
93 Hardware reset value
xxxxH
(see description following
this table)
94 Auto acoustic management
xxxxH
setting
95¨C127 ATA-reserved 0000H
32 Barracuda ATA IV Family Product Manual, Rev. A
Word Description Value
128 Security status 0001H
129¨C159 Seagate-reserved xxxxH
160¨C254 ATA-reserved 0000H
255 Integrity word xxA5H
Note. See the bit descriptions below for words 63, 88, 93 and 94 of
the Identify Drive data:
Description (if bit is set to 1)
Bit Word 63
0 Multiword DMA mode 0 is supported.
1 Multiword DMA mode 1 is supported.
2 Multiword DMA mode 2 is supported.
8 Multiword DMA mode 0 is currently active.
9 Multiword DMA mode 1 is currently active.
10 Multiword DMA mode 2 is currently active.
Bit Word 88
0 Ultra DMA mode 0 is supported.
1 Ultra DMA mode 1 is supported.
2 Ultra DMA mode 2 is supported.
3 Ultra DMA mode 3 is supported.
4 Ultra DMA mode 4 is supported.
8 Ultra DMA mode 0 is currently active.
9 Ultra DMA mode 1 is currently active.
10 Ultra DMA mode 2 is currently active.
11 Ultra DMA mode 3 is currently active.
12 Ultra DMA mode 4 is currently active.
13 Ultra DMA mode 5 is currently active.
Barracuda ATA IV Family Product Manual, Rev. A 33
Bit Word 93
13 1=80-conductor cable detected, CBLID above VIH
0=40-conductor cable detected, CBLID below VI L
Bit Word 94
0¨C7 Current AAM setting
8¨C15 AAM Power on default
3.1.3Set Features command
This command controls the implementation of various features that the
driv e supports. When the drive receives this command, it sets BSY,
checks the contents of the Features register, clears BSY and generates
an interrupt. If the value in the register does not represent a feature that
the drive supports, the c ommand is aborted. Power-on default has the
read look-ahead and write caching featuresenabled. The acceptable
values for the Features register are defined as follows:
02H Enable write cache (default).
03H Set transfer mode (based on value in Sector Count register).
Sector Count register values:
00H Set PIO mode to default (PIO mode 2).
01H Set PIO mode to default and disable IORDY
(PIO mode 2).
08H PIO mode 0
09H PIO mode 1
0AH PIO mode 2
0BH PIO mode 3
0CH PIO mode 4 (default)
20H Multiword DMA mode 0
21H Multiword DMA mode 1
22H Multiword DMA mode 2
40H Ultra DMA mode 0
41H Ultra DMA mode 1
42H Ultra DMA mode 2
34 Barracuda ATA IV Family Product Manual, Rev. A
43H Ultra DMA mode 3
44H Ultra DMA mode 4
45H Ultra DMA mode 5
05H Enable advanced power management
42H Auto acoustic management
FEH Performance seek
80H Quiet acoustic seek
55H Disable read look-ahead (read cache) feature.
82H Disable write cache.
AAH Enable read look-ahead (read cache) feature (default).
F1H Report full capacity available
Note. At power-on, or after a hardware or software reset, the default
values of the features are as indicated above.
3.1.4S.M.A.R.T. commands
S.M.A.R.T. provides near-term failure prediction for disc drives. When
S.M.A.R.T. is enabled, the drive monitors predetermined drive attributes
that are susceptible to degradation over time. If self-monitoring determines
that a failure is likely, S.M.A.R.T. makes a status report available to the
host. Not all failures are predictable. S.M.A.R.T. predictability is limited to
the attributes the drive can monitor. For more information on S.M.A.R.T.
commands and implementation, see the Draft ATA-5 Standard.
SeaTools diagnostic software activates a built-in drive self-test (DST
S.M.A.R.T. command for D4H) that eliminates unnecessary drive returns.
The diagnostic software ships with all new drives and is also available at:
http://seatools.seagate.com.
This drive is shipped with S.M.A.R.T. features disabled. You must have
a recent BIOS or software package that supports S.M.A.R.T. to enable
this feature. The table below shows the S.M.A.R.T. command codes that
the drive uses.
Code in features S.M.A.R.T. command
register
D0H S.M.A.R.T. Read Data
D1H Vendor-spec ific
Barracuda ATA IV Family Product Manual, Rev. A 35
Code in features S.M.A.R.T. command
register
D2H S.M.A.R.T. Enable/Disable Attribute Autosave
D3H S.M.A.R.T. Save Attribute Values
D4H S.M.A.R.T. Execute Off-line Immediate
(runs DST)
D5H S.M.A.R.T. Read Log Sector
D6H S.M.A.R.T. Write Log Sector
D7H Vendor-specific
D8H S.M.A.R.T. Enable Operations
D9H S.M.A.R.T. Disable Operations
DAH S.M.A.R.T. Return Status
Note. If an appropriate code is not written to the Features Register, the
command is aborted and 0x 04 (abort) is written to the Error
register. 好东西学习了 再顶%……………………………… 真复杂,有中文的说明就好料 看的我一头雾水,但,还是要感谢楼主
页:
[1]