Specifications
ATAPI For Streaming Tape QIC-157 Rev B
65
The Page Code field identifies the format and parameters defined for that mode page. Some page
codes are defined as applying to all Device types and other page codes are defined for the specific
Device type.
When using the MODE SENSE command, if page code 00h (vendor-specific page) is implemented,
the Device shall return that page last in response to a request to return all pages (page code 3Fh).
When using the MODE SELECT command, this page should be sent last.
The Page Length field specifies the length in bytes of the mode parameters that follow. If the Host
does not set this value to the value that is returned for the page by the MODE SENSE command, the
Device shall terminate the command with “Check Condition” status. The Sense Key shall be set to
ILLEGAL REQUEST with the Additional Sense Code set to INVALID FIELD IN PARAMETER
LIST. The Device is permitted to implement a mode page that is less than the full page length defined
by this specification, provided no field is truncated and the page length field correctly specifies the
actual length implemented.
The mode parameters for each page are defined in the following sub-sections. Mode parameters not
implemented by the Device shall be set to zero.
6.8.8.46.Mode Parameters
This section defines the descriptors and pages for mode parameters used with Devices.
The medium-type code field in the mode parameter header is reserved for use by Devices.
For the MODE SENSE command, the medium-type code field reflects the characteristics of the
cartridge currently installed in the Device. For some Devices, the default medium type code value
returned in response to a MODE SENSE command may change dynamically to match the most
recently inserted medium-type. Table 6-40 defines the medium-type code values
The medium-type code value returned in response to a MODE SENSE command shall be as described
below:
1. Following a UNIT ATTENTION condition for a power on or hard reset condition, while not ready,
the Device shall report the default or only medium-type.
2. Following a UNIT ATTENTION condition for a not-ready-to-ready transition, the Device shall:
a) report the default or only medium-type if no attempt has been made by the Device to
determine the medium-type.
b) report the default or only medium-type if the Device cannot automatically determine the
medium-type.
c) report the current recorded medium-type if the Device can automatically determine the
medium-type.
3. Following a successful read operation at or after beginning-of-medium, the Device shall report a
medium-type code value reflecting the installed cartridge. For some implementations, the Device
may automatically determine this value. For Devices not capable of automatic medium-type
determination, the medium-type code value is provided by the preceding MODE SELECT
command.
4. Following an unsuccessful read operation or a successful write operation, while at beginning-of-
partition, the Device shall: