#include <IOKit/scsi/SCSICmds_MODE_Definitions.h>

IOKit/scsi/SCSICmds_MODE_Definitions.h Kernel.framework

-----------------------------------------------------------------------------
includes: IOKit/IOTypes.h
13 enums · 11 structs · 11 typedefs

structSPCModeParameterHeader6

@struct SPCModeParameterHeader6 @discussion Mode Parameter Header for the MODE_SENSE_6 command.
size 4, align 1
UInt8MODE_DATA_LENGTH
UInt8MEDIUM_TYPE
UInt8DEVICE_SPECIFIC_PARAMETER
UInt8BLOCK_DESCRIPTOR_LENGTH

typedefSPCModeParameterHeader6

typedef struct SPCModeParameterHeader6 SPCModeParameterHeader6;

structSPCModeParameterHeader10

@struct SPCModeParameterHeader10 @discussion Mode Parameter Header for the MODE_SENSE_10 command.
size 8, align 1
UInt16MODE_DATA_LENGTH
UInt8MEDIUM_TYPE
UInt8DEVICE_SPECIFIC_PARAMETER
UInt8LONGLBA
UInt8RESERVED
UInt16BLOCK_DESCRIPTOR_LENGTH

typedefSPCModeParameterHeader10

typedef struct SPCModeParameterHeader10 SPCModeParameterHeader10;

enum(anonymous)

@enum Long LBA Bitfield definitions @discussion Long LBA Bitfield definitions for Mode Parameter Header for MODE_SENSE_10 command. @constant kModeSenseParameterHeader10_LongLBABit Bit to indicate Long LBA block descriptors follow. @constant kModeSenseParameterHeader10_LongLBAMask Mask to test for kModeSenseParameterHeader10_LongLBABit.
underlying type unsigned int
kModeSenseParameterHeader10_LongLBABit0
kModeSenseParameterHeader10_LongLBAMask1

enum(anonymous)

@enum Device Specific Parameter Bitfield definitions @discussion SBC definitions for Device Specific Parameter in the Mode Sense Header Block. @constant kModeSenseSBCDeviceSpecific_DPOFUABit Bit to indicate DPO and FUA bits are accepted by the device server. @constant kModeSenseSBCDeviceSpecific_WriteProtectBit Bit to indicate medium is write protected. @constant kModeSenseSBCDeviceSpecific_DPOFUAMask Mask to test for kModeSenseSBCDeviceSpecific_DPOFUABit. @constant kModeSenseSBCDeviceSpecific_WriteProtectMask Mask to test for kModeSenseSBCDeviceSpecific_WriteProtectBit.
underlying type unsigned int
kModeSenseSBCDeviceSpecific_DPOFUABit4
kModeSenseSBCDeviceSpecific_WriteProtectBit7
kModeSenseSBCDeviceSpecific_DPOFUAMask16
kModeSenseSBCDeviceSpecific_WriteProtectMask128

structModeParameterBlockDescriptor

@struct ModeParameterBlockDescriptor @discussion General mode parameter block descriptor.
size 8, align 1
UInt8DENSITY_CODE
UInt8[3]NUMBER_OF_BLOCKS
UInt8RESERVED
UInt8[3]BLOCK_LENGTH

typedefModeParameterBlockDescriptor

typedef struct ModeParameterBlockDescriptor ModeParameterBlockDescriptor;

structDASDModeParameterBlockDescriptor

@struct DASDModeParameterBlockDescriptor @discussion Direct Access Storage Device mode parameter block descriptor.
size 8, align 1
UInt32NUMBER_OF_BLOCKS
UInt8DENSITY_CODE
UInt8[3]BLOCK_LENGTH

typedefDASDModeParameterBlockDescriptor

typedef struct DASDModeParameterBlockDescriptor DASDModeParameterBlockDescriptor;

structLongLBAModeParameterBlockDescriptor

@struct LongLBAModeParameterBlockDescriptor @discussion Long LBA mode parameter block descriptor.
size 16, align 1
UInt64NUMBER_OF_BLOCKS
UInt8DENSITY_CODE
UInt8[3]RESERVED
UInt32BLOCK_LENGTH

typedefLongLBAModeParameterBlockDescriptor

typedef struct LongLBAModeParameterBlockDescriptor LongLBAModeParameterBlockDescriptor;

structModePageFormatHeader

@struct ModePageFormatHeader @discussion Mode Page format header.
size 2, align 1
UInt8PS_PAGE_CODE
UInt8PAGE_LENGTH

