Hitachi C4K60 Specifications - Page 80

Command Data Structure, Error data structure

Page 80 highlights

(2) Command Data Structure The fifth command data structure contains the command or reset for which the error is being reported. The fourth command data structure contains the command or reset that preceded the command or reset for which the error is being reported, the third command data structure contains the command or reset preceding the one in the fourth command data structure, etc. If fewer than four commands and resets preceded the command or reset for which the error is being reported, the unused command data structures are filled zero. If the command data structure represents a command or software reset, the content of the command data structure is as shown in Table 7.15 If the command data structure represents a hardware reset, the content of byte n is FFh, the content of bytes n+1 through n+13 are not valid and the content of bytes n+14 through n+17 contain the timestamp. Table 7.15 Command Data Structure Byte n n+1 ~ n+2 n+3 ~ n+4 n+5 ~ n+6 n+7 ~ n+8 n+9 ~ n+10 n+11 n+12 n+13 n+14 ~ n+17 Descriptions Content of the Device Control register when the Command register was written. Content of the Features register when the Command register was written. Content of the Sector Count Register when the Command register was written. Content of the LBA Low Register when the Command register was written. Content of the LBA Mid Register when the Command register was written. Content of the LBA High Register when the Command register was written. Content of the Device/Head register when the Command register was written. Content of the Command Register when Command Register was written. Reserved Timestamp (Time since power-on in milliseconds when command acceptance occurred) (3) Error data structure The error data structure contains the error description of the command for which an error was reported as described in Table 7.16. Table 7.16 Error Data Structure Byte n n+1 n+2 ~ n+3 n+4 ~ n+5 n+6 ~ n+7 n+8 ~ n+9 n+10 n+11 n+12 ~ n+30 n+31 n+32 ~ n+33 Description Reserved Content of the Error register after command completion occurred. Content of the Sector Count Register after command completion occurred. Content of the LBA Low (Sector Number) Register after command completion occurred. Content of the LBA Mid (Cylinder Low) Register after command completion occurred. Content of the LBA High (Cylinder High) Register after command completion occurred. Content of the Device/Head register after command completion occurred. Content written to the Status register after command completion occurred. Extended error information (Vendor Specific) This contains a value indicating the state of the device when command was written to the Command register or the reset occurred as described below. 01h: Sleep 02h: Standby 03h: Active/Idle with BSY cleared to zero 04h: Executing SMART off-line or self-test Life timestamp Power-on lifetime of the device in hours when command completion occurred. K6610170 Rev.2 Dec 22, 2004 - 80 -

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145

K6610170
Rev.2
Dec 22, 2004
- 80 -
(2) Command Data Structure
The fifth command data structure contains the command or reset for which the error is being reported.
The fourth command data structure contains the command or reset that preceded the command or
reset for which the error is being reported, the third command data structure contains the command or
reset preceding the one in the fourth command data structure, etc. If fewer than four commands and resets
preceded the command or reset for which the error is being reported, the unused command data structures
are filled zero. If the command data structure represents a command or software reset, the content of the
command data structure is as shown in Table 7.15
If the command data structure represents a hardware
reset, the content of byte n is FFh, the content of bytes n+1 through n+13 are not valid and the content of
bytes n+14 through n+17 contain the timestamp.
Table 7.15 Command Data Structure
Byte
Descriptions
n
Content of the Device Control register when the Command register was written.
n+1
~ n+2
Content of the Features register when the Command register was written.
n+3
~ n+4
Content of the Sector Count Register when the Command register was written.
n+5
~ n+6
Content of the LBA Low Register when the Command register was written.
n+7
~ n+8
Content of the LBA Mid Register when the Command register was written.
n+9
~ n+10
Content of the LBA High Register when the Command register was written.
n+11
Content of the Device/Head register when the Command register was written.
n+12
Content of the Command Register when Command Register was written.
n+13
Reserved
n+14
~ n+17
Timestamp (Time since power-on in milliseconds when command acceptance occurred)
(3) Error data structure
The error data structure contains the error description of the command for which an error was reported
as described in Table 7.16.
Table 7.16 Error Data Structure
Byte
Description
n
Reserved
n+1
Content of the Error register after command completion occurred.
n+2 ~ n+3
Content of the Sector Count Register after command completion occurred.
n+4 ~ n+5
Content of the LBA Low (Sector Number) Register after command completion occurred.
n+6 ~ n+7
Content of the LBA Mid (Cylinder Low) Register after command completion occurred.
n+8 ~ n+9
Content of the LBA High (Cylinder High) Register after command completion occurred.
n+10
Content of the Device/Head register after command completion occurred.
n+11
Content written to the Status register after command completion occurred.
n+12 ~ n+30
Extended error information (Vendor Specific)
n+31
This contains a value indicating the state of the device when command was written to the
Command register or the reset occurred as described below.
01h: Sleep
02h: Standby
03h: Active/Idle with BSY cleared to zero
04h: Executing SMART off-line or self-test
n+32 ~ n+33
Life timestamp
Power-on lifetime of the device in hours when command completion occurred.