7. ATAPI Packet Command Specification
LOG SENSE
SONY AIT-2 Turbo drive SDX-560V series Ver.1.0
7-12
Supported pages are:
Table 7-11: LOG PAGE Supported Log Pages
Page Code
Description
Allocation Length
00h
Supported Log Pages
12h
02h
Write Error Counter Page
20h
03h
Read Error Counter Page
20h
07h
Last n Error Events Page
1A8h (max)
30h
Tape Log Page (Sony Unique)
5Ch
31h
Tape Capacity Log Page
24h
33h
Drive Usage Log Page (Sony Unique)
8Eh
34h
Write Frame Error Counter Page
3Ch
35h
Read Frame Error Counter Page
4Ch
39h
Transfer Log Page
5Ch
3Ch
AIT Log Page
90h X Partition4
Parameter Pointer:
The Parameter Pointer field allows the host to specify at which parameter within a log page
the requested data should begin.
For example if a page supported parameters 0 through 5, and the Parameter Pointer field contained 3 then only
parameters 3, 4 and 5 would be returned to the initiator. Similarly, if a page supported parameters 1, 3 and 6, and
the Parameter Pointer field contained 2, then only parameters 3 and 6 would be returned to the initiator.
Note that parameters within a page are always returned in ascending order according to parameter code. If an
invalid parameter pointer is sent the drive will return CHECK CONDITION with the sense key set to ILLEGAL
REQUEST and an additional sense code of INVALID FIELD IN CDB.
Allocation Length:
The Allocation Length field is used to inform the target how much space the initiator has
allocated for data. The drive will give a CHECK CONDITION because of this. It will return whatever host requests,
up to the total data. Note however that if this field is 0 then this is not considered an error and the device will just
return a GOOD STATUS.
7.6.1.
The Log Page Descriptor
The format of the log pages consists of ZERO or more variable-length parameter structures. Each page begins
with a 4-byte header followed by ZERO or more variable-length parameter structures defined for that page. The
Log Select command supports the ability to send ZERO or more log pages. The LOG SENSE command returns a
single log page as specified in the Page Code field of the CDB.
Table 7-12: LOG PAGE Page Descriptor
Bit
Byte
7 6 5 4 3 2 1 0
0
Reserved Page
Code
1
Reserved
2
(MSB)
3
Page Length (n-3)
(LSB)
Log Parameter (s)
4
Log Parameter (First)
x+3
(Length x)
n-y
Log Parameter (Last)
n
(Length y)
Page code:
Identifies which page of data is being transferred. If the Page Code field value is reserved or not
implemented by the target, the target shall terminate the command with a CHECK CONDITION status. The sense
key shall be set to ILLEGAL REQUEST, and the additional sense code shall be set to INVALID FIELD IN
PARAMETER LIST.