typedefModePageFormatHeader

typedef struct ModePageFormatHeader ModePageFormatHeader;

enum(anonymous)

@enum Mode Page Format bit definitions @discussion Mode Page Format bit definitions. @constant kModePageFormat_PS_Bit Bit to indicate Parameters Saveable. @constant kModePageFormat_PAGE_CODE_Mask Mask to obtain the PAGE_CODE from the PS_PAGE_CODE field. @constant kModePageFormat_PS_Mask Mask to test for kModePageFormat_PS_Bit.
underlying type unsigned int
kModePageFormat_PS_Bit7
kModePageFormat_PAGE_CODE_Mask63
kModePageFormat_PS_Mask128

enum(anonymous)

@enum SPC Mode Pages @discussion SPC Mode Page definitions. @constant kSPCModePagePowerConditionCode Power Conditions Mode Page value. @constant kSPCModePageAllPagesCode All Mode Pages value.
underlying type unsigned int
kSPCModePagePowerConditionCode26
kSPCModePageAllPagesCode63

structSPCModePagePowerCondition

@struct SPCModePagePowerCondition @discussion Power Conditions Mode Page (PAGE CODE 0x1A) format.
size 12, align 1
ModePageFormatHeaderheader
UInt8RESERVED
UInt8IDLE_STANDBY
UInt32IDLE_CONDITION_TIMER
UInt32STANDBY_CONDITION_TIMER

typedefSPCModePagePowerCondition

typedef struct SPCModePagePowerCondition SPCModePagePowerCondition;

enum(anonymous)

@enum SBC Mode Pages @discussion SBC Mode Page definitions. @constant kSBCModePageFormatDeviceCode Format Device Mode Page value. @constant kSBCModePageRigidDiskGeometryCode Rigid Disk Geometry Page value. @constant kSBCModePageFlexibleDiskCode Flexible Disk Page value. @constant kSBCModePageCachingCode Caching Page value.
underlying type unsigned int
kSBCModePageFormatDeviceCode3
kSBCModePageRigidDiskGeometryCode4
kSBCModePageFlexibleDiskCode5
kSBCModePageCachingCode8

structSBCModePageFormatDevice

@struct SBCModePageFormatDevice @discussion Format Device Mode Page (PAGE CODE 0x03) format.
size 24, align 1
ModePageFormatHeaderheader
UInt16TRACKS_PER_ZONE
UInt16ALTERNATE_SECTORS_PER_ZONE
UInt16ALTERNATE_TRACKS_PER_ZONE
UInt16ALTERNATE_TRACKS_PER_LOGICAL_UNIT
UInt16SECTORS_PER_TRACK
UInt16DATA_BYTES_PER_PHYSICAL_SECTOR
UInt16INTERLEAVE
UInt16TRACK_SKEW_FACTOR
UInt16CYLINDER_SKEW_FACTOR
UInt8SSEC_HSEC_RMB_SURF
UInt8[3]RESERVED

typedefSBCModePageFormatDevice

typedef struct SBCModePageFormatDevice SBCModePageFormatDevice;

structSBCModePageRigidDiskGeometry

@struct SBCModePageRigidDiskGeometry @discussion Rigid Disk Geometry Mode Page (PAGE CODE 0x04) format.
size 24, align 1
ModePageFormatHeaderheader
UInt8[3]NUMBER_OF_CYLINDERS
UInt8NUMBER_OF_HEADS
UInt8[3]STARTING_CYLINDER_WRITE_PRECOMPENSATION
UInt8[3]STARTING_CYLINDER_REDUCED_WRITE_CURRENT
UInt16DEVICE_STEP_RATE
UInt8[3]LANDING_ZONE_CYLINDER
UInt8RPL
UInt8ROTATIONAL_OFFSET
UInt8RESERVED
UInt16MEDIUM_ROTATION_RATE
UInt8[2]RESERVED1

typedefSBCModePageRigidDiskGeometry

typedef struct SBCModePageRigidDiskGeometry SBCModePageRigidDiskGeometry;

enum(anonymous)

@enum Rigid Disk Geometry bitfields @discussion Bit field masks for Rigid Disk Geometry structure fields. @constant kSBCModePageRigidDiskGeometry_RPL_Mask Mask for use with the RPL field.
underlying type unsigned int
kSBCModePageRigidDiskGeometry_RPL_Mask3

structSBCModePageFlexibleDisk

