MODE SENSE
6.Command Specification
SONY AIT-5 drive SDX-1100V series Ver.1.0
6-55
Supported page codes are:
Table 6-54: Supported MODE SENSE Page Codes
Page Code
Description
00h
02h
0Ah
0Fh
10h
11h
1Ch
31h
32h
33h
3Fh
Standard Sense
Disconnect-Reconnect
Control Mode Page
Data Compression Control
Device Configuration
Medium Partitions Parameter
Informational Exception Control
AIT Device Configuration
Append Partition (Not Support)
Delete Partition (Not Support)
Return All Pages
If the initiator selects any other values, the drive will terminate the command with a CHECK CONDITION status
and an ILLEGAL REQUEST sense key set.
Note:
If the Page Code is ZERO, the drive will only return the four-byte header and the eight-byte block descriptor
and terminate the command with GOOD status.
Allocation Length:
The Allocation Length specifies the number of bytes that the initiator has allocated for
returned MODE SENSE data. An Allocation Length of ZERO means that the drive will return no MODE SENSE
data. This is not considered an error and GOOD status will be returned. Any other value indicates the maximum
number of bytes that can be transferred. The drive terminates the DATA-IN phase when the Allocation Length
bytes have been transferred or when all available MODE SENSE data has been transferred to the initiator,
whichever is less. The Allocation Length must fall on header or block descriptor boundaries. If the Allocation
Length does not fall on these boundaries then the drive returns CHECK CONDITION status with the ILLEGAL
REQUEST sense key set, unless the value is greater than that required for the specified page.
If the Page Code is ZERO, the initiator requires MODE SENSE to only return the four-byte header the one
eight-byte block descriptor, therefore the Allocation Length must be set to 0Ch. The value of the Page Control
Field is then not checked by the drive and may be set to any value.
If the Allocation Length is non-ZERO, it must be set to 4 or more. If the Allocation length is non-ZERO and less
than 4, the drive will return CHECK CONDITION status and ILLEGAL REQUEST sense key.
The MODE SENSE data contains a four-byte header, followed by eight-byte block descriptor, followed by ZERO or
more variable length pages, depending on the Page Code and the Allocation Length.
Table 6-55: MODE SENSE data
Bit
Byte
7 6 5 4 3 2 1 0
0
Mode Data Length
1
Medium Type (00h)
2
WP
Buffered Mode (001b)
Speed (00h)
3
Block Descriptor Length (08h)
4
Density Code (33h)
5
(MSB)
6
Number of Blocks (00 00 00h)
7
(LSB)
8
Reserved
9
(MSB)
10
Block
Length
11
(LSB)
Mode Data Length:
The mode data length specifies the length in bytes of the following MODE SENSE data that is
available to be transferred during the DATA-IN phase. The mode data length does not include itself but does
include the total length of all requested MODE SENSE pages.