#include <IOKit/scsi/IOSCSIPrimaryCommandsDevice.h>

IOKit/scsi/IOSCSIPrimaryCommandsDevice.h Kernel.framework

-----------------------------------------------------------------------------
27 macros · 3 enums · 1 struct

enum(anonymous)

Notification messages
underlying type unsigned int
kSCSIServicesNotification_Suspend1761607808
kSCSIServicesNotification_Resume1761607824

enum(anonymous)

Timeout values
underlying type unsigned int
kOneSecondTimeoutInMS1000
kTenSecondTimeoutInMS10000
kTwentyFiveSecondTimeoutInMS25000
kThirtySecondTimeoutInMS30000
kFortyFiveSecondTimeoutInMS45000

enum(anonymous)

Mode page values for page control field
underlying type unsigned int
kModePageControlCurrentValues0
kModePageControlChangeableValues1
kModePageControlDefaultValues2
kModePageControlSavedValues3

macrokDefaultRetryCount

The command should be tried 5 times. The original attempt plus 4 retries.
#define kDefaultRetryCount 4

structCmdErrLogInfo

size 24, align 8
UInt8fOpcode
UInt8fSenseKey
UInt8fSenseCode
UInt8fSenseCodeQual
UInt8fSenseValid
UInt16fErrCount
SCSIServiceResponsefServiceResponse
SCSITaskStatusfTaskStatus
UInt64flogAbsTS

macrofReadTimeoutDuration

#define fReadTimeoutDuration fIOSCSIPrimaryCommandsDeviceReserved->fReadTimeoutDuration

macrofWriteTimeoutDuration

#define fWriteTimeoutDuration fIOSCSIPrimaryCommandsDeviceReserved->fWriteTimeoutDuration

macrofRetryCount

#define fRetryCount fIOSCSIPrimaryCommandsDeviceReserved->fRetryCount

macrofNumCommandsExecuting

#define fNumCommandsExecuting fIOSCSIPrimaryCommandsDeviceReserved->fNumCommandsExecuting

macrofMaxPollRetries

#define fMaxPollRetries fIOSCSIPrimaryCommandsDeviceReserved->fMaxPollRetries

macrofPollDebounceRetriesLeft

#define fPollDebounceRetriesLeft fIOSCSIPrimaryCommandsDeviceReserved->fPollDebounceRetriesLeft

macrofPowerOnResetDebugInfo

#define fPowerOnResetDebugInfo fIOSCSIPrimaryCommandsDeviceReserved->fPowerOnResetDebugInfo

macrofClearNotReadyDebugInfo

#define fClearNotReadyDebugInfo fIOSCSIPrimaryCommandsDeviceReserved->fClearNotReadyDebugInfo

macrofPMAborted

#define fPMAborted fIOSCSIPrimaryCommandsDeviceReserved->fPMAborted

macrofSSGHandle

#define fSSGHandle fIOSCSIPrimaryCommandsDeviceReserved->fSSGHandle

macrofUpdateSSGStatsTime

#define fUpdateSSGStatsTime fIOSCSIPrimaryCommandsDeviceReserved->fUpdateSSGStatsTime

macrofReadBlockCount

#define fReadBlockCount fIOSCSIPrimaryCommandsDeviceReserved->fReadBlockCount

macrofWriteBlockCount

#define fWriteBlockCount fIOSCSIPrimaryCommandsDeviceReserved->fWriteBlockCount

macrofPowerEventLatencyLog

#define fPowerEventLatencyLog fIOSCSIPrimaryCommandsDeviceReserved->fPowerEventLatencyLog

macrofStartMaxLatency

#define fStartMaxLatency fIOSCSIPrimaryCommandsDeviceReserved->fStartMaxLatency

macrofStopMaxLatency

#define fStopMaxLatency fIOSCSIPrimaryCommandsDeviceReserved->fStopMaxLatency

macrofPowerEventLog

#define fPowerEventLog fIOSCSIPrimaryCommandsDeviceReserved->fPowerEventLog

macrofMaxPowerCPORLatency

#define fMaxPowerCPORLatency fIOSCSIPrimaryCommandsDeviceReserved->fMaxPowerCPORLatency

macrofMaxPowerCNRSLatency

#define fMaxPowerCNRSLatency fIOSCSIPrimaryCommandsDeviceReserved->fMaxPowerCNRSLatency

macrofMaxPowerVMPLatency

#define fMaxPowerVMPLatency fIOSCSIPrimaryCommandsDeviceReserved->fMaxPowerVMPLatency

macrofMaxPowerIOWaitLatency

#define fMaxPowerIOWaitLatency fIOSCSIPrimaryCommandsDeviceReserved->fMaxPowerIOWaitLatency

macrofMaxPowerOnLatency

#define fMaxPowerOnLatency fIOSCSIPrimaryCommandsDeviceReserved->fMaxPowerOnLatency

macrofMaxPowerOffLatency

#define fMaxPowerOffLatency fIOSCSIPrimaryCommandsDeviceReserved->fMaxPowerOffLatency

macrofCmdErrInfo

#define fCmdErrInfo fIOSCSIPrimaryCommandsDeviceReserved->fCmdErrInfo

macrofTurErrorOccurred

#define fTurErrorOccurred fIOSCSIPrimaryCommandsDeviceReserved->fTurErrorOccurred

macrofNoSyncAfterWrite

#define fNoSyncAfterWrite fIOSCSIPrimaryCommandsDeviceReserved->fNoSyncAfterWrite