@struct SBCModePageFlexibleDisk @discussion Flexible Disk Mode Page (PAGE CODE 0x05) format.
size 32, align 1
ModePageFormatHeaderheader
UInt16TRANSFER_RATE
UInt8NUMBER_OF_HEADS
UInt8SECTORS_PER_TRACK
UInt16DATA_BYTES_PER_SECTOR
UInt16NUMBER_OF_CYLINDERS
UInt16STARTING_CYLINDER_WRITE_PRECOMPENSATION
UInt16STARTING_CYLINDER_REDUCED_WRITE_CURRENT
UInt16DEVICE_STEP_RATE
UInt8DEVICE_STEP_PULSE_WIDTH
UInt16HEAD_SETTLE_DELAY
UInt8MOTOR_ON_DELAY
UInt8MOTOR_OFF_DELAY
UInt8TRDY_SSN_MO
UInt8SPC
UInt8WRITE_COMPENSATION
UInt8HEAD_LOAD_DELAY
UInt8HEAD_UNLOAD_DELAY
UInt8PIN_34_PIN_2
UInt8PIN_4_PIN_1
UInt16MEDIUM_ROTATION_RATE
UInt8[2]RESERVED

typedefSBCModePageFlexibleDisk

typedef struct SBCModePageFlexibleDisk SBCModePageFlexibleDisk;

enum(anonymous)

@enum TRDY_SSN_MO bitfields @discussion Bit field definitions and masks for Flexible Disk TRDY_SSN_MO field. @constant kSBCModePageFlexibleDisk_MO_Bit MO Bit definition. @constant kSBCModePageFlexibleDisk_SSN_Bit SSN Bit definition. @constant kSBCModePageFlexibleDisk_TRDY_Bit TRDY Bit definition. @constant kSBCModePageFlexibleDisk_MO_Mask Mask for use with TRDY_SSN_MO field. @constant kSBCModePageFlexibleDisk_SSN_Mask Mask for use with TRDY_SSN_MO field. @constant kSBCModePageFlexibleDisk_TRDY_Mask Mask for use with TRDY_SSN_MO field.
underlying type unsigned int
kSBCModePageFlexibleDisk_MO_Bit5Bits 0:4 Reserved
kSBCModePageFlexibleDisk_SSN_Bit6
kSBCModePageFlexibleDisk_TRDY_Bit7
kSBCModePageFlexibleDisk_MO_Mask32
kSBCModePageFlexibleDisk_SSN_Mask64
kSBCModePageFlexibleDisk_TRDY_Mask128

enum(anonymous)

@enum SPC bitfields @discussion Bit field definitions and masks for Flexible Disk SPC field. @constant kSBCModePageFlexibleDisk_SPC_Mask Mask for use with SPC field.
underlying type unsigned int
kSBCModePageFlexibleDisk_SPC_Mask15

enum(anonymous)

@enum PIN_34_PIN_2 bitfields @discussion Bit field definitions and masks for Flexible Disk PIN_34_PIN_2 field. @constant kSBCModePageFlexibleDisk_PIN_2_Mask Mask for use with PIN_34_PIN_2 field. @constant kSBCModePageFlexibleDisk_PIN_34_Mask Mask for use with PIN_34_PIN_2 field.
underlying type unsigned int
kSBCModePageFlexibleDisk_PIN_2_Mask15
kSBCModePageFlexibleDisk_PIN_34_Mask240

enum(anonymous)

@enum PIN_4_PIN_1 bitfields @discussion Bit field definitions and masks for Flexible Disk PIN_4_PIN_1 field. @constant kSBCModePageFlexibleDisk_PIN_1_Mask Mask for use with PIN_4_PIN_1 field. @constant kSBCModePageFlexibleDisk_PIN_4_Mask Mask for use with PIN_4_PIN_1 field.
underlying type unsigned int
kSBCModePageFlexibleDisk_PIN_1_Mask15
kSBCModePageFlexibleDisk_PIN_4_Mask240

structSBCModePageCaching

@struct SBCModePageCaching @discussion Caching Mode Page (PAGE CODE 0x08) format.
size 20, align 1
ModePageFormatHeaderheader
UInt8flags
UInt8DEMAND_READ_WRITE_RETENTION_PRIORITY
UInt16DISABLE_PREFETCH_TRANSFER_LENGTH
UInt16MINIMUM_PREFETCH
UInt16MAXIMUM_PREFETCH
UInt16MAXIMUM_PREFETCH_CEILING
UInt8flags2
UInt8NUMBER_OF_CACHE_SEGMENTS
UInt16CACHE_SEGMENT_SIZE
UInt8RESERVED
UInt8[3]NON_CACHE_SEGMENT_SIZE

