搜尋此網誌

2012年6月6日 星期三

SMART EXECUTE OFF-LINE IMMEDIATE - B0h/D4h, Non-data


Inputs:
Register
7
6
5
4
3
2
1
0
Features
D4h
Sector Count
na
LBA Low
Subcommand specific
LBA Mid
4Fh
LBA High
C2h
Device
obs
na
obs
DEV
na
na
na
na
Command
B0h
Device register -
DEV shall specify the selected device.

SMART EXECUTE OFF-LINE IMMEDIATE LBA Low register values

Value
Description of subcommand to be executed
0
Execute SMART off-line routine immediately in off-line mode
1
Execute SMART Short self-test routine immediately in off-line mode
2
Execute SMART Extended self-test routine immediately in off-line mode
3
Execute SMART Conveyance self-test routine immediately in off-line mode
4
Execute SMART Selective self-test routine immediately in off-line mode
5-63
Reserved
64-126
Vendor specific
127
Abort off-line mode self-test routine
128
Reserved
129
Execute SMART Short self-test routine immediately in captive mode
130
Execute SMART Extended self-test routine immediately in captive mode
131
Execute SMART Conveyance self-test routine immediately in captive mode
132
Execute SMART Selective self-test routine immediately in captive mode
133-191
Reserved
192-255
Vendor specific



Normal Outputs:
Register
7
6
5
4
3
2
1
0
Error
na
Sector Count
na
LBA Low
na
LBA Mid
na or 4Fh
LBA High
na or C2h
Device
obs
na
obs
DEV
na
na
na
na
Status
BSY
DRDY
DF
na
DRQ
na
na
ERR
LBA Mid -
na when the subcommand specified an off-line routine including an off-line self-test routine. 4Fh when the subcommand specified a captive self-test routine that has executed without failure.
LBA High -
na when the subcommand specified an off-line routine including an off-line self-test routine. C2h when the subcommand specified a captive self-test routine that has executed without failure.
Device register –
DEV shall indicate the selected device.
Status register -
BSY shall be cleared to zero indicating command completion.
DRDY shall be set to one.
DF (Device Fault) shall be cleared to zero.
DRQ shall be cleared to zero.
ERR shall be cleared to zero.

Error Outputs:
Register
7
6
5
4
3
2
1
0
Error
na
na
na
IDNF
na
ABRT
na
na
Sector Count
na
LBA Low
na
LBA Mid
na or 4Fh or F4h
LBA High
na or C2h or 2Ch
Device
obs
na
obs
DEV
na
Status
BSY
DRDY
DF
na
DRQ
na
na
ERR
Error register –
IDNF shall be set to one if SMART data sector’s ID field could not be found.
ABRT shall be set to one if this command is not supported or if the input register values are invalid. ABRT may be set to one if the device is not able to complete the action requested by the command.
LBA Mid register –
na when the subcommand specified an off-line routine (including an off-line self-test routine).
4Fh when the subcommand specified a captive self-test routine and some error other than a self-test routine failure occurred (i.e., if the sub-command is not supported or register values are invalid)
F4h when the subcommand specified a captive self-test routine which has failed during execution.
LBA High register –
na when the subcommand specified an off-line routine (including an off-line self-test routine).
2Ch when the subcommand specified a captive self-test routine which has failed during execution.
C2h when the subcommand specified a captive self-test routine and some error other than a self-test routine failure occurred (i.e., if the sub-command is not supported or register values are invalid)
Device register -
DEV shall indicate the selected device.
Status register -
BSY shall be cleared to zero indicating command completion.
DRDY shall be set to one.
DF (Device Fault) shall be cleared to zero.
DRQ shall be cleared to zero.
ERR shall be cleared to zero.

沒有留言:

張貼留言