MODE SENSE

6.Command Specification

Supported page codes are:

Table 6-54: Supported MODE SENSE Page Codes

Page Code

Description

00h

Standard Sense

02h

Disconnect-Reconnect

0Ah

Control Mode Page

0Fh

Data Compression Control

10h

Device Configuration

11h

Medium Partitions Parameter

1Ch

Informational Exception Control

31h

AIT Device Configuration

32h

Append Partition (Not Support)

33h

Delete Partition (Not Support)

3Fh

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

7

6

 

5

 

4

 

3

 

2

1

0

Byte

 

 

 

 

 

 

 

 

 

 

 

 

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)

 

 

 

Number of Blocks (00 00 00h)

 

 

 

6

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

(LSB)

8

 

 

 

 

 

 

Reserved

 

 

 

9

(MSB)

 

 

 

 

Block Length

 

 

 

10

 

 

 

 

 

 

 

 

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.

SONY AIT-5 drive SDX-1100V series Ver.1.0

6-55

Page 109
Image 109
Sony SDX-1100V/R manual Supported Mode Sense Page Codes Description, Length 08h Density Code 33h