typedefSBCModePageCaching

typedef struct SBCModePageCaching SBCModePageCaching;

enum(anonymous)

@enum Caching flags bitfields @discussion Bit field definitions and masks for Caching flags field. @constant kSBCModePageCaching_RCD_Bit RCD Bit definition. @constant kSBCModePageCaching_MF_Bit MF Bit definition. @constant kSBCModePageCaching_WCE_Bit WCE Bit definition. @constant kSBCModePageCaching_SIZE_Bit SIZE Bit definition. @constant kSBCModePageCaching_DISC_Bit DISC Bit definition. @constant kSBCModePageCaching_CAP_Bit CAP Bit definition. @constant kSBCModePageCaching_ABPF_Bit ABPF Bit definition. @constant kSBCModePageCaching_IC_Bit IC Bit definition. @constant kSBCModePageCaching_RCD_Mask Mask for use with flags field. @constant kSBCModePageCaching_MF_Mask Mask for use with flags field. @constant kSBCModePageCaching_WCE_Mask Mask for use with flags field. @constant kSBCModePageCaching_SIZE_Mask Mask for use with flags field. @constant kSBCModePageCaching_DISC_Mask Mask for use with flags field. @constant kSBCModePageCaching_CAP_Mask Mask for use with flags field. @constant kSBCModePageCaching_ABPF_Mask Mask for use with flags field. @constant kSBCModePageCaching_IC_Mask Mask for use with flags field.
underlying type unsigned int
kSBCModePageCaching_RCD_Bit0
kSBCModePageCaching_MF_Bit1
kSBCModePageCaching_WCE_Bit2
kSBCModePageCaching_SIZE_Bit3
kSBCModePageCaching_DISC_Bit4
kSBCModePageCaching_CAP_Bit5
kSBCModePageCaching_ABPF_Bit6
kSBCModePageCaching_IC_Bit7
kSBCModePageCaching_RCD_Mask1
kSBCModePageCaching_MF_Mask2
kSBCModePageCaching_WCE_Mask4
kSBCModePageCaching_SIZE_Mask8
kSBCModePageCaching_DISC_Mask16
kSBCModePageCaching_CAP_Mask32
kSBCModePageCaching_ABPF_Mask64
kSBCModePageCaching_IC_Mask128

enum(anonymous)

@enum Demand Read/Write Retention masks @discussion Demand Read/Write Retention masks. @constant kSBCModePageCaching_DEMAND_WRITE_Mask Mask for the DEMAND_READ_WRITE_RETENTION_PRIORITY field. @constant kSBCModePageCaching_DEMAND_READ_Mask Mask for the DEMAND_READ_WRITE_RETENTION_PRIORITY field.
underlying type unsigned int
kSBCModePageCaching_DEMAND_WRITE_Mask255
kSBCModePageCaching_DEMAND_READ_Mask65280

enum(anonymous)

@enum Caching flags2 bitfields @discussion Bit field definitions and masks for Caching flags2 field. @constant kSBCModePageCaching_VS1_Bit VS1 Bit definition. @constant kSBCModePageCaching_VS2_Bit VS2 Bit definition. @constant kSBCModePageCaching_DRA_Bit DRA Bit definition. @constant kSBCModePageCaching_LBCSS_Bit LBCSS Bit definition. @constant kSBCModePageCaching_FSW_Bit FSW Bit definition. @constant kSBCModePageCaching_VS1_Mask Mask for use with flags2 field. @constant kSBCModePageCaching_VS2_Mask Mask for use with flags2 field. @constant kSBCModePageCaching_DRA_Mask Mask for use with flags2 field. @constant kSBCModePageCaching_LBCSS_Mask Mask for use with flags2 field. @constant kSBCModePageCaching_FSW_Mask Mask for use with flags2 field.
underlying type unsigned int
kSBCModePageCaching_VS1_Bit3Bits 0:2 Reserved
kSBCModePageCaching_VS2_Bit4
kSBCModePageCaching_DRA_Bit5
kSBCModePageCaching_LBCSS_Bit6
kSBCModePageCaching_FSW_Bit7
kSBCModePageCaching_VS1_Mask8
kSBCModePageCaching_VS2_Mask16
kSBCModePageCaching_DRA_Mask32
kSBCModePageCaching_LBCSS_Mask64
kSBCModePageCaching_FSW_Mask128