#include <IOKit/scsi/SCSICmds_READ_CAPACITY_Definitions.h>

IOKit/scsi/SCSICmds_READ_CAPACITY_Definitions.h Kernel.framework

@header SCSI Request Sense Definitions @discussion This file contains all definitions for the data returned from the READ CAPACITY 10 (0x25) and READ CAPACITY 16 (0x9E) commands.
includes: TargetConditionals.h, Kernel/stdint.h, IOKit/IOTypes.h
3 enums · 2 macros · 2 structs · 2 typedefs

enum(anonymous)

@enum READ CAPACITY Payload Sizes @discussion Sizes of the payload for the READ CAPACITY 10 and READ CAPACITY 16 commands. @constant kREPORT_CAPACITY_DataSize Data size for a READ_CAPACITY command. @constant kREPORT_CAPACITY_16_DataSize Data size for a READ_CAPACITY_16 command.
underlying type unsigned int
kREPORT_CAPACITY_DataSize8
kREPORT_CAPACITY_16_DataSize32

macrokREPORT_CAPACITY_MaximumLBA

@constant kREPORT_CAPACITY_MaximumLBA @discussion Maximum LBA supported via READ CAPACITY 10 command.
#define kREPORT_CAPACITY_MaximumLBA 0xFFFFFFFFUL

macrokREPORT_CAPACITY_16_MaximumLBA

@constant kREPORT_CAPACITY_16_MaximumLBA @discussion Maximum LBA supported via READ CAPACITY 16 command.
#define kREPORT_CAPACITY_16_MaximumLBA 0xFFFFFFFFFFFFFFFFULL

structSCSI_Capacity_Data

@struct SCSI_Capacity_Data @discussion Capacity return structure for READ CAPACITY 10 command.
size 8, align 4
UInt32RETURNED_LOGICAL_BLOCK_ADDRESS
UInt32BLOCK_LENGTH_IN_BYTES

typedefSCSI_Capacity_Data

typedef struct SCSI_Capacity_Data SCSI_Capacity_Data;

structSCSI_Capacity_Data_Long

@struct SCSI_Capacity_Data_Long @discussion Capacity return structure for READ CAPACITY 16 command.
size 32, align 8
UInt64RETURNED_LOGICAL_BLOCK_ADDRESS
UInt32BLOCK_LENGTH_IN_BYTES
UInt8RTO_EN_PROT_EN
UInt8[19]Reserved

typedefSCSI_Capacity_Data_Long

typedef struct SCSI_Capacity_Data_Long SCSI_Capacity_Data_Long;

enum(anonymous)

@enum RTO_EN definitions @discussion Values for the REFERENCE TAG OWN (RTO_EN) bit in the READ CAPACITY Long Data structure. @constant kREAD_CAPACITY_RTO_Enabled Reference Tag Own enabled. @constant kREAD_CAPACITY_RTO_Disabled Reference Tag Own disabled. @constant kREAD_CAPACITY_RTO_Mask Mask to use when checking the RTO_EN_PROT_EN field.
underlying type unsigned int
kREAD_CAPACITY_RTO_Enabled2
kREAD_CAPACITY_RTO_Disabled0
kREAD_CAPACITY_RTO_Mask2

enum(anonymous)

underlying type unsigned int
kREAD_CAPACITY_PROT_Enabled1
kREAD_CAPACITY_PROT_Disabled0
kREAD_CAPACITY_PROT_Mask1