ReactOS  0.4.15-dev-1206-g731eddf
scsi.h File Reference
#include "srb.h"
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for scsi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  _CDB
 
struct  _CDB::_CDB6GENERIC
 
struct  _CDB::_CDB6READWRITE
 
struct  _CDB::_CDB6INQUIRY
 
struct  _CDB::_CDB6INQUIRY3
 
struct  _CDB::_CDB6VERIFY
 
struct  _CDB::_CDB6FORMAT
 
struct  _CDB::_CDB10
 
struct  _CDB::_CDB12
 
struct  _CDB::_CDB16
 
struct  _CDB::_PAUSE_RESUME
 
struct  _CDB::_READ_TOC
 
struct  _CDB::_READ_DISK_INFORMATION
 
struct  _CDB::_READ_TRACK_INFORMATION
 
struct  _CDB::_RESERVE_TRACK_RZONE
 
struct  _CDB::_SEND_OPC_INFORMATION
 
struct  _CDB::_REPAIR_TRACK
 
struct  _CDB::_CLOSE_TRACK
 
struct  _CDB::_READ_BUFFER_CAPACITY
 
struct  _CDB::_SEND_CUE_SHEET
 
struct  _CDB::_READ_HEADER
 
struct  _CDB::_PLAY_AUDIO
 
struct  _CDB::_PLAY_AUDIO_MSF
 
struct  _CDB::_BLANK_MEDIA
 
struct  _CDB::_PLAY_CD
 
struct  _CDB::_SCAN_CD
 
struct  _CDB::_STOP_PLAY_SCAN
 
struct  _CDB::_SUBCHANNEL
 
struct  _CDB::_READ_CD
 
struct  _CDB::_READ_CD_MSF
 
struct  _CDB::_PLXTR_READ_CDDA
 
struct  _CDB::_NEC_READ_CDDA
 
struct  _CDB::_MODE_SENSE
 
struct  _CDB::_MODE_SENSE10
 
struct  _CDB::_MODE_SELECT
 
struct  _CDB::_MODE_SELECT10
 
struct  _CDB::_LOCATE
 
struct  _CDB::_LOGSENSE
 
struct  _CDB::_LOGSELECT
 
struct  _CDB::_PRINT
 
struct  _CDB::_SEEK
 
struct  _CDB::_ERASE
 
struct  _CDB::_START_STOP
 
struct  _CDB::_MEDIA_REMOVAL
 
struct  _CDB::_SEEK_BLOCK
 
struct  _CDB::_REQUEST_BLOCK_ADDRESS
 
struct  _CDB::_PARTITION
 
struct  _CDB::_WRITE_TAPE_MARKS
 
struct  _CDB::_SPACE_TAPE_MARKS
 
struct  _CDB::_READ_POSITION
 
struct  _CDB::_CDB6READWRITETAPE
 
struct  _CDB::_INIT_ELEMENT_STATUS
 
struct  _CDB::_INITIALIZE_ELEMENT_RANGE
 
struct  _CDB::_POSITION_TO_ELEMENT
 
struct  _CDB::_MOVE_MEDIUM
 
struct  _CDB::_EXCHANGE_MEDIUM
 
struct  _CDB::_READ_ELEMENT_STATUS
 
struct  _CDB::_SEND_VOLUME_TAG
 
struct  _CDB::_REQUEST_VOLUME_ELEMENT_ADDRESS
 
struct  _CDB::_LOAD_UNLOAD
 
struct  _CDB::_MECH_STATUS
 
struct  _CDB::_SYNCHRONIZE_CACHE10
 
struct  _CDB::_GET_EVENT_STATUS_NOTIFICATION
 
struct  _CDB::_GET_PERFORMANCE
 
struct  _CDB::_READ_DVD_STRUCTURE
 
struct  _CDB::_SET_STREAMING
 
struct  _CDB::_SEND_DVD_STRUCTURE
 
struct  _CDB::_SEND_KEY
 
struct  _CDB::_REPORT_KEY
 
struct  _CDB::_SET_READ_AHEAD
 
struct  _CDB::_READ_FORMATTED_CAPACITIES
 
struct  _CDB::_REPORT_LUNS
 
struct  _CDB::_PERSISTENT_RESERVE_IN
 
struct  _CDB::_PERSISTENT_RESERVE_OUT
 
struct  _CDB::_GET_CONFIGURATION
 
struct  _CDB::_SET_CD_SPEED
 
struct  _CDB::_READ12
 
struct  _CDB::_WRITE12
 
struct  _CDB::_READ16
 
struct  _CDB::_WRITE16
 
struct  _CDB::_VERIFY16
 
struct  _CDB::_SYNCHRONIZE_CACHE16
 
struct  _CDB::_READ_CAPACITY16
 
struct  _CDB::_TOKEN_OPERATION
 
struct  _CDB::_RECEIVE_TOKEN_INFORMATION
 
struct  _CDB::_UNMAP
 
struct  _CDB::_GET_LBA_STATUS
 
struct  _NOTIFICATION_EVENT_STATUS_HEADER
 
struct  _NOTIFICATION_OPERATIONAL_STATUS
 
struct  _NOTIFICATION_POWER_STATUS
 
struct  _NOTIFICATION_EXTERNAL_STATUS
 
struct  _NOTIFICATION_MEDIA_STATUS
 
struct  _NOTIFICATION_MULTI_HOST_STATUS
 
struct  _NOTIFICATION_BUSY_STATUS
 
struct  _READ_DVD_STRUCTURES_HEADER
 
struct  _CDVD_KEY_HEADER
 
struct  _CDVD_REPORT_AGID_DATA
 
struct  _CDVD_CHALLENGE_KEY_DATA
 
struct  _CDVD_KEY_DATA
 
struct  _CDVD_REPORT_ASF_DATA
 
struct  _CDVD_TITLE_KEY_HEADER
 
struct  _FORMAT_DESCRIPTOR
 
struct  _FORMAT_LIST_HEADER
 
struct  _FORMATTED_CAPACITY_DESCRIPTOR
 
struct  _FORMATTED_CAPACITY_LIST
 
struct  _OPC_TABLE_ENTRY
 
struct  _DISC_INFORMATION
 
struct  _DISK_INFORMATION
 
struct  _DATA_BLOCK_HEADER
 
struct  _TRACK_INFORMATION
 
struct  _TRACK_INFORMATION2
 
struct  _TRACK_INFORMATION3
 
struct  _PERFORMANCE_DESCRIPTOR
 
struct  _SCSI_EXTENDED_MESSAGE
 
union  _SCSI_EXTENDED_MESSAGE::_EXTENDED_ARGUMENTS
 
struct  _INQUIRYDATA
 
struct  _VPD_MEDIA_SERIAL_NUMBER_PAGE
 
struct  _VPD_SERIAL_NUMBER_PAGE
 
struct  _VPD_IDENTIFICATION_DESCRIPTOR
 
struct  _VPD_IDENTIFICATION_PAGE
 
struct  _VPD_ATA_INFORMATION_PAGE
 
struct  _VPD_THIRD_PARTY_COPY_PAGE
 
struct  _WINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR
 
struct  _VPD_BLOCK_LIMITS_PAGE
 
struct  _VPD_BLOCK_DEVICE_CHARACTERISTICS_PAGE
 
struct  _VPD_LOGICAL_BLOCK_PROVISIONING_PAGE
 
struct  _VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGE
 
struct  _VPD_SUPPORTED_PAGES_PAGE
 
struct  _PRI_REGISTRATION_LIST
 
struct  _PRI_RESERVATION_DESCRIPTOR
 
struct  _PRI_RESERVATION_LIST
 
struct  _PRO_PARAMETER_LIST
 
struct  _SENSE_DATA
 
struct  _SCSI_SENSE_DESCRIPTOR_HEADER
 
struct  _SCSI_SENSE_DESCRIPTOR_INFORMATION
 
struct  _SCSI_SENSE_DESCRIPTOR_BLOCK_COMMAND
 
struct  _SCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURN
 
struct  _DESCRIPTOR_SENSE_DATA
 
union  _SENSE_DATA_EX
 
struct  _READ_CAPACITY_DATA
 
struct  _READ_CAPACITY_DATA_EX
 
struct  _READ_CAPACITY16_DATA
 
struct  _LBA_STATUS_DESCRIPTOR
 
struct  _LBA_STATUS_LIST_HEADER
 
struct  _READ_BLOCK_LIMITS
 
struct  _READ_BUFFER_CAPACITY_DATA
 
struct  _MODE_PARAMETER_HEADER
 
struct  _MODE_PARAMETER_HEADER10
 
struct  _MODE_PARAMETER_BLOCK
 
struct  _MODE_DISCONNECT_PAGE
 
struct  _MODE_CACHING_PAGE
 
struct  _MODE_CDROM_WRITE_PARAMETERS_PAGE2
 
struct  _MODE_MRW_PAGE
 
struct  _MODE_FLEXIBLE_DISK_PAGE
 
struct  _MODE_FORMAT_PAGE
 
struct  _MODE_RIGID_GEOMETRY_PAGE
 
struct  _MODE_READ_WRITE_RECOVERY_PAGE
 
struct  _MODE_READ_RECOVERY_PAGE
 
struct  _MODE_INFO_EXCEPTIONS
 
struct  _POWER_CONDITION_PAGE
 
struct  _CDDA_OUTPUT_PORT
 
struct  _CDAUDIO_CONTROL_PAGE
 
struct  _CDVD_FEATURE_SET_PAGE
 
struct  _CDVD_INACTIVITY_TIMEOUT_PAGE
 
struct  _CDVD_CAPABILITIES_PAGE
 
struct  _LUN_LIST
 
struct  _MODE_PARM_READ_WRITE
 
struct  _PORT_OUTPUT
 
struct  _AUDIO_OUTPUT
 
struct  _MECHANICAL_STATUS_INFORMATION_HEADER
 
struct  _SLOT_TABLE_INFORMATION
 
struct  _MECHANICAL_STATUS
 
struct  _TAPE_POSITION_DATA
 
struct  _UNMAP_BLOCK_DESCRIPTOR
 
struct  _UNMAP_LIST_HEADER
 
struct  _LOG_PARAMETER_HEADER
 
struct  _LOG_PARAMETER
 
struct  _LOG_PAGE
 
struct  _LOG_PARAMETER_THRESHOLD_RESOURCE_COUNT
 
struct  _LOG_PAGE_LOGICAL_BLOCK_PROVISIONING
 
struct  _MODE_CONTROL_PAGE
 
union  _EIGHT_BYTE
 
union  _FOUR_BYTE
 
union  _TWO_BYTE
 
struct  _STOR_ADDRESS
 
struct  _STOR_ADDR_BTL8
 
struct  _MODE_CDROM_WRITE_PARAMETERS_PAGE
 
struct  BLOCK_DEVICE_RANGE_DESCRIPTOR
 
struct  POPULATE_TOKEN_HEADER
 
struct  WRITE_USING_TOKEN_HEADER
 
struct  RECEIVE_TOKEN_INFORMATION_HEADER
 
struct  RECEIVE_TOKEN_INFORMATION_RESPONSE_HEADER
 
struct  BLOCK_DEVICE_TOKEN_DESCRIPTOR
 

Macros

#define NOTIFICATION_OPERATIONAL_CHANGE_CLASS_MASK   0x02
 
#define NOTIFICATION_POWER_MANAGEMENT_CLASS_MASK   0x04
 
#define NOTIFICATION_EXTERNAL_REQUEST_CLASS_MASK   0x08
 
#define NOTIFICATION_MEDIA_STATUS_CLASS_MASK   0x10
 
#define NOTIFICATION_MULTI_HOST_CLASS_MASK   0x20
 
#define NOTIFICATION_DEVICE_BUSY_CLASS_MASK   0x40
 
#define NOTIFICATION_NO_CLASS_EVENTS   0x0
 
#define NOTIFICATION_OPERATIONAL_CHANGE_CLASS_EVENTS   0x1
 
#define NOTIFICATION_POWER_MANAGEMENT_CLASS_EVENTS   0x2
 
#define NOTIFICATION_EXTERNAL_REQUEST_CLASS_EVENTS   0x3
 
#define NOTIFICATION_MEDIA_STATUS_CLASS_EVENTS   0x4
 
#define NOTIFICATION_MULTI_HOST_CLASS_EVENTS   0x5
 
#define NOTIFICATION_DEVICE_BUSY_CLASS_EVENTS   0x6
 
#define NOTIFICATION_OPERATIONAL_EVENT_NO_CHANGE   0x0
 
#define NOTIFICATION_OPERATIONAL_EVENT_CHANGE_REQUESTED   0x1
 
#define NOTIFICATION_OPERATIONAL_EVENT_CHANGE_OCCURRED   0x2
 
#define NOTIFICATION_OPERATIONAL_STATUS_AVAILABLE   0x0
 
#define NOTIFICATION_OPERATIONAL_STATUS_TEMPORARY_BUSY   0x1
 
#define NOTIFICATION_OPERATIONAL_STATUS_EXTENDED_BUSY   0x2
 
#define NOTIFICATION_OPERATIONAL_OPCODE_NONE   0x0
 
#define NOTIFICATION_OPERATIONAL_OPCODE_FEATURE_CHANGE   0x1
 
#define NOTIFICATION_OPERATIONAL_OPCODE_FEATURE_ADDED   0x2
 
#define NOTIFICATION_OPERATIONAL_OPCODE_UNIT_RESET   0x3
 
#define NOTIFICATION_OPERATIONAL_OPCODE_FIRMWARE_CHANGED   0x4
 
#define NOTIFICATION_OPERATIONAL_OPCODE_INQUIRY_CHANGED   0x5
 
#define NOTIFICATION_POWER_EVENT_NO_CHANGE   0x0
 
#define NOTIFICATION_POWER_EVENT_CHANGE_SUCCEEDED   0x1
 
#define NOTIFICATION_POWER_EVENT_CHANGE_FAILED   0x2
 
#define NOTIFICATION_POWER_STATUS_ACTIVE   0x1
 
#define NOTIFICATION_POWER_STATUS_IDLE   0x2
 
#define NOTIFICATION_POWER_STATUS_STANDBY   0x3
 
#define NOTIFICATION_POWER_STATUS_SLEEP   0x4
 
#define NOTIFICATION_MEDIA_EVENT_NO_EVENT   0x0
 
#define NOTIFICATION_EXTERNAL_EVENT_NO_CHANGE   0x0
 
#define NOTIFICATION_EXTERNAL_EVENT_BUTTON_DOWN   0x1
 
#define NOTIFICATION_EXTERNAL_EVENT_BUTTON_UP   0x2
 
#define NOTIFICATION_EXTERNAL_EVENT_EXTERNAL   0x3
 
#define NOTIFICATION_EXTERNAL_STATUS_READY   0x0
 
#define NOTIFICATION_EXTERNAL_STATUS_PREVENT   0x1
 
#define NOTIFICATION_EXTERNAL_REQUEST_NONE   0x0000
 
#define NOTIFICATION_EXTERNAL_REQUEST_QUEUE_OVERRUN   0x0001
 
#define NOTIFICATION_EXTERNAL_REQUEST_PLAY   0x0101
 
#define NOTIFICATION_EXTERNAL_REQUEST_REWIND_BACK   0x0102
 
#define NOTIFICATION_EXTERNAL_REQUEST_FAST_FORWARD   0x0103
 
#define NOTIFICATION_EXTERNAL_REQUEST_PAUSE   0x0104
 
#define NOTIFICATION_EXTERNAL_REQUEST_STOP   0x0106
 
#define NOTIFICATION_EXTERNAL_REQUEST_ASCII_LOW   0x0200
 
#define NOTIFICATION_EXTERNAL_REQUEST_ASCII_HIGH   0x02ff
 
#define NOTIFICATION_MEDIA_EVENT_NO_CHANGE   0x0
 
#define NOTIFICATION_MEDIA_EVENT_EJECT_REQUEST   0x1
 
#define NOTIFICATION_MEDIA_EVENT_NEW_MEDIA   0x2
 
#define NOTIFICATION_MEDIA_EVENT_MEDIA_REMOVAL   0x3
 
#define NOTIFICATION_MEDIA_EVENT_MEDIA_CHANGE   0x4
 
#define NOTIFICATION_BUSY_EVENT_NO_EVENT   0x0
 
#define NOTIFICATION_MULTI_HOST_EVENT_NO_CHANGE   0x0
 
#define NOTIFICATION_MULTI_HOST_EVENT_CONTROL_REQUEST   0x1
 
#define NOTIFICATION_MULTI_HOST_EVENT_CONTROL_GRANT   0x2
 
#define NOTIFICATION_MULTI_HOST_EVENT_CONTROL_RELEASE   0x3
 
#define NOTIFICATION_MULTI_HOST_STATUS_READY   0x0
 
#define NOTIFICATION_MULTI_HOST_STATUS_PREVENT   0x1
 
#define NOTIFICATION_MULTI_HOST_PRIORITY_NO_REQUESTS   0x0
 
#define NOTIFICATION_MULTI_HOST_PRIORITY_LOW   0x1
 
#define NOTIFICATION_MULTI_HOST_PRIORITY_MEDIUM   0x2
 
#define NOTIFICATION_MULTI_HOST_PRIORITY_HIGH   0x3
 
#define NOTIFICATION_BUSY_EVENT_NO_EVENT   0x0
 
#define NOTIFICATION_BUSY_EVENT_NO_CHANGE   0x0
 
#define NOTIFICATION_BUSY_EVENT_BUSY   0x1
 
#define NOTIFICATION_BUSY_EVENT_LO_CHANGE   0x2
 
#define NOTIFICATION_BUSY_STATUS_NO_EVENT   0x0
 
#define NOTIFICATION_BUSY_STATUS_POWER   0x1
 
#define NOTIFICATION_BUSY_STATUS_IMMEDIATE   0x2
 
#define NOTIFICATION_BUSY_STATUS_DEFERRED   0x3
 
#define DVD_FORMAT_LEAD_IN   0x00
 
#define DVD_FORMAT_COPYRIGHT   0x01
 
#define DVD_FORMAT_DISK_KEY   0x02
 
#define DVD_FORMAT_BCA   0x03
 
#define DVD_FORMAT_MANUFACTURING   0x04
 
#define DVD_REPORT_AGID   0x00
 
#define DVD_CHALLENGE_KEY   0x01
 
#define DVD_KEY_1   0x02
 
#define DVD_KEY_2   0x03
 
#define DVD_TITLE_KEY   0x04
 
#define DVD_REPORT_ASF   0x05
 
#define DVD_INVALIDATE_AGID   0x3F
 
#define BLANK_FULL   0x0
 
#define BLANK_MINIMAL   0x1
 
#define BLANK_TRACK   0x2
 
#define BLANK_UNRESERVE_TRACK   0x3
 
#define BLANK_TAIL   0x4
 
#define BLANK_UNCLOSE_SESSION   0x5
 
#define BLANK_SESSION   0x6
 
#define CD_EXPECTED_SECTOR_ANY   0x0
 
#define CD_EXPECTED_SECTOR_CDDA   0x1
 
#define CD_EXPECTED_SECTOR_MODE1   0x2
 
#define CD_EXPECTED_SECTOR_MODE2   0x3
 
#define CD_EXPECTED_SECTOR_MODE2_FORM1   0x4
 
#define CD_EXPECTED_SECTOR_MODE2_FORM2   0x5
 
#define DISK_STATUS_EMPTY   0x00
 
#define DISK_STATUS_INCOMPLETE   0x01
 
#define DISK_STATUS_COMPLETE   0x02
 
#define DISK_STATUS_OTHERS   0x03
 
#define LAST_SESSION_EMPTY   0x00
 
#define LAST_SESSION_INCOMPLETE   0x01
 
#define LAST_SESSION_RESERVED_DAMAGED   0x02
 
#define LAST_SESSION_COMPLETE   0x03
 
#define DISK_TYPE_CDDA   0x00
 
#define DISK_TYPE_CDI   0x10
 
#define DISK_TYPE_XA   0x20
 
#define DISK_TYPE_UNDEFINED   0xFF
 
#define DISC_BGFORMAT_STATE_NONE   0x0
 
#define DISC_BGFORMAT_STATE_INCOMPLETE   0x1
 
#define DISC_BGFORMAT_STATE_RUNNING   0x2
 
#define DISC_BGFORMAT_STATE_COMPLETE   0x3
 
#define DATA_BLOCK_MODE0   0x0
 
#define DATA_BLOCK_MODE1   0x1
 
#define DATA_BLOCK_MODE2   0x2
 
#define READ_TOC_FORMAT_TOC   0x00
 
#define READ_TOC_FORMAT_SESSION   0x01
 
#define READ_TOC_FORMAT_FULL_TOC   0x02
 
#define READ_TOC_FORMAT_PMA   0x03
 
#define READ_TOC_FORMAT_ATIP   0x04
 
#define CDB6GENERIC_LENGTH   6
 
#define CDB10GENERIC_LENGTH   10
 
#define CDB12GENERIC_LENGTH   12
 
#define SETBITON   1
 
#define SETBITOFF   0
 
#define MODE_PAGE_VENDOR_SPECIFIC   0x00
 
#define MODE_PAGE_ERROR_RECOVERY   0x01
 
#define MODE_PAGE_DISCONNECT   0x02
 
#define MODE_PAGE_FORMAT_DEVICE   0x03
 
#define MODE_PAGE_MRW   0x03
 
#define MODE_PAGE_RIGID_GEOMETRY   0x04
 
#define MODE_PAGE_FLEXIBILE   0x05
 
#define MODE_PAGE_WRITE_PARAMETERS   0x05
 
#define MODE_PAGE_VERIFY_ERROR   0x07
 
#define MODE_PAGE_CACHING   0x08
 
#define MODE_PAGE_PERIPHERAL   0x09
 
#define MODE_PAGE_CONTROL   0x0A
 
#define MODE_PAGE_MEDIUM_TYPES   0x0B
 
#define MODE_PAGE_NOTCH_PARTITION   0x0C
 
#define MODE_PAGE_CD_AUDIO_CONTROL   0x0E
 
#define MODE_PAGE_DATA_COMPRESS   0x0F
 
#define MODE_PAGE_DEVICE_CONFIG   0x10
 
#define MODE_PAGE_XOR_CONTROL   0x10
 
#define MODE_PAGE_MEDIUM_PARTITION   0x11
 
#define MODE_PAGE_ENCLOSURE_SERVICES_MANAGEMENT   0x14
 
#define MODE_PAGE_EXTENDED   0x15
 
#define MODE_PAGE_EXTENDED_DEVICE_SPECIFIC   0x16
 
#define MODE_PAGE_CDVD_FEATURE_SET   0x18
 
#define MODE_PAGE_PROTOCOL_SPECIFIC_LUN   0x18
 
#define MODE_PAGE_PROTOCOL_SPECIFIC_PORT   0x19
 
#define MODE_PAGE_POWER_CONDITION   0x1A
 
#define MODE_PAGE_LUN_MAPPING   0x1B
 
#define MODE_PAGE_FAULT_REPORTING   0x1C
 
#define MODE_PAGE_CDVD_INACTIVITY   0x1D
 
#define MODE_PAGE_ELEMENT_ADDRESS   0x1D
 
#define MODE_PAGE_TRANSPORT_GEOMETRY   0x1E
 
#define MODE_PAGE_DEVICE_CAPABILITIES   0x1F
 
#define MODE_PAGE_CAPABILITIES   0x2A
 
#define MODE_SENSE_RETURN_ALL   0x3f
 
#define MODE_SENSE_CURRENT_VALUES   0x00
 
#define MODE_SENSE_CHANGEABLE_VALUES   0x40
 
#define MODE_SENSE_DEFAULT_VAULES   0x80
 
#define MODE_SENSE_SAVED_VALUES   0xc0
 
#define SCSIOP_TEST_UNIT_READY   0x00
 
#define SCSIOP_REZERO_UNIT   0x01
 
#define SCSIOP_REWIND   0x01
 
#define SCSIOP_REQUEST_BLOCK_ADDR   0x02
 
#define SCSIOP_REQUEST_SENSE   0x03
 
#define SCSIOP_FORMAT_UNIT   0x04
 
#define SCSIOP_READ_BLOCK_LIMITS   0x05
 
#define SCSIOP_REASSIGN_BLOCKS   0x07
 
#define SCSIOP_INIT_ELEMENT_STATUS   0x07
 
#define SCSIOP_READ6   0x08
 
#define SCSIOP_RECEIVE   0x08
 
#define SCSIOP_WRITE6   0x0A
 
#define SCSIOP_PRINT   0x0A
 
#define SCSIOP_SEND   0x0A
 
#define SCSIOP_SEEK6   0x0B
 
#define SCSIOP_TRACK_SELECT   0x0B
 
#define SCSIOP_SLEW_PRINT   0x0B
 
#define SCSIOP_SET_CAPACITY   0x0B
 
#define SCSIOP_SEEK_BLOCK   0x0C
 
#define SCSIOP_PARTITION   0x0D
 
#define SCSIOP_READ_REVERSE   0x0F
 
#define SCSIOP_WRITE_FILEMARKS   0x10
 
#define SCSIOP_FLUSH_BUFFER   0x10
 
#define SCSIOP_SPACE   0x11
 
#define SCSIOP_INQUIRY   0x12
 
#define SCSIOP_VERIFY6   0x13
 
#define SCSIOP_RECOVER_BUF_DATA   0x14
 
#define SCSIOP_MODE_SELECT   0x15
 
#define SCSIOP_RESERVE_UNIT   0x16
 
#define SCSIOP_RELEASE_UNIT   0x17
 
#define SCSIOP_COPY   0x18
 
#define SCSIOP_ERASE   0x19
 
#define SCSIOP_MODE_SENSE   0x1A
 
#define SCSIOP_START_STOP_UNIT   0x1B
 
#define SCSIOP_STOP_PRINT   0x1B
 
#define SCSIOP_LOAD_UNLOAD   0x1B
 
#define SCSIOP_RECEIVE_DIAGNOSTIC   0x1C
 
#define SCSIOP_SEND_DIAGNOSTIC   0x1D
 
#define SCSIOP_MEDIUM_REMOVAL   0x1E
 
#define SCSIOP_READ_FORMATTED_CAPACITY   0x23
 
#define SCSIOP_READ_CAPACITY   0x25
 
#define SCSIOP_READ   0x28
 
#define SCSIOP_WRITE   0x2A
 
#define SCSIOP_SEEK   0x2B
 
#define SCSIOP_LOCATE   0x2B
 
#define SCSIOP_POSITION_TO_ELEMENT   0x2B
 
#define SCSIOP_WRITE_VERIFY   0x2E
 
#define SCSIOP_VERIFY   0x2F
 
#define SCSIOP_SEARCH_DATA_HIGH   0x30
 
#define SCSIOP_SEARCH_DATA_EQUAL   0x31
 
#define SCSIOP_SEARCH_DATA_LOW   0x32
 
#define SCSIOP_SET_LIMITS   0x33
 
#define SCSIOP_READ_POSITION   0x34
 
#define SCSIOP_SYNCHRONIZE_CACHE   0x35
 
#define SCSIOP_COMPARE   0x39
 
#define SCSIOP_COPY_COMPARE   0x3A
 
#define SCSIOP_WRITE_DATA_BUFF   0x3B
 
#define SCSIOP_READ_DATA_BUFF   0x3C
 
#define SCSIOP_WRITE_LONG   0x3F
 
#define SCSIOP_CHANGE_DEFINITION   0x40
 
#define SCSIOP_WRITE_SAME   0x41
 
#define SCSIOP_READ_SUB_CHANNEL   0x42
 
#define SCSIOP_UNMAP   0x42
 
#define SCSIOP_READ_TOC   0x43
 
#define SCSIOP_READ_HEADER   0x44
 
#define SCSIOP_REPORT_DENSITY_SUPPORT   0x44
 
#define SCSIOP_PLAY_AUDIO   0x45
 
#define SCSIOP_GET_CONFIGURATION   0x46
 
#define SCSIOP_PLAY_AUDIO_MSF   0x47
 
#define SCSIOP_PLAY_TRACK_INDEX   0x48
 
#define SCSIOP_SANITIZE   0x48
 
#define SCSIOP_PLAY_TRACK_RELATIVE   0x49
 
#define SCSIOP_GET_EVENT_STATUS   0x4A
 
#define SCSIOP_PAUSE_RESUME   0x4B
 
#define SCSIOP_LOG_SELECT   0x4C
 
#define SCSIOP_LOG_SENSE   0x4D
 
#define SCSIOP_STOP_PLAY_SCAN   0x4E
 
#define SCSIOP_XDWRITE   0x50
 
#define SCSIOP_XPWRITE   0x51
 
#define SCSIOP_READ_DISK_INFORMATION   0x51
 
#define SCSIOP_READ_DISC_INFORMATION   0x51
 
#define SCSIOP_READ_TRACK_INFORMATION   0x52
 
#define SCSIOP_XDWRITE_READ   0x53
 
#define SCSIOP_RESERVE_TRACK_RZONE   0x53
 
#define SCSIOP_SEND_OPC_INFORMATION   0x54
 
#define SCSIOP_MODE_SELECT10   0x55
 
#define SCSIOP_RESERVE_UNIT10   0x56
 
#define SCSIOP_RESERVE_ELEMENT   0x56
 
#define SCSIOP_RELEASE_UNIT10   0x57
 
#define SCSIOP_RELEASE_ELEMENT   0x57
 
#define SCSIOP_REPAIR_TRACK   0x58
 
#define SCSIOP_MODE_SENSE10   0x5A
 
#define SCSIOP_CLOSE_TRACK_SESSION   0x5B
 
#define SCSIOP_READ_BUFFER_CAPACITY   0x5C
 
#define SCSIOP_SEND_CUE_SHEET   0x5D
 
#define SCSIOP_PERSISTENT_RESERVE_IN   0x5E
 
#define SCSIOP_PERSISTENT_RESERVE_OUT   0x5F
 
#define SCSIOP_OPERATION32   0x7F
 
#define SCSIOP_XDWRITE_EXTENDED16   0x80
 
#define SCSIOP_WRITE_FILEMARKS16   0x80
 
#define SCSIOP_REBUILD16   0x81
 
#define SCSIOP_READ_REVERSE16   0x81
 
#define SCSIOP_REGENERATE16   0x82
 
#define SCSIOP_EXTENDED_COPY   0x83
 
#define SCSIOP_POPULATE_TOKEN   0x83
 
#define SCSIOP_WRITE_USING_TOKEN   0x83
 
#define SCSIOP_RECEIVE_COPY_RESULTS   0x84
 
#define SCSIOP_RECEIVE_ROD_TOKEN_INFORMATION   0x84
 
#define SCSIOP_ATA_PASSTHROUGH16   0x85
 
#define SCSIOP_ACCESS_CONTROL_IN   0x86
 
#define SCSIOP_ACCESS_CONTROL_OUT   0x87
 
#define SCSIOP_READ16   0x88
 
#define SCSIOP_COMPARE_AND_WRITE   0x89
 
#define SCSIOP_WRITE16   0x8A
 
#define SCSIOP_READ_ATTRIBUTES   0x8C
 
#define SCSIOP_WRITE_ATTRIBUTES   0x8D
 
#define SCSIOP_WRITE_VERIFY16   0x8E
 
#define SCSIOP_VERIFY16   0x8F
 
#define SCSIOP_PREFETCH16   0x90
 
#define SCSIOP_SYNCHRONIZE_CACHE16   0x91
 
#define SCSIOP_SPACE16   0x91
 
#define SCSIOP_LOCK_UNLOCK_CACHE16   0x92
 
#define SCSIOP_LOCATE16   0x92
 
#define SCSIOP_WRITE_SAME16   0x93
 
#define SCSIOP_ERASE16   0x93
 
#define SCSIOP_ZBC_OUT   0x94
 
#define SCSIOP_ZBC_IN   0x95
 
#define SCSIOP_READ_DATA_BUFF16   0x9B
 
#define SCSIOP_READ_CAPACITY16   0x9E
 
#define SCSIOP_GET_LBA_STATUS   0x9E
 
#define SCSIOP_GET_PHYSICAL_ELEMENT_STATUS   0x9E
 
#define SCSIOP_REMOVE_ELEMENT_AND_TRUNCATE   0x9E
 
#define SCSIOP_SERVICE_ACTION_IN16   0x9E
 
#define SCSIOP_SERVICE_ACTION_OUT16   0x9F
 
#define SCSIOP_REPORT_LUNS   0xA0
 
#define SCSIOP_BLANK   0xA1
 
#define SCSIOP_ATA_PASSTHROUGH12   0xA1
 
#define SCSIOP_SEND_EVENT   0xA2
 
#define SCSIOP_SECURITY_PROTOCOL_IN   0xA2
 
#define SCSIOP_SEND_KEY   0xA3
 
#define SCSIOP_MAINTENANCE_IN   0xA3
 
#define SCSIOP_REPORT_KEY   0xA4
 
#define SCSIOP_MAINTENANCE_OUT   0xA4
 
#define SCSIOP_MOVE_MEDIUM   0xA5
 
#define SCSIOP_LOAD_UNLOAD_SLOT   0xA6
 
#define SCSIOP_EXCHANGE_MEDIUM   0xA6
 
#define SCSIOP_SET_READ_AHEAD   0xA7
 
#define SCSIOP_MOVE_MEDIUM_ATTACHED   0xA7
 
#define SCSIOP_READ12   0xA8
 
#define SCSIOP_GET_MESSAGE   0xA8
 
#define SCSIOP_SERVICE_ACTION_OUT12   0xA9
 
#define SCSIOP_WRITE12   0xAA
 
#define SCSIOP_SEND_MESSAGE   0xAB
 
#define SCSIOP_SERVICE_ACTION_IN12   0xAB
 
#define SCSIOP_GET_PERFORMANCE   0xAC
 
#define SCSIOP_READ_DVD_STRUCTURE   0xAD
 
#define SCSIOP_WRITE_VERIFY12   0xAE
 
#define SCSIOP_VERIFY12   0xAF
 
#define SCSIOP_SEARCH_DATA_HIGH12   0xB0
 
#define SCSIOP_SEARCH_DATA_EQUAL12   0xB1
 
#define SCSIOP_SEARCH_DATA_LOW12   0xB2
 
#define SCSIOP_SET_LIMITS12   0xB3
 
#define SCSIOP_READ_ELEMENT_STATUS_ATTACHED   0xB4
 
#define SCSIOP_REQUEST_VOL_ELEMENT   0xB5
 
#define SCSIOP_SECURITY_PROTOCOL_OUT   0xB5
 
#define SCSIOP_SEND_VOLUME_TAG   0xB6
 
#define SCSIOP_SET_STREAMING   0xB6
 
#define SCSIOP_READ_DEFECT_DATA   0xB7
 
#define SCSIOP_READ_ELEMENT_STATUS   0xB8
 
#define SCSIOP_READ_CD_MSF   0xB9
 
#define SCSIOP_SCAN_CD   0xBA
 
#define SCSIOP_REDUNDANCY_GROUP_IN   0xBA
 
#define SCSIOP_SET_CD_SPEED   0xBB
 
#define SCSIOP_REDUNDANCY_GROUP_OUT   0xBB
 
#define SCSIOP_PLAY_CD   0xBC
 
#define SCSIOP_SPARE_IN   0xBC
 
#define SCSIOP_MECHANISM_STATUS   0xBD
 
#define SCSIOP_SPARE_OUT   0xBD
 
#define SCSIOP_READ_CD   0xBE
 
#define SCSIOP_VOLUME_SET_IN   0xBE
 
#define SCSIOP_SEND_DVD_STRUCTURE   0xBF
 
#define SCSIOP_VOLUME_SET_OUT   0xBF
 
#define SCSIOP_INIT_ELEMENT_RANGE   0xE7
 
#define SERVICE_ACTION_OVERWRITE   0x01
 
#define SERVICE_ACTION_BLOCK_ERASE   0x02
 
#define SERVICE_ACTION_CRYPTO_ERASE   0x03
 
#define SERVICE_ACTION_EXIT_FAILURE   0x1f
 
#define SERVICE_ACTION_XDWRITE   0x0004
 
#define SERVICE_ACTION_XPWRITE   0x0006
 
#define SERVICE_ACTION_XDWRITEREAD   0x0007
 
#define SERVICE_ACTION_WRITE   0x000B
 
#define SERVICE_ACTION_WRITE_VERIFY   0x000C
 
#define SERVICE_ACTION_WRITE_SAME   0x000D
 
#define SERVICE_ACTION_ORWRITE   0x000E
 
#define SERVICE_ACTION_POPULATE_TOKEN   0x10
 
#define SERVICE_ACTION_WRITE_USING_TOKEN   0x11
 
#define SERVICE_ACTION_RECEIVE_TOKEN_INFORMATION   0x07
 
#define SERVICE_ACTION_CLOSE_ZONE   0x01
 
#define SERVICE_ACTION_FINISH_ZONE   0x02
 
#define SERVICE_ACTION_OPEN_ZONE   0x03
 
#define SERVICE_ACTION_RESET_WRITE_POINTER   0x04
 
#define SERVICE_ACTION_REPORT_ZONES   0x00
 
#define REPORT_ZONES_OPTION_LIST_ALL_ZONES   0x00
 
#define REPORT_ZONES_OPTION_LIST_EMPTY_ZONES   0x01
 
#define REPORT_ZONES_OPTION_LIST_IMPLICITLY_OPENED_ZONES   0x02
 
#define REPORT_ZONES_OPTION_LIST_EXPLICITLY_OPENED_ZONES   0x03
 
#define REPORT_ZONES_OPTION_LIST_CLOSED_ZONES   0x04
 
#define REPORT_ZONES_OPTION_LIST_FULL_ZONES   0x05
 
#define REPORT_ZONES_OPTION_LIST_READ_ONLY_ZONES   0x06
 
#define REPORT_ZONES_OPTION_LIST_OFFLINE_ZONES   0x07
 
#define REPORT_ZONES_OPTION_LIST_RWP_ZONES   0x10
 
#define REPORT_ZONES_OPTION_LIST_NON_SEQUENTIAL_WRITE_RESOURCES_ACTIVE_ZONES   0x11
 
#define REPORT_ZONES_OPTION_LIST_NOT_WRITE_POINTER_ZONES   0x3F
 
#define SERVICE_ACTION_READ_CAPACITY16   0x10
 
#define SERVICE_ACTION_GET_LBA_STATUS   0x12
 
#define SERVICE_ACTION_GET_PHYSICAL_ELEMENT_STATUS   0x17
 
#define SERVICE_ACTION_REMOVE_ELEMENT_AND_TRUNCATE   0x18
 
#define SERVICE_ACTION_REPORT_TIMESTAMP   0x0F
 
#define SERVICE_ACTION_SET_TIMESTAMP   0x0F
 
#define CDB_RETURN_ON_COMPLETION   0
 
#define CDB_RETURN_IMMEDIATE   1
 
#define CDB_FORCE_MEDIA_ACCESS   0x08
 
#define SCSIOP_DENON_EJECT_DISC   0xE6
 
#define SCSIOP_DENON_STOP_AUDIO   0xE7
 
#define SCSIOP_DENON_PLAY_AUDIO   0xE8
 
#define SCSIOP_DENON_READ_TOC   0xE9
 
#define SCSIOP_DENON_READ_SUBCODE   0xEB
 
#define SCSIMESS_ABORT   0x06
 
#define SCSIMESS_ABORT_WITH_TAG   0x0D
 
#define SCSIMESS_BUS_DEVICE_RESET   0X0C
 
#define SCSIMESS_CLEAR_QUEUE   0X0E
 
#define SCSIMESS_COMMAND_COMPLETE   0X00
 
#define SCSIMESS_DISCONNECT   0X04
 
#define SCSIMESS_EXTENDED_MESSAGE   0X01
 
#define SCSIMESS_IDENTIFY   0X80
 
#define SCSIMESS_IDENTIFY_WITH_DISCON   0XC0
 
#define SCSIMESS_IGNORE_WIDE_RESIDUE   0X23
 
#define SCSIMESS_INITIATE_RECOVERY   0X0F
 
#define SCSIMESS_INIT_DETECTED_ERROR   0X05
 
#define SCSIMESS_LINK_CMD_COMP   0X0A
 
#define SCSIMESS_LINK_CMD_COMP_W_FLAG   0X0B
 
#define SCSIMESS_MESS_PARITY_ERROR   0X09
 
#define SCSIMESS_MESSAGE_REJECT   0X07
 
#define SCSIMESS_NO_OPERATION   0X08
 
#define SCSIMESS_HEAD_OF_QUEUE_TAG   0X21
 
#define SCSIMESS_ORDERED_QUEUE_TAG   0X22
 
#define SCSIMESS_SIMPLE_QUEUE_TAG   0X20
 
#define SCSIMESS_RELEASE_RECOVERY   0X10
 
#define SCSIMESS_RESTORE_POINTERS   0X03
 
#define SCSIMESS_SAVE_DATA_POINTER   0X02
 
#define SCSIMESS_TERMINATE_IO_PROCESS   0X11
 
#define SCSIMESS_MODIFY_DATA_POINTER   0X00
 
#define SCSIMESS_SYNCHRONOUS_DATA_REQ   0X01
 
#define SCSIMESS_WIDE_DATA_REQUEST   0X03
 
#define SCSIMESS_MODIFY_DATA_LENGTH   5
 
#define SCSIMESS_SYNCH_DATA_LENGTH   3
 
#define SCSIMESS_WIDE_DATA_LENGTH   2
 
#define CDB_INQUIRY_EVPD   0x01
 
#define LUN0_FORMAT_SAVING_DEFECT_LIST   0
 
#define USE_DEFAULTMSB   0
 
#define USE_DEFAULTLSB   0
 
#define START_UNIT_CODE   0x01
 
#define STOP_UNIT_CODE   0x00
 
#define DIRECT_ACCESS_DEVICE   0x00
 
#define SEQUENTIAL_ACCESS_DEVICE   0x01
 
#define PRINTER_DEVICE   0x02
 
#define PROCESSOR_DEVICE   0x03
 
#define WRITE_ONCE_READ_MULTIPLE_DEVICE   0x04
 
#define READ_ONLY_DIRECT_ACCESS_DEVICE   0x05
 
#define SCANNER_DEVICE   0x06
 
#define OPTICAL_DEVICE   0x07
 
#define MEDIUM_CHANGER   0x08
 
#define COMMUNICATION_DEVICE   0x09
 
#define ARRAY_CONTROLLER_DEVICE   0x0C
 
#define SCSI_ENCLOSURE_DEVICE   0x0D
 
#define REDUCED_BLOCK_DEVICE   0x0E
 
#define OPTICAL_CARD_READER_WRITER_DEVICE   0x0F
 
#define BRIDGE_CONTROLLER_DEVICE   0x10
 
#define OBJECT_BASED_STORAGE_DEVICE   0x11
 
#define LOGICAL_UNIT_NOT_PRESENT_DEVICE   0x7F
 
#define DEVICE_QUALIFIER_ACTIVE   0x00
 
#define DEVICE_QUALIFIER_NOT_ACTIVE   0x01
 
#define DEVICE_QUALIFIER_NOT_SUPPORTED   0x03
 
#define DEVICE_CONNECTED   0x00
 
#define SCSISTAT_GOOD   0x00
 
#define SCSISTAT_CHECK_CONDITION   0x02
 
#define SCSISTAT_CONDITION_MET   0x04
 
#define SCSISTAT_BUSY   0x08
 
#define SCSISTAT_INTERMEDIATE   0x10
 
#define SCSISTAT_INTERMEDIATE_COND_MET   0x14
 
#define SCSISTAT_RESERVATION_CONFLICT   0x18
 
#define SCSISTAT_COMMAND_TERMINATED   0x22
 
#define SCSISTAT_QUEUE_FULL   0x28
 
#define RESERVATION_ACTION_READ_KEYS   0x00
 
#define RESERVATION_ACTION_READ_RESERVATIONS   0x01
 
#define RESERVATION_ACTION_REGISTER   0x00
 
#define RESERVATION_ACTION_RESERVE   0x01
 
#define RESERVATION_ACTION_RELEASE   0x02
 
#define RESERVATION_ACTION_CLEAR   0x03
 
#define RESERVATION_ACTION_PREEMPT   0x04
 
#define RESERVATION_ACTION_PREEMPT_ABORT   0x05
 
#define RESERVATION_ACTION_REGISTER_IGNORE_EXISTING   0x06
 
#define RESERVATION_SCOPE_LU   0x00
 
#define RESERVATION_SCOPE_ELEMENT   0x02
 
#define RESERVATION_TYPE_WRITE_EXCLUSIVE   0x01
 
#define RESERVATION_TYPE_EXCLUSIVE   0x03
 
#define RESERVATION_TYPE_WRITE_EXCLUSIVE_REGISTRANTS   0x05
 
#define RESERVATION_TYPE_EXCLUSIVE_REGISTRANTS   0x06
 
#define SENSE_BUFFER_SIZE   sizeof(SENSE_DATA)
 
#define SENSE_BUFFER_SIZE_EX   sizeof(SENSE_DATA_EX)
 
#define MAX_SENSE_BUFFER_SIZE   255
 
#define MAX_ADDITIONAL_SENSE_BYTES   (MAX_SENSE_BUFFER_SIZE - SENSE_BUFFER_SIZE)
 
#define MAX_ADDITIONAL_SENSE_BYTES_EX   (MAX_SENSE_BUFFER_SIZE - SENSE_BUFFER_SIZE_EX)
 
#define SCSI_SENSE_NO_SENSE   0x00
 
#define SCSI_SENSE_RECOVERED_ERROR   0x01
 
#define SCSI_SENSE_NOT_READY   0x02
 
#define SCSI_SENSE_MEDIUM_ERROR   0x03
 
#define SCSI_SENSE_HARDWARE_ERROR   0x04
 
#define SCSI_SENSE_ILLEGAL_REQUEST   0x05
 
#define SCSI_SENSE_UNIT_ATTENTION   0x06
 
#define SCSI_SENSE_DATA_PROTECT   0x07
 
#define SCSI_SENSE_BLANK_CHECK   0x08
 
#define SCSI_SENSE_UNIQUE   0x09
 
#define SCSI_SENSE_COPY_ABORTED   0x0A
 
#define SCSI_SENSE_ABORTED_COMMAND   0x0B
 
#define SCSI_SENSE_EQUAL   0x0C
 
#define SCSI_SENSE_VOL_OVERFLOW   0x0D
 
#define SCSI_SENSE_MISCOMPARE   0x0E
 
#define SCSI_SENSE_RESERVED   0x0F
 
#define SCSI_SENSE_ERRORCODE_FIXED_CURRENT   0x70
 
#define SCSI_SENSE_ERRORCODE_FIXED_DEFERRED   0x71
 
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_CURRENT   0x72
 
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_DEFERRED   0x73
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_INFORMATION   0x00
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_COMMAND_SPECIFIC   0x01
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_SENSE_KEY_SPECIFIC   0x02
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_FIELD_REPLACEABLE_UNIT   0x03
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_STREAM_COMMAND   0x04
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_BLOCK_COMMAND   0x05
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_OSD_OBJECT_IDENTIFICATION   0x06
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_OSD_RESPONSE_INTEGRITY_CHECK   0x07
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_OSD_ATTRIBUTE_IDENTIFICATION   0x08
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_ATA_STATUS_RETURN   0x09
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_PROGRESS_INDICATION   0x0A
 
#define SCSI_SENSE_DESCRIPTOR_TYPE_USER_DATA_SEGMENT_REFERRAL   0x0B
 
#define SCSI_ILLEGAL_LENGTH   0x20
 
#define SCSI_EOM   0x40
 
#define SCSI_FILE_MARK   0x80
 
#define SCSI_ADSENSE_NO_SENSE   0x00
 
#define SCSI_ADSENSE_NO_SEEK_COMPLETE   0x02
 
#define SCSI_ADSENSE_WRITE   0x03
 
#define SCSI_ADSENSE_LUN_NOT_READY   0x04
 
#define SCSI_ADSENSE_LUN_COMMUNICATION   0x08
 
#define SCSI_ADSENSE_SERVO_ERROR   0x09
 
#define SCSI_ADSENSE_WARNING   0x0B
 
#define SCSI_ADSENSE_WRITE_ERROR   0x0C
 
#define SCSI_ADSENSE_COPY_TARGET_DEVICE_ERROR   0x0D
 
#define SCSI_ADSENSE_UNRECOVERED_ERROR   0x11
 
#define SCSI_ADSENSE_TRACK_ERROR   0x14
 
#define SCSI_ADSENSE_SEEK_ERROR   0x15
 
#define SCSI_ADSENSE_REC_DATA_NOECC   0x17
 
#define SCSI_ADSENSE_REC_DATA_ECC   0x18
 
#define SCSI_ADSENSE_DEFECT_LIST_ERROR   0x19
 
#define SCSI_ADSENSE_PARAMETER_LIST_LENGTH   0x1A
 
#define SCSI_ADSENSE_MISCOMPARE_DURING_VERIFY_OPERATION   0x1D
 
#define SCSI_ADSENSE_ILLEGAL_COMMAND   0x20
 
#define SCSI_ADSENSE_ACCESS_DENIED   0x20
 
#define SCSI_ADSENSE_ILLEGAL_BLOCK   0x21
 
#define SCSI_ADSENSE_INVALID_TOKEN   0x23
 
#define SCSI_ADSENSE_INVALID_CDB   0x24
 
#define SCSI_ADSENSE_INVALID_LUN   0x25
 
#define SCSI_ADSENSE_INVALID_FIELD_PARAMETER_LIST   0x26
 
#define SCSI_ADSENSE_WRITE_PROTECT   0x27
 
#define SCSI_ADSENSE_MEDIUM_CHANGED   0x28
 
#define SCSI_ADSENSE_BUS_RESET   0x29
 
#define SCSI_ADSENSE_PARAMETERS_CHANGED   0x2A
 
#define SCSI_ADSENSE_INSUFFICIENT_TIME_FOR_OPERATION   0x2E
 
#define SCSI_ADSENSE_INVALID_MEDIA   0x30
 
#define SCSI_ADSENSE_DEFECT_LIST   0x32
 
#define SCSI_ADSENSE_LB_PROVISIONING   0x38
 
#define SCSI_ADSENSE_NO_MEDIA_IN_DEVICE   0x3a
 
#define SCSI_ADSENSE_POSITION_ERROR   0x3b
 
#define SCSI_ADSENSE_LOGICAL_UNIT_ERROR   0x3e
 
#define SCSI_ADSENSE_OPERATING_CONDITIONS_CHANGED   0x3f
 
#define SCSI_ADSENSE_DATA_PATH_FAILURE   0x41
 
#define SCSI_ADSENSE_POWER_ON_SELF_TEST_FAILURE   0x42
 
#define SCSI_ADSENSE_INTERNAL_TARGET_FAILURE   0x44
 
#define SCSI_ADSENSE_DATA_TRANSFER_ERROR   0x4b
 
#define SCSI_ADSENSE_LUN_FAILED_SELF_CONFIGURATION   0x4c
 
#define SCSI_ADSENSE_RESOURCE_FAILURE   0x55
 
#define SCSI_ADSENSE_OPERATOR_REQUEST   0x5a
 
#define SCSI_ADSENSE_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x5d
 
#define SCSI_ADSENSE_ILLEGAL_MODE_FOR_THIS_TRACK   0x64
 
#define SCSI_ADSENSE_COPY_PROTECTION_FAILURE   0x6f
 
#define SCSI_ADSENSE_POWER_CALIBRATION_ERROR   0x73
 
#define SCSI_ADSENSE_VENDOR_UNIQUE   0x80
 
#define SCSI_ADSENSE_MUSIC_AREA   0xA0
 
#define SCSI_ADSENSE_DATA_AREA   0xA1
 
#define SCSI_ADSENSE_VOLUME_OVERFLOW   0xA7
 
#define SCSI_ADWRITE_PROTECT   SCSI_ADSENSE_WRITE_PROTECT
 
#define SCSI_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   SCSI_ADSENSE_FAILURE_PREDICTION_THRESHOLD_EXCEEDED
 
#define SCSI_SENSEQ_FILEMARK_DETECTED   0x01
 
#define SCSI_SENSEQ_END_OF_MEDIA_DETECTED   0x02
 
#define SCSI_SENSEQ_SETMARK_DETECTED   0x03
 
#define SCSI_SENSEQ_BEGINNING_OF_MEDIA_DETECTED   0x04
 
#define SCSI_SENSEQ_OPERATION_IS_IN_PROGRESS   0x16
 
#define SCSI_SENSEQ_PERIPHERAL_DEVICE_WRITE_FAULT   0x00
 
#define SCSI_SENSEQ_NO_WRITE_CURRENT   0x01
 
#define SCSI_SENSEQ_EXCESSIVE_WRITE_ERRORS   0x02
 
#define SCSI_SENSEQ_CAUSE_NOT_REPORTABLE   0x00
 
#define SCSI_SENSEQ_BECOMING_READY   0x01
 
#define SCSI_SENSEQ_INIT_COMMAND_REQUIRED   0x02
 
#define SCSI_SENSEQ_MANUAL_INTERVENTION_REQUIRED   0x03
 
#define SCSI_SENSEQ_FORMAT_IN_PROGRESS   0x04
 
#define SCSI_SENSEQ_REBUILD_IN_PROGRESS   0x05
 
#define SCSI_SENSEQ_RECALCULATION_IN_PROGRESS   0x06
 
#define SCSI_SENSEQ_OPERATION_IN_PROGRESS   0x07
 
#define SCSI_SENSEQ_LONG_WRITE_IN_PROGRESS   0x08
 
#define SCSI_SENSEQ_SPACE_ALLOC_IN_PROGRESS   0x14
 
#define SCSI_SENSEQ_COMM_FAILURE   0x00
 
#define SCSI_SENSEQ_COMM_TIMEOUT   0x01
 
#define SCSI_SENSEQ_COMM_PARITY_ERROR   0x02
 
#define SCSI_SESNEQ_COMM_CRC_ERROR   0x03
 
#define SCSI_SENSEQ_UNREACHABLE_TARGET   0x04
 
#define SCSI_SENSEQ_TRACK_FOLLOWING_ERROR   0x00
 
#define SCSI_SENSEQ_TRACKING_SERVO_FAILURE   0x01
 
#define SCSI_SENSEQ_FOCUS_SERVO_FAILURE   0x02
 
#define SCSI_SENSEQ_SPINDLE_SERVO_FAILURE   0x03
 
#define SCSI_SENSEQ_HEAD_SELECT_FAULT   0x04
 
#define SCSI_SENSEQ_POWER_LOSS_EXPECTED   0x08
 
#define SCSI_SENSEQ_LOSS_OF_STREAMING   0x09
 
#define SCSI_SENSEQ_PADDING_BLOCKS_ADDED   0x0A
 
#define SCSI_SENSEQ_NOT_REACHABLE   0x02
 
#define SCSI_SENSEQ_DATA_UNDERRUN   0x04
 
#define SCSI_SENSEQ_UNRECOVERED_READ_ERROR   0x00
 
#define SCSI_SENSEQ_RANDOM_POSITIONING_ERROR   0x00
 
#define SCSI_SENSEQ_MECHANICAL_POSITIONING_ERROR   0x01
 
#define SCSI_SENSEQ_POSITIONING_ERROR_DETECTED_BY_READ_OF_MEDIUM   0x02
 
#define SCSI_SENSEQ_DEFECT_LIST_ERROR   0x00
 
#define SCSI_SENSEQ_DEFECT_LIST_NOT_AVAILABLE   0x01
 
#define SCSI_SENSEQ_DEFECT_LIST_ERROR_IN_PRIMARY_LIST   0x02
 
#define SCSI_SENSEQ_DEFECT_LIST_ERROR_IN_GROWN_LIST   0x03
 
#define SCSI_SENSEQ_NO_ACCESS_RIGHTS   0x02
 
#define SCSI_SENSEQ_LOGICAL_ADDRESS_OUT_OF_RANGE   0x00
 
#define SCSI_SENSEQ_ILLEGAL_ELEMENT_ADDR   0x01
 
#define SCSI_SENSEQ_INVALID_WRITE_ADDRESS   0x02
 
#define SCSI_SENSEQ_INVALID_WRITE_CROSSING_LAYER_JUMP   0x03
 
#define SCSI_SENSEQ_UNALIGNED_WRITE   0x04
 
#define SCSI_SENSEQ_WRITE_BOUNDARY_VIOLATION   0x05
 
#define SCSI_SENSEQ_READ_INVALID_DATA   0x06
 
#define SCSI_SENSEQ_READ_BOUNDARY_VIOLATION   0x07
 
#define SCSI_SENSEQ_MISALIGNED_WRITE   0x08
 
#define SCSI_SENSEQ_INVALID_RELEASE_OF_PERSISTENT_RESERVATION   0x04
 
#define SCSI_SENSEQ_TOO_MANY_SEGMENT_DESCRIPTORS   0x08
 
#define SCSI_SENSEQ_SPACE_ALLOC_FAILED_WRITE_PROTECT   0x07
 
#define SCSI_SENSEQ_CAPACITY_DATA_CHANGED   0x09
 
#define SCSI_SENSEQ_DESTINATION_FULL   0x0d
 
#define SCSI_SENSEQ_SOURCE_EMPTY   0x0e
 
#define SCSI_SENSEQ_INCOMPATIBLE_MEDIA_INSTALLED   0x00
 
#define SCSI_SENSEQ_UNKNOWN_FORMAT   0x01
 
#define SCSI_SENSEQ_INCOMPATIBLE_FORMAT   0x02
 
#define SCSI_SENSEQ_CLEANING_CARTRIDGE_INSTALLED   0x03
 
#define SCSI_SENSEQ_NO_DEFECT_SPARE_LOCATION_AVAILABLE   0x00
 
#define SCSI_SENSEQ_DEFECT_LIST_UPDATE_FAILURE   0x01
 
#define SCSI_SENSEQ_SOFT_THRESHOLD_REACHED   0x07
 
#define SCSI_SENSEQ_LOGICAL_UNIT_HAS_NOT_SELF_CONFIGURED_YET   0x00
 
#define SCSI_SENSEQ_LOGICAL_UNIT_FAILURE   0x01
 
#define SCSI_SENSEQ_TIMEOUT_ON_LOGICAL_UNIT   0x02
 
#define SCSI_SENSEQ_LOGICAL_UNIT_FAILED_SELF_TEST   0x03
 
#define SCSI_SENSEQ_LOGICAL_UNIT_FAILED_TO_UPDATE_SELF_TEST_LOG   0x04
 
#define SCSI_SENSEQ_TARGET_OPERATING_CONDITIONS_CHANGED   0x00
 
#define SCSI_SENSEQ_MICROCODE_CHANGED   0x01
 
#define SCSI_SENSEQ_OPERATING_DEFINITION_CHANGED   0x02
 
#define SCSI_SENSEQ_INQUIRY_DATA_CHANGED   0x03
 
#define SCSI_SENSEQ_COMPONENT_DEVICE_ATTACHED   0x04
 
#define SCSI_SENSEQ_DEVICE_IDENTIFIER_CHANGED   0x05
 
#define SCSI_SENSEQ_REDUNDANCY_GROUP_MODIFIED   0x06
 
#define SCSI_SENSEQ_REDUNDANCY_GROUP_DELETED   0x07
 
#define SCSI_SENSEQ_SPARE_MODIFIED   0x08
 
#define SCSI_SENSEQ_SPARE_DELETED   0x09
 
#define SCSI_SENSEQ_VOLUME_SET_MODIFIED   0x0A
 
#define SCSI_SENSEQ_VOLUME_SET_DELETED   0x0B
 
#define SCSI_SENSEQ_VOLUME_SET_DEASSIGNED   0x0C
 
#define SCSI_SENSEQ_VOLUME_SET_REASSIGNED   0x0D
 
#define SCSI_SENSEQ_REPORTED_LUNS_DATA_CHANGED   0x0E
 
#define SCSI_SENSEQ_ECHO_BUFFER_OVERWRITTEN   0x0F
 
#define SCSI_SENSEQ_MEDIUM_LOADABLE   0x10
 
#define SCSI_SENSEQ_MEDIUM_AUXILIARY_MEMORY_ACCESSIBLE   0x11
 
#define SCSI_SENSEQ_INTERNAL_TARGET_FAILURE   0x00
 
#define SCSI_SENSEQ_PRESISTENT_RESERVATION_INFORMATION_LOST   0x01
 
#define SCSI_SENSEQ_ATA_DEVICE_FAILED_SET_FEATURES   0x71
 
#define SCSI_SENSEQ_INITIATOR_RESPONSE_TIMEOUT   0x06
 
#define SCSI_SENSEQ_SYSTEM_RESOURCE_FAILURE   0x00
 
#define SCSI_SENSEQ_SYSTEM_BUFFER_FULL   0x01
 
#define SCSI_SENSEQ_INSUFFICIENT_RESERVATION_RESOURCES   0x02
 
#define SCSI_SENSEQ_INSUFFICIENT_RESOURCES   0x03
 
#define SCSI_SENSEQ_STATE_CHANGE_INPUT   0x00
 
#define SCSI_SENSEQ_MEDIUM_REMOVAL   0x01
 
#define SCSI_SENSEQ_WRITE_PROTECT_ENABLE   0x02
 
#define SCSI_SENSEQ_WRITE_PROTECT_DISABLE   0x03
 
#define SCSI_SENSEQ_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x00
 
#define SCSI_SENSEQ_MEDIA_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x01
 
#define SCSI_SENSEQ_LUN_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x02
 
#define SCSI_SENSEQ_SPARE_AREA_EXHAUSTION_PREDICTION_THRESHOLD_EXCEEDED   0x03
 
#define SCSI_SENSEQ_GENERAL_HARD_DRIVE_FAILURE   0x10
 
#define SCSI_SENSEQ_DRIVE_ERROR_RATE_TOO_HIGH   0x11
 
#define SCSI_SENSEQ_DATA_ERROR_RATE_TOO_HIGH   0x12
 
#define SCSI_SENSEQ_SEEK_ERROR_RATE_TOO_HIGH   0x13
 
#define SCSI_SENSEQ_TOO_MANY_BLOCK_REASSIGNS   0x14
 
#define SCSI_SENSEQ_ACCESS_TIMES_TOO_HIGH   0x15
 
#define SCSI_SENSEQ_START_UNIT_TIMES_TOO_HIGH   0x16
 
#define SCSI_SENSEQ_CHANNEL_PARAMETRICS   0x17
 
#define SCSI_SENSEQ_CONTROLLER_DETECTED   0x18
 
#define SCSI_SENSEQ_THROUGHPUT_PERFORMANCE   0x19
 
#define SCSI_SENSEQ_SEEK_TIME_PERFORMANCE   0x1A
 
#define SCSI_SENSEQ_SPIN_UP_RETRY_COUNT   0x1B
 
#define SCSI_SENSEQ_DRIVE_CALIBRATION_RETRY_COUNT   0x1C
 
#define SCSI_SENSEQ_DATA_CHANNEL_DATA_ERROR_RATE_TOO_HIGH   0x32
 
#define SCSI_SENSEQ_SERVO_DATA_ERROR_RATE_TOO_HIGH   0x42
 
#define SCSI_SENSEQ_SERVER_SEEK_ERROR_RATE_TOO_HIGH   0x43
 
#define SCSI_SENSEQ_FAILURE_PREDICTION_THRESHOLD_EXCEEDED_FALSE   0xFF
 
#define SCSI_SENSEQ_AUTHENTICATION_FAILURE   0x00
 
#define SCSI_SENSEQ_KEY_NOT_PRESENT   0x01
 
#define SCSI_SENSEQ_KEY_NOT_ESTABLISHED   0x02
 
#define SCSI_SENSEQ_READ_OF_SCRAMBLED_SECTOR_WITHOUT_AUTHENTICATION   0x03
 
#define SCSI_SENSEQ_MEDIA_CODE_MISMATCHED_TO_LOGICAL_UNIT   0x04
 
#define SCSI_SENSEQ_LOGICAL_UNIT_RESET_COUNT_ERROR   0x05
 
#define SCSI_SENSEQ_POWER_CALIBRATION_AREA_ALMOST_FULL   0x01
 
#define SCSI_SENSEQ_POWER_CALIBRATION_AREA_FULL   0x02
 
#define SCSI_SENSEQ_POWER_CALIBRATION_AREA_ERROR   0x03
 
#define SCSI_SENSEQ_PMA_RMA_UPDATE_FAILURE   0x04
 
#define SCSI_SENSEQ_PMA_RMA_IS_FULL   0x05
 
#define SCSI_SENSEQ_PMA_RMA_ALMOST_FULL   0x06
 
#define FILE_DEVICE_SCSI   0x0000001b
 
#define IOCTL_SCSI_EXECUTE_IN   ((FILE_DEVICE_SCSI << 16) + 0x0011)
 
#define IOCTL_SCSI_EXECUTE_OUT   ((FILE_DEVICE_SCSI << 16) + 0x0012)
 
#define IOCTL_SCSI_EXECUTE_NONE   ((FILE_DEVICE_SCSI << 16) + 0x0013)
 
#define IOCTL_SCSI_MINIPORT_SMART_VERSION   ((FILE_DEVICE_SCSI << 16) + 0x0500)
 
#define IOCTL_SCSI_MINIPORT_IDENTIFY   ((FILE_DEVICE_SCSI << 16) + 0x0501)
 
#define IOCTL_SCSI_MINIPORT_READ_SMART_ATTRIBS   ((FILE_DEVICE_SCSI << 16) + 0x0502)
 
#define IOCTL_SCSI_MINIPORT_READ_SMART_THRESHOLDS   ((FILE_DEVICE_SCSI << 16) + 0x0503)
 
#define IOCTL_SCSI_MINIPORT_ENABLE_SMART   ((FILE_DEVICE_SCSI << 16) + 0x0504)
 
#define IOCTL_SCSI_MINIPORT_DISABLE_SMART   ((FILE_DEVICE_SCSI << 16) + 0x0505)
 
#define IOCTL_SCSI_MINIPORT_RETURN_STATUS   ((FILE_DEVICE_SCSI << 16) + 0x0506)
 
#define IOCTL_SCSI_MINIPORT_ENABLE_DISABLE_AUTOSAVE   ((FILE_DEVICE_SCSI << 16) + 0x0507)
 
#define IOCTL_SCSI_MINIPORT_SAVE_ATTRIBUTE_VALUES   ((FILE_DEVICE_SCSI << 16) + 0x0508)
 
#define IOCTL_SCSI_MINIPORT_EXECUTE_OFFLINE_DIAGS   ((FILE_DEVICE_SCSI << 16) + 0x0509)
 
#define IOCTL_SCSI_MINIPORT_ENABLE_DISABLE_AUTO_OFFLINE   ((FILE_DEVICE_SCSI << 16) + 0x050a)
 
#define IOCTL_SCSI_MINIPORT_READ_SMART_LOG   ((FILE_DEVICE_SCSI << 16) + 0x050b)
 
#define IOCTL_SCSI_MINIPORT_WRITE_SMART_LOG   ((FILE_DEVICE_SCSI << 16) + 0x050c)
 
#define IOCTL_SCSI_MINIPORT_NOT_QUORUM_CAPABLE   ((FILE_DEVICE_SCSI << 16) + 0x0520)
 
#define IOCTL_SCSI_MINIPORT_NOT_CLUSTER_CAPABLE   ((FILE_DEVICE_SCSI << 16) + 0x0521)
 
#define MODE_FD_SINGLE_SIDE   0x01
 
#define MODE_FD_DOUBLE_SIDE   0x02
 
#define MODE_FD_MAXIMUM_TYPE   0x1E
 
#define MODE_DSP_FUA_SUPPORTED   0x10
 
#define MODE_DSP_WRITE_PROTECT   0x80
 
#define CDDA_CHANNEL_MUTED   0x0
 
#define CDDA_CHANNEL_ZERO   0x1
 
#define CDDA_CHANNEL_ONE   0x2
 
#define CDDA_CHANNEL_TWO   0x4
 
#define CDDA_CHANNEL_THREE   0x8
 
#define CDVD_LMT_CADDY   0
 
#define CDVD_LMT_TRAY   1
 
#define CDVD_LMT_POPUP   2
 
#define CDVD_LMT_RESERVED1   3
 
#define CDVD_LMT_CHANGER_INDIVIDUAL   4
 
#define CDVD_LMT_CHANGER_CARTRIDGE   5
 
#define CDVD_LMT_RESERVED2   6
 
#define CDVD_LMT_RESERVED3   7
 
#define LOADING_MECHANISM_CADDY   0x00
 
#define LOADING_MECHANISM_TRAY   0x01
 
#define LOADING_MECHANISM_POPUP   0x02
 
#define LOADING_MECHANISM_INDIVIDUAL_CHANGER   0x04
 
#define LOADING_MECHANISM_CARTRIDGE_CHANGER   0x05
 
#define MODE_BLOCK_DESC_LENGTH   8
 
#define MODE_HEADER_LENGTH   4
 
#define MODE_HEADER_LENGTH10   8
 
#define CDB_AUDIO_PAUSE   0x00
 
#define CDB_AUDIO_RESUME   0x01
 
#define CDB_DEVICE_START   0x11
 
#define CDB_DEVICE_STOP   0x10
 
#define CDB_EJECT_MEDIA   0x10
 
#define CDB_LOAD_MEDIA   0x01
 
#define CDB_SUBCHANNEL_HEADER   0x00
 
#define CDB_SUBCHANNEL_BLOCK   0x01
 
#define CDROM_AUDIO_CONTROL_PAGE   0x0E
 
#define MODE_SELECT_IMMEDIATE   0x04
 
#define MODE_SELECT_PFBIT   0x10
 
#define CDB_USE_MSF   0x01
 
#define GET_LAST_SESSION   0x01
 
#define GET_SESSION_DATA   0x02
 
#define _INQUIRYDATA_DEFINED
 
#define INQUIRYDATABUFFERSIZE   36
 
#define VPD_MAX_BUFFER_SIZE   0xff
 
#define VPD_SUPPORTED_PAGES   0x00
 
#define VPD_SERIAL_NUMBER   0x80
 
#define VPD_DEVICE_IDENTIFIERS   0x83
 
#define VPD_MEDIA_SERIAL_NUMBER   0x84
 
#define VPD_SOFTWARE_INTERFACE_IDENTIFIERS   0x84
 
#define VPD_NETWORK_MANAGEMENT_ADDRESSES   0x85
 
#define VPD_EXTENDED_INQUIRY_DATA   0x86
 
#define VPD_MODE_PAGE_POLICY   0x87
 
#define VPD_SCSI_PORTS   0x88
 
#define VPD_ATA_INFORMATION   0x89
 
#define VPD_THIRD_PARTY_COPY   0x8F
 
#define VPD_BLOCK_LIMITS   0xB0
 
#define VPD_BLOCK_DEVICE_CHARACTERISTICS   0xB1
 
#define VPD_LOGICAL_BLOCK_PROVISIONING   0xB2
 
#define VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS   0xB6
 
#define BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR_TYPE_WINDOWS   0x00
 
#define ZONED_CAPABILITIES_NOT_REPORTED   0x0
 
#define ZONED_CAPABILITIES_HOST_AWARE   0x1
 
#define ZONED_CAPABILITIES_DEVICE_MANAGED   0x2
 
#define PROVISIONING_TYPE_UNKNOWN   0x0
 
#define PROVISIONING_TYPE_RESOURCE   0x1
 
#define PROVISIONING_TYPE_THIN   0x2
 
#define RC_BASIS_LAST_LBA_NOT_SEQUENTIAL_WRITE_REQUIRED_ZONES   0x0
 
#define RC_BASIS_LAST_LBA_ON_LOGICAL_UNIT   0x1
 
#define LBA_STATUS_MAPPED   0x0
 
#define LBA_STATUS_DEALLOCATED   0x1
 
#define LBA_STATUS_ANCHORED   0x2
 
#define LOG_PAGE_CODE_SUPPORTED_LOG_PAGES   0x00
 
#define LOG_PAGE_CODE_WRITE_ERROR_COUNTERS   0x02
 
#define LOG_PAGE_CODE_READ_ERROR_COUNTERS   0x03
 
#define LOG_PAGE_CODE_LOGICAL_BLOCK_PROVISIONING   0x0C
 
#define LOG_PAGE_CODE_TEMPERATURE   0x0D
 
#define LOG_PAGE_CODE_STARTSTOP_CYCLE_COUNTERS   0x0E
 
#define LOG_PAGE_CODE_SELFTEST_RESULTS   0x10
 
#define LOG_PAGE_CODE_SOLID_STATE_MEDIA   0x11
 
#define LOG_PAGE_CODE_BACKGROUND_SCAN_RESULTS   0x15
 
#define LOG_PAGE_CODE_INFORMATIONAL_EXCEPTIONS   0x2F
 
#define LOG_PAGE_LBP_PARAMETER_CODE_AVAILABLE   0x1
 
#define LOG_PAGE_LBP_PARAMETER_CODE_USED   0x2
 
#define LOG_PAGE_LBP_RESOURCE_SCOPE_NOT_REPORTED   0x0
 
#define LOG_PAGE_LBP_RESOURCE_SCOPE_DEDICATED_TO_LUN   0x1
 
#define LOG_PAGE_LBP_RESOURCE_SCOPE_NOT_DEDICATED_TO_LUN   0x2
 
#define REVERSE_BYTES_QUAD(Destination, Source)
 
#define REVERSE_BYTES(Destination, Source)
 
#define REVERSE_BYTES_SHORT(Destination, Source)
 
#define REVERSE_SHORT(Short)
 
#define REVERSE_LONG(Long)
 
#define WHICH_BIT(Data, Bit)
 
#define STOR_ADDRESS_ALIGN
 
#define STOR_ADDRESS_TYPE_UNKNOWN   0x0
 
#define STOR_ADDRESS_TYPE_BTL8   0x1
 
#define STOR_ADDRESS_TYPE_MAX   0xffff
 
#define STOR_ADDR_BTL8_ADDRESS_LENGTH   4
 
#define BLOCK_DEVICE_TOKEN_SIZE   512
 
#define ScsiGetSenseErrorCode(SenseInfoBuffer)   (((PUCHAR)(SenseInfoBuffer))[0] & 0x7f)
 
#define ScsiGetSenseDescriptorLength(DescriptorBuffer)   (sizeof(SCSI_SENSE_DESCRIPTOR_HEADER) + ((PSCSI_SENSE_DESCRIPTOR_HEADER)(DescriptorBuffer))->AdditionalLength)
 
#define IsFixedSenseDataFormat(SenseInfoBuffer)
 
#define IsDescriptorSenseDataFormat(SenseInfoBuffer)
 
#define IsSenseDataCurrentError(SenseInfoBuffer)
 
#define IsSenseDataDeferredError(SenseInfoBuffer)
 
#define IsSenseDataFormatValueValid(SenseInfoBuffer)   (IsFixedSenseDataFormat(SenseInfoBuffer) || IsDescriptorSenseDataFormat(SenseInfoBuffer))
 
#define SCSI_SENSE_OPTIONS_NONE   ((SCSI_SENSE_OPTIONS)0x00000000)
 
#define SCSI_SENSE_OPTIONS_FIXED_FORMAT_IF_UNKNOWN_FORMAT_INDICATED   ((SCSI_SENSE_OPTIONS)0x00000001)
 

Typedefs

typedef union _CDB CDB
 
typedef union _CDBPCDB
 
typedef struct _NOTIFICATION_EVENT_STATUS_HEADER NOTIFICATION_EVENT_STATUS_HEADER
 
typedef struct _NOTIFICATION_EVENT_STATUS_HEADERPNOTIFICATION_EVENT_STATUS_HEADER
 
typedef struct _NOTIFICATION_OPERATIONAL_STATUS NOTIFICATION_OPERATIONAL_STATUS
 
typedef struct _NOTIFICATION_OPERATIONAL_STATUSPNOTIFICATION_OPERATIONAL_STATUS
 
typedef struct _NOTIFICATION_POWER_STATUS NOTIFICATION_POWER_STATUS
 
typedef struct _NOTIFICATION_POWER_STATUSPNOTIFICATION_POWER_STATUS
 
typedef struct _NOTIFICATION_EXTERNAL_STATUS NOTIFICATION_EXTERNAL_STATUS
 
typedef struct _NOTIFICATION_EXTERNAL_STATUSPNOTIFICATION_EXTERNAL_STATUS
 
typedef struct _NOTIFICATION_MEDIA_STATUS NOTIFICATION_MEDIA_STATUS
 
typedef struct _NOTIFICATION_MEDIA_STATUSPNOTIFICATION_MEDIA_STATUS
 
typedef struct _NOTIFICATION_MULTI_HOST_STATUS NOTIFICATION_MULTI_HOST_STATUS
 
typedef struct _NOTIFICATION_MULTI_HOST_STATUSPNOTIFICATION_MULTI_HOST_STATUS
 
typedef struct _NOTIFICATION_BUSY_STATUS NOTIFICATION_BUSY_STATUS
 
typedef struct _NOTIFICATION_BUSY_STATUSPNOTIFICATION_BUSY_STATUS
 
typedef struct _READ_DVD_STRUCTURES_HEADER READ_DVD_STRUCTURES_HEADER
 
typedef struct _READ_DVD_STRUCTURES_HEADERPREAD_DVD_STRUCTURES_HEADER
 
typedef struct _CDVD_KEY_HEADER CDVD_KEY_HEADER
 
typedef struct _CDVD_KEY_HEADERPCDVD_KEY_HEADER
 
typedef struct _CDVD_REPORT_AGID_DATA CDVD_REPORT_AGID_DATA
 
typedef struct _CDVD_REPORT_AGID_DATAPCDVD_REPORT_AGID_DATA
 
typedef struct _CDVD_CHALLENGE_KEY_DATA CDVD_CHALLENGE_KEY_DATA
 
typedef struct _CDVD_CHALLENGE_KEY_DATAPCDVD_CHALLENGE_KEY_DATA
 
typedef struct _CDVD_KEY_DATA CDVD_KEY_DATA
 
typedef struct _CDVD_KEY_DATAPCDVD_KEY_DATA
 
typedef struct _CDVD_REPORT_ASF_DATA CDVD_REPORT_ASF_DATA
 
typedef struct _CDVD_REPORT_ASF_DATAPCDVD_REPORT_ASF_DATA
 
typedef struct _CDVD_TITLE_KEY_HEADER CDVD_TITLE_KEY_HEADER
 
typedef struct _CDVD_TITLE_KEY_HEADERPCDVD_TITLE_KEY_HEADER
 
typedef struct _FORMAT_DESCRIPTOR FORMAT_DESCRIPTOR
 
typedef struct _FORMAT_DESCRIPTORPFORMAT_DESCRIPTOR
 
typedef struct _FORMAT_LIST_HEADER FORMAT_LIST_HEADER
 
typedef struct _FORMAT_LIST_HEADERPFORMAT_LIST_HEADER
 
typedef struct _FORMATTED_CAPACITY_DESCRIPTOR FORMATTED_CAPACITY_DESCRIPTOR
 
typedef struct _FORMATTED_CAPACITY_DESCRIPTORPFORMATTED_CAPACITY_DESCRIPTOR
 
typedef struct _FORMATTED_CAPACITY_LIST FORMATTED_CAPACITY_LIST
 
typedef struct _FORMATTED_CAPACITY_LISTPFORMATTED_CAPACITY_LIST
 
typedef struct _OPC_TABLE_ENTRY OPC_TABLE_ENTRY
 
typedef struct _OPC_TABLE_ENTRYPOPC_TABLE_ENTRY
 
typedef struct _DISC_INFORMATION DISC_INFORMATION
 
typedef struct _DISC_INFORMATIONPDISC_INFORMATION
 
typedef struct _DISK_INFORMATION DISK_INFORMATION
 
typedef struct _DISK_INFORMATIONPDISK_INFORMATION
 
typedef struct _DATA_BLOCK_HEADER DATA_BLOCK_HEADER
 
typedef struct _DATA_BLOCK_HEADERPDATA_BLOCK_HEADER
 
typedef struct _TRACK_INFORMATION TRACK_INFORMATION
 
typedef struct _TRACK_INFORMATIONPTRACK_INFORMATION
 
typedef struct _TRACK_INFORMATION2 TRACK_INFORMATION2
 
typedef struct _TRACK_INFORMATION2PTRACK_INFORMATION2
 
typedef struct _TRACK_INFORMATION3 TRACK_INFORMATION3
 
typedef struct _TRACK_INFORMATION3PTRACK_INFORMATION3
 
typedef struct _PERFORMANCE_DESCRIPTOR PERFORMANCE_DESCRIPTOR
 
typedef struct _PERFORMANCE_DESCRIPTORPPERFORMANCE_DESCRIPTOR
 
typedef struct _SCSI_EXTENDED_MESSAGE SCSI_EXTENDED_MESSAGE
 
typedef struct _SCSI_EXTENDED_MESSAGEPSCSI_EXTENDED_MESSAGE
 
typedef struct _INQUIRYDATA INQUIRYDATA
 
typedef struct _INQUIRYDATAPINQUIRYDATA
 
typedef struct _VPD_MEDIA_SERIAL_NUMBER_PAGE VPD_MEDIA_SERIAL_NUMBER_PAGE
 
typedef struct _VPD_MEDIA_SERIAL_NUMBER_PAGEPVPD_MEDIA_SERIAL_NUMBER_PAGE
 
typedef struct _VPD_SERIAL_NUMBER_PAGE VPD_SERIAL_NUMBER_PAGE
 
typedef struct _VPD_SERIAL_NUMBER_PAGEPVPD_SERIAL_NUMBER_PAGE
 
typedef enum _VPD_CODE_SET VPD_CODE_SET
 
typedef enum _VPD_CODE_SETPVPD_CODE_SET
 
typedef enum _VPD_ASSOCIATION VPD_ASSOCIATION
 
typedef enum _VPD_ASSOCIATIONPVPD_ASSOCIATION
 
typedef enum _VPD_IDENTIFIER_TYPE VPD_IDENTIFIER_TYPE
 
typedef enum _VPD_IDENTIFIER_TYPEPVPD_IDENTIFIER_TYPE
 
typedef struct _VPD_IDENTIFICATION_DESCRIPTOR VPD_IDENTIFICATION_DESCRIPTOR
 
typedef struct _VPD_IDENTIFICATION_DESCRIPTORPVPD_IDENTIFICATION_DESCRIPTOR
 
typedef struct _VPD_IDENTIFICATION_PAGE VPD_IDENTIFICATION_PAGE
 
typedef struct _VPD_IDENTIFICATION_PAGEPVPD_IDENTIFICATION_PAGE
 
typedef struct _VPD_ATA_INFORMATION_PAGE VPD_ATA_INFORMATION_PAGE
 
typedef struct _VPD_ATA_INFORMATION_PAGEPVPD_ATA_INFORMATION_PAGE
 
typedef struct _VPD_THIRD_PARTY_COPY_PAGE VPD_THIRD_PARTY_COPY_PAGE
 
typedef struct _VPD_THIRD_PARTY_COPY_PAGEPVPD_THIRD_PARTY_COPY_PAGE
 
typedef struct _WINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR WINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR
 
typedef struct _WINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTORPWINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR
 
typedef struct _VPD_BLOCK_LIMITS_PAGE VPD_BLOCK_LIMITS_PAGE
 
typedef struct _VPD_BLOCK_LIMITS_PAGEPVPD_BLOCK_LIMITS_PAGE
 
typedef struct _VPD_BLOCK_DEVICE_CHARACTERISTICS_PAGE VPD_BLOCK_DEVICE_CHARACTERISTICS_PAGE
 
typedef struct _VPD_BLOCK_DEVICE_CHARACTERISTICS_PAGEPVPD_BLOCK_DEVICE_CHARACTERISTICS_PAGE
 
typedef struct _VPD_LOGICAL_BLOCK_PROVISIONING_PAGE VPD_LOGICAL_BLOCK_PROVISIONING_PAGE
 
typedef struct _VPD_LOGICAL_BLOCK_PROVISIONING_PAGEPVPD_LOGICAL_BLOCK_PROVISIONING_PAGE
 
typedef struct _VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGE VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGE
 
typedef struct _VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGEPVPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGE
 
typedef struct _VPD_SUPPORTED_PAGES_PAGE VPD_SUPPORTED_PAGES_PAGE
 
typedef struct _VPD_SUPPORTED_PAGES_PAGEPVPD_SUPPORTED_PAGES_PAGE
 
typedef struct _PRI_REGISTRATION_LIST PRI_REGISTRATION_LIST
 
typedef struct _PRI_REGISTRATION_LISTPPRI_REGISTRATION_LIST
 
typedef struct _PRI_RESERVATION_DESCRIPTOR PRI_RESERVATION_DESCRIPTOR
 
typedef struct _PRI_RESERVATION_DESCRIPTORPPRI_RESERVATION_DESCRIPTOR
 
typedef struct _PRI_RESERVATION_LIST PRI_RESERVATION_LIST
 
typedef struct _PRI_RESERVATION_LISTPPRI_RESERVATION_LIST
 
typedef struct _PRO_PARAMETER_LIST PRO_PARAMETER_LIST
 
typedef struct _PRO_PARAMETER_LISTPPRO_PARAMETER_LIST
 
typedef struct _SENSE_DATA SENSE_DATA
 
typedef struct _SENSE_DATAPSENSE_DATA
 
typedef struct _SCSI_SENSE_DESCRIPTOR_HEADER SCSI_SENSE_DESCRIPTOR_HEADER
 
typedef struct _SCSI_SENSE_DESCRIPTOR_HEADERPSCSI_SENSE_DESCRIPTOR_HEADER
 
typedef struct _SCSI_SENSE_DESCRIPTOR_INFORMATION SCSI_SENSE_DESCRIPTOR_INFORMATION
 
typedef struct _SCSI_SENSE_DESCRIPTOR_INFORMATIONPSCSI_SENSE_DESCRIPTOR_INFORMATION
 
typedef struct _SCSI_SENSE_DESCRIPTOR_BLOCK_COMMAND SCSI_SENSE_DESCRIPTOR_BLOCK_COMMAND
 
typedef struct _SCSI_SENSE_DESCRIPTOR_BLOCK_COMMANDPSCSI_SENSE_DESCRIPTOR_BLOCK_COMMAND
 
typedef struct _SCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURN SCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURN
 
typedef struct _SCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURNPSCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURN
 
typedef struct _SENSE_DATA FIXED_SENSE_DATA
 
typedef struct _SENSE_DATAPFIXED_SENSE_DATA
 
typedef struct _DESCRIPTOR_SENSE_DATA DESCRIPTOR_SENSE_DATA
 
typedef struct _DESCRIPTOR_SENSE_DATAPDESCRIPTOR_SENSE_DATA
 
typedef union _SENSE_DATA_EX SENSE_DATA_EX
 
typedef union _SENSE_DATA_EXPSENSE_DATA_EX
 
typedef struct _READ_CAPACITY_DATA READ_CAPACITY_DATA
 
typedef struct _READ_CAPACITY_DATAPREAD_CAPACITY_DATA
 
typedef struct _READ_CAPACITY_DATA_EX READ_CAPACITY_DATA_EX
 
typedef struct _READ_CAPACITY_DATA_EXPREAD_CAPACITY_DATA_EX
 
typedef struct _READ_CAPACITY16_DATA READ_CAPACITY16_DATA
 
typedef struct _READ_CAPACITY16_DATAPREAD_CAPACITY16_DATA
 
typedef struct _LBA_STATUS_DESCRIPTOR LBA_STATUS_DESCRIPTOR
 
typedef struct _LBA_STATUS_DESCRIPTORPLBA_STATUS_DESCRIPTOR
 
typedef struct _LBA_STATUS_LIST_HEADER LBA_STATUS_LIST_HEADER
 
typedef struct _LBA_STATUS_LIST_HEADERPLBA_STATUS_LIST_HEADER
 
typedef struct _READ_BLOCK_LIMITS READ_BLOCK_LIMITS_DATA
 
typedef struct _READ_BLOCK_LIMITSPREAD_BLOCK_LIMITS_DATA
 
typedef struct _READ_BUFFER_CAPACITY_DATA READ_BUFFER_CAPACITY_DATA
 
typedef struct _READ_BUFFER_CAPACITY_DATAPREAD_BUFFER_CAPACITY_DATA
 
typedef struct _MODE_PARAMETER_HEADER MODE_PARAMETER_HEADER
 
typedef struct _MODE_PARAMETER_HEADERPMODE_PARAMETER_HEADER
 
typedef struct _MODE_PARAMETER_HEADER10 MODE_PARAMETER_HEADER10
 
typedef struct _MODE_PARAMETER_HEADER10PMODE_PARAMETER_HEADER10
 
typedef struct _MODE_PARAMETER_BLOCK MODE_PARAMETER_BLOCK
 
typedef struct _MODE_PARAMETER_BLOCKPMODE_PARAMETER_BLOCK
 
typedef struct _MODE_DISCONNECT_PAGE MODE_DISCONNECT_PAGE
 
typedef struct _MODE_DISCONNECT_PAGEPMODE_DISCONNECT_PAGE
 
typedef struct _MODE_CACHING_PAGE MODE_CACHING_PAGE
 
typedef struct _MODE_CACHING_PAGEPMODE_CACHING_PAGE
 
typedef struct _MODE_CDROM_WRITE_PARAMETERS_PAGE2 MODE_CDROM_WRITE_PARAMETERS_PAGE2
 
typedef struct _MODE_CDROM_WRITE_PARAMETERS_PAGE2PMODE_CDROM_WRITE_PARAMETERS_PAGE2
 
typedef struct _MODE_MRW_PAGE MODE_MRW_PAGE
 
typedef struct _MODE_MRW_PAGEPMODE_MRW_PAGE
 
typedef struct _MODE_FLEXIBLE_DISK_PAGE MODE_FLEXIBLE_DISK_PAGE
 
typedef struct _MODE_FLEXIBLE_DISK_PAGEPMODE_FLEXIBLE_DISK_PAGE
 
typedef struct _MODE_FORMAT_PAGE MODE_FORMAT_PAGE
 
typedef struct _MODE_FORMAT_PAGEPMODE_FORMAT_PAGE
 
typedef struct _MODE_RIGID_GEOMETRY_PAGE MODE_RIGID_GEOMETRY_PAGE
 
typedef struct _MODE_RIGID_GEOMETRY_PAGEPMODE_RIGID_GEOMETRY_PAGE
 
typedef struct _MODE_READ_WRITE_RECOVERY_PAGE MODE_READ_WRITE_RECOVERY_PAGE
 
typedef struct _MODE_READ_WRITE_RECOVERY_PAGEPMODE_READ_WRITE_RECOVERY_PAGE
 
typedef struct _MODE_READ_RECOVERY_PAGE MODE_READ_RECOVERY_PAGE
 
typedef struct _MODE_READ_RECOVERY_PAGEPMODE_READ_RECOVERY_PAGE
 
typedef struct _MODE_INFO_EXCEPTIONS MODE_INFO_EXCEPTIONS
 
typedef struct _MODE_INFO_EXCEPTIONSPMODE_INFO_EXCEPTIONS
 
typedef struct _POWER_CONDITION_PAGE POWER_CONDITION_PAGE
 
typedef struct _POWER_CONDITION_PAGEPPOWER_CONDITION_PAGE
 
typedef struct _CDDA_OUTPUT_PORT CDDA_OUTPUT_PORT
 
typedef struct _CDDA_OUTPUT_PORTPCDDA_OUTPUT_PORT
 
typedef struct _CDAUDIO_CONTROL_PAGE CDAUDIO_CONTROL_PAGE
 
typedef struct _CDAUDIO_CONTROL_PAGEPCDAUDIO_CONTROL_PAGE
 
typedef struct _CDVD_FEATURE_SET_PAGE CDVD_FEATURE_SET_PAGE
 
typedef struct _CDVD_FEATURE_SET_PAGEPCDVD_FEATURE_SET_PAGE
 
typedef struct _CDVD_INACTIVITY_TIMEOUT_PAGE CDVD_INACTIVITY_TIMEOUT_PAGE
 
typedef struct _CDVD_INACTIVITY_TIMEOUT_PAGEPCDVD_INACTIVITY_TIMEOUT_PAGE
 
typedef struct _CDVD_CAPABILITIES_PAGE CDVD_CAPABILITIES_PAGE
 
typedef struct _CDVD_CAPABILITIES_PAGEPCDVD_CAPABILITIES_PAGE
 
typedef struct _LUN_LIST LUN_LIST
 
typedef struct _LUN_LISTPLUN_LIST
 
typedef struct _MODE_PARM_READ_WRITE MODE_PARM_READ_WRITE_DATA
 
typedef struct _MODE_PARM_READ_WRITEPMODE_PARM_READ_WRITE_DATA
 
typedef struct _PORT_OUTPUT PORT_OUTPUT
 
typedef struct _PORT_OUTPUTPPORT_OUTPUT
 
typedef struct _AUDIO_OUTPUT AUDIO_OUTPUT
 
typedef struct _AUDIO_OUTPUTPAUDIO_OUTPUT
 
typedef struct _MECHANICAL_STATUS_INFORMATION_HEADER MECHANICAL_STATUS_INFORMATION_HEADER
 
typedef struct _MECHANICAL_STATUS_INFORMATION_HEADERPMECHANICAL_STATUS_INFORMATION_HEADER
 
typedef struct _SLOT_TABLE_INFORMATION SLOT_TABLE_INFORMATION
 
typedef struct _SLOT_TABLE_INFORMATIONPSLOT_TABLE_INFORMATION
 
typedef struct _MECHANICAL_STATUS MECHANICAL_STATUS
 
typedef struct _MECHANICAL_STATUSPMECHANICAL_STATUS
 
typedef struct _TAPE_POSITION_DATA TAPE_POSITION_DATA
 
typedef struct _TAPE_POSITION_DATAPTAPE_POSITION_DATA
 
typedef struct _UNMAP_BLOCK_DESCRIPTOR UNMAP_BLOCK_DESCRIPTOR
 
typedef struct _UNMAP_BLOCK_DESCRIPTORPUNMAP_BLOCK_DESCRIPTOR
 
typedef struct _UNMAP_LIST_HEADER UNMAP_LIST_HEADER
 
typedef struct _UNMAP_LIST_HEADERPUNMAP_LIST_HEADER
 
typedef struct _LOG_PARAMETER_HEADER LOG_PARAMETER_HEADER
 
typedef struct _LOG_PARAMETER_HEADERPLOG_PARAMETER_HEADER
 
typedef struct _LOG_PARAMETER LOG_PARAMETER
 
typedef struct _LOG_PARAMETERPLOG_PARAMETER
 
typedef struct _LOG_PAGE LOG_PAGE
 
typedef struct _LOG_PAGEPLOG_PAGE
 
typedef struct _LOG_PARAMETER_THRESHOLD_RESOURCE_COUNT LOG_PARAMETER_THRESHOLD_RESOURCE_COUNT
 
typedef struct _LOG_PARAMETER_THRESHOLD_RESOURCE_COUNTPLOG_PARAMETER_THRESHOLD_RESOURCE_COUNT
 
typedef struct _LOG_PAGE_LOGICAL_BLOCK_PROVISIONING LOG_PAGE_LOGICAL_BLOCK_PROVISIONING
 
typedef struct _LOG_PAGE_LOGICAL_BLOCK_PROVISIONINGPLOG_PAGE_LOGICAL_BLOCK_PROVISIONING
 
typedef struct _MODE_CONTROL_PAGE MODE_CONTROL_PAGE
 
typedef struct _MODE_CONTROL_PAGEPMODE_CONTROL_PAGE
 
typedef union _EIGHT_BYTE EIGHT_BYTE
 
typedef union _EIGHT_BYTEPEIGHT_BYTE
 
typedef union _FOUR_BYTE FOUR_BYTE
 
typedef union _FOUR_BYTEPFOUR_BYTE
 
typedef union _TWO_BYTE TWO_BYTE
 
typedef union _TWO_BYTEPTWO_BYTE
 
typedef struct STOR_ADDRESS_ALIGN _STOR_ADDRESS STOR_ADDRESS
 
typedef struct STOR_ADDRESS_ALIGN _STOR_ADDRESSPSTOR_ADDRESS
 
typedef struct STOR_ADDRESS_ALIGN _STOR_ADDR_BTL8 STOR_ADDR_BTL8
 
typedef struct STOR_ADDRESS_ALIGN _STOR_ADDR_BTL8PSTOR_ADDR_BTL8
 
typedef struct _MODE_CDROM_WRITE_PARAMETERS_PAGE MODE_CDROM_WRITE_PARAMETERS_PAGE
 
typedef struct _MODE_CDROM_WRITE_PARAMETERS_PAGEPMODE_CDROM_WRITE_PARAMETERS_PAGE
 
typedef struct BLOCK_DEVICE_RANGE_DESCRIPTORPBLOCK_DEVICE_RANGE_DESCRIPTOR
 
typedef struct POPULATE_TOKEN_HEADERPPOPULATE_TOKEN_HEADER
 
typedef struct WRITE_USING_TOKEN_HEADERPWRITE_USING_TOKEN_HEADER
 
typedef struct RECEIVE_TOKEN_INFORMATION_HEADERPRECEIVE_TOKEN_INFORMATION_HEADER
 
typedef struct RECEIVE_TOKEN_INFORMATION_RESPONSE_HEADERPRECEIVE_TOKEN_INFORMATION_RESPONSE_HEADER
 
typedef struct BLOCK_DEVICE_TOKEN_DESCRIPTORPBLOCK_DEVICE_TOKEN_DESCRIPTOR
 
typedef enum _OPERATION_STATUS OPERATION_STATUS
 
typedef enum _OPERATION_STATUSPOPERATION_STATUS
 
typedef enum _TRANSFER_COUNT_UNITS TRANSFER_COUNT_UNITS
 
typedef enum _TRANSFER_COUNT_UNITSPTRANSFER_COUNT_UNITS
 
typedef ULONG SCSI_SENSE_OPTIONS
 

Enumerations

enum  _VPD_CODE_SET {
  VpdCodeSetReserved = 0, VpdCodeSetBinary = 1, VpdCodeSetAscii = 2, VpdCodeSetUTF8 = 3,
  VpdCodeSetReserved = 0, VpdCodeSetBinary = 1, VpdCodeSetAscii = 2, VpdCodeSetUTF8 = 3
}
 
enum  _VPD_ASSOCIATION {
  VpdAssocDevice = 0, VpdAssocPort = 1, VpdAssocTarget = 2, VpdAssocReserved1 = 3,
  VpdAssocReserved2 = 4, VpdAssocDevice = 0, VpdAssocPort = 1, VpdAssocTarget = 2,
  VpdAssocReserved1 = 3, VpdAssocReserved2 = 4
}
 
enum  _VPD_IDENTIFIER_TYPE {
  VpdIdentifierTypeVendorSpecific = 0, VpdIdentifierTypeVendorId = 1, VpdIdentifierTypeEUI64 = 2, VpdIdentifierTypeFCPHName = 3,
  VpdIdentifierTypePortRelative = 4, VpdIdentifierTypeTargetPortGroup = 5, VpdIdentifierTypeLogicalUnitGroup = 6, VpdIdentifierTypeMD5LogicalUnitId = 7,
  VpdIdentifierTypeSCSINameString = 8, VpdIdentifierTypeVendorSpecific = 0, VpdIdentifierTypeVendorId = 1, VpdIdentifierTypeEUI64 = 2,
  VpdIdentifierTypeFCPHName = 3, VpdIdentifierTypePortRelative = 4, VpdIdentifierTypeTargetPortGroup = 5, VpdIdentifierTypeLogicalUnitGroup = 6,
  VpdIdentifierTypeMD5LogicalUnitId = 7, VpdIdentifierTypeSCSINameString = 8
}
 
enum  _OPERATION_STATUS {
  OPERATION_COMPLETED_WITH_SUCCESS = 0x01, OPERATION_COMPLETED_WITH_ERROR = 0x02, OPERATION_COMPLETED_WITH_RESIDUAL_DATA = 0x03, OPERATION_IN_PROGRESS_IN_FOREGROUND = 0x11,
  OPERATION_IN_PROGRESS_IN_BACKGROUND = 0x12, OPERATION_TERMINATED = 0x60
}
 
enum  _TRANSFER_COUNT_UNITS {
  TRANSFER_COUNT_UNITS_BYTES = 0, TRANSFER_COUNT_UNITS_KIBIBYTES = 1, TRANSFER_COUNT_UNITS_MEBIBYTES = 2, TRANSFER_COUNT_UNITS_GIBIBYTES = 3,
  TRANSFER_COUNT_UNITS_TEBIBYTES = 4, TRANSFER_COUNT_UNITS_PEBIBYTES = 5, TRANSFER_COUNT_UNITS_EXBIBYTES = 6, TRANSFER_COUNT_UNITS_NUMBER_BLOCKS = 0xF1
}
 

Functions

 _Success_ (return !=FALSE) FORCEINLINE BOOLEAN ScsiGetTotalSenseByteCountIndicated(_In_reads_bytes_(SenseInfoBufferLength) PVOID SenseInfoBuffer
 
 if (SenseInfoBuffer==NULL||SenseInfoBufferLength==0||TotalByteCountIndicated==NULL)
 
 if (RTL_CONTAINS_FIELD(senseInfoBuffer, SenseInfoBufferLength, AdditionalSenseLength))
 
 if (RTL_CONTAINS_FIELD(fixedSenseData, SenseInfoBufferLength, AdditionalSenseLength))
 
 if (RTL_CONTAINS_FIELD(descriptorSenseData, SenseInfoBufferLength, AdditionalSenseLength))
 
 if (IsDescriptorSenseDataFormat(SenseInfoBuffer))
 
 if (!IsDescriptorSenseDataFormat(SenseInfoBuffer))
 
 if (DescriptorBuffer==NULL||DescriptorBufferLength< sizeof(SCSI_SENSE_DESCRIPTOR_INFORMATION))
 
 if (descriptor->Header.DescriptorType !=SCSI_SENSE_DESCRIPTOR_TYPE_INFORMATION)
 
 if (descriptor->Header.AdditionalLength !=additionalLength)
 
 if (descriptor->Valid==0)
 
_In_ UCHAR _Out_writes_bytes_ (OutBufferLength) PVOID OutBuffer
 
_In_ UCHAR _In_reads_ (TypeListCount) PUCHAR TypeList
 
 if (Buffer==NULL||BufferLength==0||TypeList==NULL||TypeListCount==0||OutType==NULL||OutBuffer==NULL||OutBufferLength==NULL)
 
 while (remainingBufferLength >=sizeof(SCSI_SENSE_DESCRIPTOR_HEADER))
 

Variables

_In_ UCHAR SenseInfoBufferLength
 
_In_ UCHAR _Out_ UCHARTotalByteCountIndicated
 
UCHAR byteCount = 0
 
PFIXED_SENSE_DATA senseInfoBuffer = NULL
 
return succeed = FALSE
 
_In_ UCHAR _Out_opt_ PUCHAR SenseKey
 
_In_ UCHAR _Out_opt_ PUCHAR _Out_opt_ PUCHAR AdditionalSenseCode
 
_In_ UCHAR _Out_opt_ PUCHAR _Out_opt_ PUCHAR _Out_opt_ PUCHAR AdditionalSenseCodeQualifier
 
ULONG dataLength = 0
 
_In_ UCHAR _In_ SCSI_SENSE_OPTIONS Options
 
 else
 
_In_ UCHAR _Outptr_result_bytebuffer_ DescriptorBufferLength PVOIDDescriptorBuffer = NULL
 
_In_ UCHAR _Outptr_result_bytebuffer_ DescriptorBufferLength PVOID _Out_ UCHARDescriptorBufferLength
 
 descriptorSenseData = (PDESCRIPTOR_SENSE_DATA)SenseInfoBuffer
 
UCHAR additionalLength
 
 descriptor = (PSCSI_SENSE_DESCRIPTOR_INFORMATION)DescriptorBuffer
 
return TRUE
 
_In_ UCHAR _In_ UCHAR OutBufferLength
 
BOOLEAN validSense = FALSE
 
UCHAR senseKey = 0
 
UCHAR additionalSenseCode = 0
 
UCHAR additionalSenseCodeQualifier = 0
 
PFIXED_SENSE_DATA outBuffer = (PFIXED_SENSE_DATA)OutBuffer
 
_In_ UCHAR BufferLength
 
_In_ UCHAR _In_ ULONG TypeListCount
 
_In_ UCHAR _In_ ULONG _Out_ PUCHAR OutType = 0
 
_In_ UCHAR _In_ ULONG _Out_ PUCHAR _Outptr_result_bytebuffer_ OutBufferLength PVOIDOutBuffer = NULL
 
UCHAR remainingBufferLength = BufferLength
 
UCHAR type
 
ULONG i
 
UCHAR descriptorLength
 
 remainingBuffer = (PUCHAR)Buffer
 
return FALSE
 

Macro Definition Documentation

◆ _INQUIRYDATA_DEFINED

#define _INQUIRYDATA_DEFINED

Definition at line 2323 of file scsi.h.

◆ ARRAY_CONTROLLER_DEVICE

#define ARRAY_CONTROLLER_DEVICE   0x0C

Definition at line 551 of file scsi.h.

◆ BLANK_FULL

#define BLANK_FULL   0x0

Definition at line 137 of file scsi.h.

◆ BLANK_MINIMAL

#define BLANK_MINIMAL   0x1

Definition at line 138 of file scsi.h.

◆ BLANK_SESSION

#define BLANK_SESSION   0x6

Definition at line 143 of file scsi.h.

◆ BLANK_TAIL

#define BLANK_TAIL   0x4

Definition at line 141 of file scsi.h.

◆ BLANK_TRACK

#define BLANK_TRACK   0x2

Definition at line 139 of file scsi.h.

◆ BLANK_UNCLOSE_SESSION

#define BLANK_UNCLOSE_SESSION   0x5

Definition at line 142 of file scsi.h.

◆ BLANK_UNRESERVE_TRACK

#define BLANK_UNRESERVE_TRACK   0x3

Definition at line 140 of file scsi.h.

◆ BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR_TYPE_WINDOWS

#define BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR_TYPE_WINDOWS   0x00

Definition at line 2523 of file scsi.h.

◆ BLOCK_DEVICE_TOKEN_SIZE

#define BLOCK_DEVICE_TOKEN_SIZE   512

Definition at line 3584 of file scsi.h.

◆ BRIDGE_CONTROLLER_DEVICE

#define BRIDGE_CONTROLLER_DEVICE   0x10

Definition at line 555 of file scsi.h.

◆ CD_EXPECTED_SECTOR_ANY

#define CD_EXPECTED_SECTOR_ANY   0x0

Definition at line 145 of file scsi.h.

◆ CD_EXPECTED_SECTOR_CDDA

#define CD_EXPECTED_SECTOR_CDDA   0x1

Definition at line 146 of file scsi.h.

◆ CD_EXPECTED_SECTOR_MODE1

#define CD_EXPECTED_SECTOR_MODE1   0x2

Definition at line 147 of file scsi.h.

◆ CD_EXPECTED_SECTOR_MODE2

#define CD_EXPECTED_SECTOR_MODE2   0x3

Definition at line 148 of file scsi.h.

◆ CD_EXPECTED_SECTOR_MODE2_FORM1

#define CD_EXPECTED_SECTOR_MODE2_FORM1   0x4

Definition at line 149 of file scsi.h.

◆ CD_EXPECTED_SECTOR_MODE2_FORM2

#define CD_EXPECTED_SECTOR_MODE2_FORM2   0x5

Definition at line 150 of file scsi.h.

◆ CDB10GENERIC_LENGTH

#define CDB10GENERIC_LENGTH   10

Definition at line 184 of file scsi.h.

◆ CDB12GENERIC_LENGTH

#define CDB12GENERIC_LENGTH   12

Definition at line 185 of file scsi.h.

◆ CDB6GENERIC_LENGTH

#define CDB6GENERIC_LENGTH   6

Definition at line 183 of file scsi.h.

◆ CDB_AUDIO_PAUSE

#define CDB_AUDIO_PAUSE   0x00

Definition at line 982 of file scsi.h.

◆ CDB_AUDIO_RESUME

#define CDB_AUDIO_RESUME   0x01

Definition at line 983 of file scsi.h.

◆ CDB_DEVICE_START

#define CDB_DEVICE_START   0x11

Definition at line 984 of file scsi.h.

◆ CDB_DEVICE_STOP

#define CDB_DEVICE_STOP   0x10

Definition at line 985 of file scsi.h.

◆ CDB_EJECT_MEDIA

#define CDB_EJECT_MEDIA   0x10

Definition at line 986 of file scsi.h.

◆ CDB_FORCE_MEDIA_ACCESS

#define CDB_FORCE_MEDIA_ACCESS   0x08

Definition at line 490 of file scsi.h.

◆ CDB_INQUIRY_EVPD

#define CDB_INQUIRY_EVPD   0x01

Definition at line 531 of file scsi.h.

◆ CDB_LOAD_MEDIA

#define CDB_LOAD_MEDIA   0x01

Definition at line 987 of file scsi.h.

◆ CDB_RETURN_IMMEDIATE

#define CDB_RETURN_IMMEDIATE   1

Definition at line 488 of file scsi.h.

◆ CDB_RETURN_ON_COMPLETION

#define CDB_RETURN_ON_COMPLETION   0

Definition at line 487 of file scsi.h.

◆ CDB_SUBCHANNEL_BLOCK

#define CDB_SUBCHANNEL_BLOCK   0x01

Definition at line 989 of file scsi.h.

◆ CDB_SUBCHANNEL_HEADER

#define CDB_SUBCHANNEL_HEADER   0x00

Definition at line 988 of file scsi.h.

◆ CDB_USE_MSF

#define CDB_USE_MSF   0x01

Definition at line 995 of file scsi.h.

◆ CDDA_CHANNEL_MUTED

#define CDDA_CHANNEL_MUTED   0x0

Definition at line 956 of file scsi.h.

◆ CDDA_CHANNEL_ONE

#define CDDA_CHANNEL_ONE   0x2

Definition at line 958 of file scsi.h.

◆ CDDA_CHANNEL_THREE

#define CDDA_CHANNEL_THREE   0x8

Definition at line 960 of file scsi.h.

◆ CDDA_CHANNEL_TWO

#define CDDA_CHANNEL_TWO   0x4

Definition at line 959 of file scsi.h.

◆ CDDA_CHANNEL_ZERO

#define CDDA_CHANNEL_ZERO   0x1

Definition at line 957 of file scsi.h.

◆ CDROM_AUDIO_CONTROL_PAGE

#define CDROM_AUDIO_CONTROL_PAGE   0x0E

Definition at line 991 of file scsi.h.

◆ CDVD_LMT_CADDY

#define CDVD_LMT_CADDY   0

Definition at line 962 of file scsi.h.

◆ CDVD_LMT_CHANGER_CARTRIDGE

#define CDVD_LMT_CHANGER_CARTRIDGE   5

Definition at line 967 of file scsi.h.

◆ CDVD_LMT_CHANGER_INDIVIDUAL

#define CDVD_LMT_CHANGER_INDIVIDUAL   4

Definition at line 966 of file scsi.h.

◆ CDVD_LMT_POPUP

#define CDVD_LMT_POPUP   2

Definition at line 964 of file scsi.h.

◆ CDVD_LMT_RESERVED1

#define CDVD_LMT_RESERVED1   3

Definition at line 965 of file scsi.h.

◆ CDVD_LMT_RESERVED2

#define CDVD_LMT_RESERVED2   6

Definition at line 968 of file scsi.h.

◆ CDVD_LMT_RESERVED3

#define CDVD_LMT_RESERVED3   7

Definition at line 969 of file scsi.h.

◆ CDVD_LMT_TRAY

#define CDVD_LMT_TRAY   1

Definition at line 963 of file scsi.h.

◆ COMMUNICATION_DEVICE

#define COMMUNICATION_DEVICE   0x09

Definition at line 550 of file scsi.h.

◆ DATA_BLOCK_MODE0

#define DATA_BLOCK_MODE0   0x0

Definition at line 172 of file scsi.h.

◆ DATA_BLOCK_MODE1

#define DATA_BLOCK_MODE1   0x1

Definition at line 173 of file scsi.h.

◆ DATA_BLOCK_MODE2

#define DATA_BLOCK_MODE2   0x2

Definition at line 174 of file scsi.h.

◆ DEVICE_CONNECTED

#define DEVICE_CONNECTED   0x00

Definition at line 564 of file scsi.h.

◆ DEVICE_QUALIFIER_ACTIVE

#define DEVICE_QUALIFIER_ACTIVE   0x00

Definition at line 559 of file scsi.h.

◆ DEVICE_QUALIFIER_NOT_ACTIVE

#define DEVICE_QUALIFIER_NOT_ACTIVE   0x01

Definition at line 560 of file scsi.h.

◆ DEVICE_QUALIFIER_NOT_SUPPORTED

#define DEVICE_QUALIFIER_NOT_SUPPORTED   0x03

Definition at line 561 of file scsi.h.

◆ DIRECT_ACCESS_DEVICE

#define DIRECT_ACCESS_DEVICE   0x00

Definition at line 541 of file scsi.h.

◆ DISC_BGFORMAT_STATE_COMPLETE

#define DISC_BGFORMAT_STATE_COMPLETE   0x3

Definition at line 170 of file scsi.h.

◆ DISC_BGFORMAT_STATE_INCOMPLETE

#define DISC_BGFORMAT_STATE_INCOMPLETE   0x1

Definition at line 168 of file scsi.h.

◆ DISC_BGFORMAT_STATE_NONE

#define DISC_BGFORMAT_STATE_NONE   0x0

Definition at line 167 of file scsi.h.

◆ DISC_BGFORMAT_STATE_RUNNING

#define DISC_BGFORMAT_STATE_RUNNING   0x2

Definition at line 169 of file scsi.h.

◆ DISK_STATUS_COMPLETE

#define DISK_STATUS_COMPLETE   0x02

Definition at line 154 of file scsi.h.

◆ DISK_STATUS_EMPTY

#define DISK_STATUS_EMPTY   0x00

Definition at line 152 of file scsi.h.

◆ DISK_STATUS_INCOMPLETE

#define DISK_STATUS_INCOMPLETE   0x01

Definition at line 153 of file scsi.h.

◆ DISK_STATUS_OTHERS

#define DISK_STATUS_OTHERS   0x03

Definition at line 155 of file scsi.h.

◆ DISK_TYPE_CDDA

#define DISK_TYPE_CDDA   0x00

Definition at line 162 of file scsi.h.

◆ DISK_TYPE_CDI

#define DISK_TYPE_CDI   0x10

Definition at line 163 of file scsi.h.

◆ DISK_TYPE_UNDEFINED

#define DISK_TYPE_UNDEFINED   0xFF

Definition at line 165 of file scsi.h.

◆ DISK_TYPE_XA

#define DISK_TYPE_XA   0x20

Definition at line 164 of file scsi.h.

◆ DVD_CHALLENGE_KEY

#define DVD_CHALLENGE_KEY   0x01

Definition at line 130 of file scsi.h.

◆ DVD_FORMAT_BCA

#define DVD_FORMAT_BCA   0x03

Definition at line 126 of file scsi.h.

◆ DVD_FORMAT_COPYRIGHT

#define DVD_FORMAT_COPYRIGHT   0x01

Definition at line 124 of file scsi.h.

◆ DVD_FORMAT_DISK_KEY

#define DVD_FORMAT_DISK_KEY   0x02

Definition at line 125 of file scsi.h.

◆ DVD_FORMAT_LEAD_IN

#define DVD_FORMAT_LEAD_IN   0x00

Definition at line 123 of file scsi.h.

◆ DVD_FORMAT_MANUFACTURING

#define DVD_FORMAT_MANUFACTURING   0x04

Definition at line 127 of file scsi.h.

◆ DVD_INVALIDATE_AGID

#define DVD_INVALIDATE_AGID   0x3F

Definition at line 135 of file scsi.h.

◆ DVD_KEY_1

#define DVD_KEY_1   0x02

Definition at line 131 of file scsi.h.

◆ DVD_KEY_2

#define DVD_KEY_2   0x03

Definition at line 132 of file scsi.h.

◆ DVD_REPORT_AGID

#define DVD_REPORT_AGID   0x00

Definition at line 129 of file scsi.h.

◆ DVD_REPORT_ASF

#define DVD_REPORT_ASF   0x05

Definition at line 134 of file scsi.h.

◆ DVD_TITLE_KEY

#define DVD_TITLE_KEY   0x04

Definition at line 133 of file scsi.h.

◆ FILE_DEVICE_SCSI

#define FILE_DEVICE_SCSI   0x0000001b

Definition at line 925 of file scsi.h.

◆ GET_LAST_SESSION

#define GET_LAST_SESSION   0x01

Definition at line 998 of file scsi.h.

◆ GET_SESSION_DATA

#define GET_SESSION_DATA   0x02

Definition at line 999 of file scsi.h.

◆ INQUIRYDATABUFFERSIZE

#define INQUIRYDATABUFFERSIZE   36

Definition at line 2325 of file scsi.h.

◆ IOCTL_SCSI_EXECUTE_IN

#define IOCTL_SCSI_EXECUTE_IN   ((FILE_DEVICE_SCSI << 16) + 0x0011)

Definition at line 927 of file scsi.h.

◆ IOCTL_SCSI_EXECUTE_NONE

#define IOCTL_SCSI_EXECUTE_NONE   ((FILE_DEVICE_SCSI << 16) + 0x0013)

Definition at line 929 of file scsi.h.

◆ IOCTL_SCSI_EXECUTE_OUT

#define IOCTL_SCSI_EXECUTE_OUT   ((FILE_DEVICE_SCSI << 16) + 0x0012)

Definition at line 928 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_DISABLE_SMART

#define IOCTL_SCSI_MINIPORT_DISABLE_SMART   ((FILE_DEVICE_SCSI << 16) + 0x0505)

Definition at line 937 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_ENABLE_DISABLE_AUTO_OFFLINE

#define IOCTL_SCSI_MINIPORT_ENABLE_DISABLE_AUTO_OFFLINE   ((FILE_DEVICE_SCSI << 16) + 0x050a)

Definition at line 942 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_ENABLE_DISABLE_AUTOSAVE

#define IOCTL_SCSI_MINIPORT_ENABLE_DISABLE_AUTOSAVE   ((FILE_DEVICE_SCSI << 16) + 0x0507)

Definition at line 939 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_ENABLE_SMART

#define IOCTL_SCSI_MINIPORT_ENABLE_SMART   ((FILE_DEVICE_SCSI << 16) + 0x0504)

Definition at line 936 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_EXECUTE_OFFLINE_DIAGS

#define IOCTL_SCSI_MINIPORT_EXECUTE_OFFLINE_DIAGS   ((FILE_DEVICE_SCSI << 16) + 0x0509)

Definition at line 941 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_IDENTIFY

#define IOCTL_SCSI_MINIPORT_IDENTIFY   ((FILE_DEVICE_SCSI << 16) + 0x0501)

Definition at line 933 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_NOT_CLUSTER_CAPABLE

#define IOCTL_SCSI_MINIPORT_NOT_CLUSTER_CAPABLE   ((FILE_DEVICE_SCSI << 16) + 0x0521)

Definition at line 948 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_NOT_QUORUM_CAPABLE

#define IOCTL_SCSI_MINIPORT_NOT_QUORUM_CAPABLE   ((FILE_DEVICE_SCSI << 16) + 0x0520)

Definition at line 947 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_READ_SMART_ATTRIBS

#define IOCTL_SCSI_MINIPORT_READ_SMART_ATTRIBS   ((FILE_DEVICE_SCSI << 16) + 0x0502)

Definition at line 934 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_READ_SMART_LOG

#define IOCTL_SCSI_MINIPORT_READ_SMART_LOG   ((FILE_DEVICE_SCSI << 16) + 0x050b)

Definition at line 943 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_READ_SMART_THRESHOLDS

#define IOCTL_SCSI_MINIPORT_READ_SMART_THRESHOLDS   ((FILE_DEVICE_SCSI << 16) + 0x0503)

Definition at line 935 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_RETURN_STATUS

#define IOCTL_SCSI_MINIPORT_RETURN_STATUS   ((FILE_DEVICE_SCSI << 16) + 0x0506)

Definition at line 938 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_SAVE_ATTRIBUTE_VALUES

#define IOCTL_SCSI_MINIPORT_SAVE_ATTRIBUTE_VALUES   ((FILE_DEVICE_SCSI << 16) + 0x0508)

Definition at line 940 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_SMART_VERSION

#define IOCTL_SCSI_MINIPORT_SMART_VERSION   ((FILE_DEVICE_SCSI << 16) + 0x0500)

Definition at line 932 of file scsi.h.

◆ IOCTL_SCSI_MINIPORT_WRITE_SMART_LOG

#define IOCTL_SCSI_MINIPORT_WRITE_SMART_LOG   ((FILE_DEVICE_SCSI << 16) + 0x050c)

Definition at line 944 of file scsi.h.

◆ IsDescriptorSenseDataFormat

#define IsDescriptorSenseDataFormat (   SenseInfoBuffer)
Value:
#define ScsiGetSenseErrorCode(SenseInfoBuffer)
Definition: scsi.h:3676
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_DEFERRED
Definition: scsi.h:626
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_CURRENT
Definition: scsi.h:625

Definition at line 3685 of file scsi.h.

◆ IsFixedSenseDataFormat

#define IsFixedSenseDataFormat (   SenseInfoBuffer)
Value:
#define ScsiGetSenseErrorCode(SenseInfoBuffer)
Definition: scsi.h:3676
#define SCSI_SENSE_ERRORCODE_FIXED_DEFERRED
Definition: scsi.h:624
#define SCSI_SENSE_ERRORCODE_FIXED_CURRENT
Definition: scsi.h:623

Definition at line 3681 of file scsi.h.

◆ IsSenseDataCurrentError

#define IsSenseDataCurrentError (   SenseInfoBuffer)
Value:
#define ScsiGetSenseErrorCode(SenseInfoBuffer)
Definition: scsi.h:3676
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_CURRENT
Definition: scsi.h:625
#define SCSI_SENSE_ERRORCODE_FIXED_CURRENT
Definition: scsi.h:623

Definition at line 3689 of file scsi.h.

◆ IsSenseDataDeferredError

#define IsSenseDataDeferredError (   SenseInfoBuffer)
Value:
#define ScsiGetSenseErrorCode(SenseInfoBuffer)
Definition: scsi.h:3676
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_DEFERRED
Definition: scsi.h:626
#define SCSI_SENSE_ERRORCODE_FIXED_DEFERRED
Definition: scsi.h:624

Definition at line 3693 of file scsi.h.

◆ IsSenseDataFormatValueValid

#define IsSenseDataFormatValueValid (   SenseInfoBuffer)    (IsFixedSenseDataFormat(SenseInfoBuffer) || IsDescriptorSenseDataFormat(SenseInfoBuffer))

Definition at line 3697 of file scsi.h.

◆ LAST_SESSION_COMPLETE

#define LAST_SESSION_COMPLETE   0x03

Definition at line 160 of file scsi.h.

◆ LAST_SESSION_EMPTY

#define LAST_SESSION_EMPTY   0x00

Definition at line 157 of file scsi.h.

◆ LAST_SESSION_INCOMPLETE

#define LAST_SESSION_INCOMPLETE   0x01

Definition at line 158 of file scsi.h.

◆ LAST_SESSION_RESERVED_DAMAGED

#define LAST_SESSION_RESERVED_DAMAGED   0x02

Definition at line 159 of file scsi.h.

◆ LBA_STATUS_ANCHORED

#define LBA_STATUS_ANCHORED   0x2

Definition at line 2788 of file scsi.h.

◆ LBA_STATUS_DEALLOCATED

#define LBA_STATUS_DEALLOCATED   0x1

Definition at line 2787 of file scsi.h.

◆ LBA_STATUS_MAPPED

#define LBA_STATUS_MAPPED   0x0

Definition at line 2786 of file scsi.h.

◆ LOADING_MECHANISM_CADDY

#define LOADING_MECHANISM_CADDY   0x00

Definition at line 971 of file scsi.h.

◆ LOADING_MECHANISM_CARTRIDGE_CHANGER

#define LOADING_MECHANISM_CARTRIDGE_CHANGER   0x05

Definition at line 975 of file scsi.h.

◆ LOADING_MECHANISM_INDIVIDUAL_CHANGER

#define LOADING_MECHANISM_INDIVIDUAL_CHANGER   0x04

Definition at line 974 of file scsi.h.

◆ LOADING_MECHANISM_POPUP

#define LOADING_MECHANISM_POPUP   0x02

Definition at line 973 of file scsi.h.

◆ LOADING_MECHANISM_TRAY

#define LOADING_MECHANISM_TRAY   0x01

Definition at line 972 of file scsi.h.

◆ LOG_PAGE_CODE_BACKGROUND_SCAN_RESULTS

#define LOG_PAGE_CODE_BACKGROUND_SCAN_RESULTS   0x15

Definition at line 3267 of file scsi.h.

◆ LOG_PAGE_CODE_INFORMATIONAL_EXCEPTIONS

#define LOG_PAGE_CODE_INFORMATIONAL_EXCEPTIONS   0x2F

Definition at line 3268 of file scsi.h.

◆ LOG_PAGE_CODE_LOGICAL_BLOCK_PROVISIONING

#define LOG_PAGE_CODE_LOGICAL_BLOCK_PROVISIONING   0x0C

Definition at line 3262 of file scsi.h.

◆ LOG_PAGE_CODE_READ_ERROR_COUNTERS

#define LOG_PAGE_CODE_READ_ERROR_COUNTERS   0x03

Definition at line 3261 of file scsi.h.

◆ LOG_PAGE_CODE_SELFTEST_RESULTS

#define LOG_PAGE_CODE_SELFTEST_RESULTS   0x10

Definition at line 3265 of file scsi.h.

◆ LOG_PAGE_CODE_SOLID_STATE_MEDIA

#define LOG_PAGE_CODE_SOLID_STATE_MEDIA   0x11

Definition at line 3266 of file scsi.h.

◆ LOG_PAGE_CODE_STARTSTOP_CYCLE_COUNTERS

#define LOG_PAGE_CODE_STARTSTOP_CYCLE_COUNTERS   0x0E

Definition at line 3264 of file scsi.h.

◆ LOG_PAGE_CODE_SUPPORTED_LOG_PAGES

#define LOG_PAGE_CODE_SUPPORTED_LOG_PAGES   0x00

Definition at line 3259 of file scsi.h.

◆ LOG_PAGE_CODE_TEMPERATURE

#define LOG_PAGE_CODE_TEMPERATURE   0x0D

Definition at line 3263 of file scsi.h.

◆ LOG_PAGE_CODE_WRITE_ERROR_COUNTERS

#define LOG_PAGE_CODE_WRITE_ERROR_COUNTERS   0x02

Definition at line 3260 of file scsi.h.

◆ LOG_PAGE_LBP_PARAMETER_CODE_AVAILABLE

#define LOG_PAGE_LBP_PARAMETER_CODE_AVAILABLE   0x1

Definition at line 3359 of file scsi.h.

◆ LOG_PAGE_LBP_PARAMETER_CODE_USED

#define LOG_PAGE_LBP_PARAMETER_CODE_USED   0x2

Definition at line 3360 of file scsi.h.

◆ LOG_PAGE_LBP_RESOURCE_SCOPE_DEDICATED_TO_LUN

#define LOG_PAGE_LBP_RESOURCE_SCOPE_DEDICATED_TO_LUN   0x1

Definition at line 3363 of file scsi.h.

◆ LOG_PAGE_LBP_RESOURCE_SCOPE_NOT_DEDICATED_TO_LUN

#define LOG_PAGE_LBP_RESOURCE_SCOPE_NOT_DEDICATED_TO_LUN   0x2

Definition at line 3364 of file scsi.h.

◆ LOG_PAGE_LBP_RESOURCE_SCOPE_NOT_REPORTED

#define LOG_PAGE_LBP_RESOURCE_SCOPE_NOT_REPORTED   0x0

Definition at line 3362 of file scsi.h.

◆ LOGICAL_UNIT_NOT_PRESENT_DEVICE

#define LOGICAL_UNIT_NOT_PRESENT_DEVICE   0x7F

Definition at line 557 of file scsi.h.

◆ LUN0_FORMAT_SAVING_DEFECT_LIST

#define LUN0_FORMAT_SAVING_DEFECT_LIST   0

Definition at line 533 of file scsi.h.

◆ MAX_ADDITIONAL_SENSE_BYTES

#define MAX_ADDITIONAL_SENSE_BYTES   (MAX_SENSE_BUFFER_SIZE - SENSE_BUFFER_SIZE)

Definition at line 600 of file scsi.h.

◆ MAX_ADDITIONAL_SENSE_BYTES_EX

#define MAX_ADDITIONAL_SENSE_BYTES_EX   (MAX_SENSE_BUFFER_SIZE - SENSE_BUFFER_SIZE_EX)

Definition at line 601 of file scsi.h.

◆ MAX_SENSE_BUFFER_SIZE

#define MAX_SENSE_BUFFER_SIZE   255

Definition at line 598 of file scsi.h.

◆ MEDIUM_CHANGER

#define MEDIUM_CHANGER   0x08

Definition at line 549 of file scsi.h.

◆ MODE_BLOCK_DESC_LENGTH

#define MODE_BLOCK_DESC_LENGTH   8

Definition at line 977 of file scsi.h.

◆ MODE_DSP_FUA_SUPPORTED

#define MODE_DSP_FUA_SUPPORTED   0x10

Definition at line 953 of file scsi.h.

◆ MODE_DSP_WRITE_PROTECT

#define MODE_DSP_WRITE_PROTECT   0x80

Definition at line 954 of file scsi.h.

◆ MODE_FD_DOUBLE_SIDE

#define MODE_FD_DOUBLE_SIDE   0x02

Definition at line 951 of file scsi.h.

◆ MODE_FD_MAXIMUM_TYPE

#define MODE_FD_MAXIMUM_TYPE   0x1E

Definition at line 952 of file scsi.h.

◆ MODE_FD_SINGLE_SIDE

#define MODE_FD_SINGLE_SIDE   0x01

Definition at line 950 of file scsi.h.

◆ MODE_HEADER_LENGTH

#define MODE_HEADER_LENGTH   4

Definition at line 978 of file scsi.h.

◆ MODE_HEADER_LENGTH10

#define MODE_HEADER_LENGTH10   8

Definition at line 979 of file scsi.h.

◆ MODE_PAGE_CACHING

#define MODE_PAGE_CACHING   0x08

Definition at line 200 of file scsi.h.

◆ MODE_PAGE_CAPABILITIES

#define MODE_PAGE_CAPABILITIES   0x2A

Definition at line 223 of file scsi.h.

◆ MODE_PAGE_CD_AUDIO_CONTROL

#define MODE_PAGE_CD_AUDIO_CONTROL   0x0E

Definition at line 205 of file scsi.h.

◆ MODE_PAGE_CDVD_FEATURE_SET

#define MODE_PAGE_CDVD_FEATURE_SET   0x18

Definition at line 213 of file scsi.h.

◆ MODE_PAGE_CDVD_INACTIVITY

#define MODE_PAGE_CDVD_INACTIVITY   0x1D

Definition at line 219 of file scsi.h.

◆ MODE_PAGE_CONTROL

#define MODE_PAGE_CONTROL   0x0A

Definition at line 202 of file scsi.h.

◆ MODE_PAGE_DATA_COMPRESS

#define MODE_PAGE_DATA_COMPRESS   0x0F

Definition at line 206 of file scsi.h.

◆ MODE_PAGE_DEVICE_CAPABILITIES

#define MODE_PAGE_DEVICE_CAPABILITIES   0x1F

Definition at line 222 of file scsi.h.

◆ MODE_PAGE_DEVICE_CONFIG

#define MODE_PAGE_DEVICE_CONFIG   0x10

Definition at line 207 of file scsi.h.

◆ MODE_PAGE_DISCONNECT

#define MODE_PAGE_DISCONNECT   0x02

Definition at line 193 of file scsi.h.

◆ MODE_PAGE_ELEMENT_ADDRESS

#define MODE_PAGE_ELEMENT_ADDRESS   0x1D

Definition at line 220 of file scsi.h.

◆ MODE_PAGE_ENCLOSURE_SERVICES_MANAGEMENT

#define MODE_PAGE_ENCLOSURE_SERVICES_MANAGEMENT   0x14

Definition at line 210 of file scsi.h.

◆ MODE_PAGE_ERROR_RECOVERY

#define MODE_PAGE_ERROR_RECOVERY   0x01

Definition at line 192 of file scsi.h.

◆ MODE_PAGE_EXTENDED

#define MODE_PAGE_EXTENDED   0x15

Definition at line 211 of file scsi.h.

◆ MODE_PAGE_EXTENDED_DEVICE_SPECIFIC

#define MODE_PAGE_EXTENDED_DEVICE_SPECIFIC   0x16

Definition at line 212 of file scsi.h.

◆ MODE_PAGE_FAULT_REPORTING

#define MODE_PAGE_FAULT_REPORTING   0x1C

Definition at line 218 of file scsi.h.

◆ MODE_PAGE_FLEXIBILE

#define MODE_PAGE_FLEXIBILE   0x05

Definition at line 197 of file scsi.h.

◆ MODE_PAGE_FORMAT_DEVICE

#define MODE_PAGE_FORMAT_DEVICE   0x03

Definition at line 194 of file scsi.h.

◆ MODE_PAGE_LUN_MAPPING

#define MODE_PAGE_LUN_MAPPING   0x1B

Definition at line 217 of file scsi.h.

◆ MODE_PAGE_MEDIUM_PARTITION

#define MODE_PAGE_MEDIUM_PARTITION   0x11

Definition at line 209 of file scsi.h.

◆ MODE_PAGE_MEDIUM_TYPES

#define MODE_PAGE_MEDIUM_TYPES   0x0B

Definition at line 203 of file scsi.h.

◆ MODE_PAGE_MRW

#define MODE_PAGE_MRW   0x03

Definition at line 195 of file scsi.h.

◆ MODE_PAGE_NOTCH_PARTITION

#define MODE_PAGE_NOTCH_PARTITION   0x0C

Definition at line 204 of file scsi.h.

◆ MODE_PAGE_PERIPHERAL

#define MODE_PAGE_PERIPHERAL   0x09

Definition at line 201 of file scsi.h.

◆ MODE_PAGE_POWER_CONDITION

#define MODE_PAGE_POWER_CONDITION   0x1A

Definition at line 216 of file scsi.h.

◆ MODE_PAGE_PROTOCOL_SPECIFIC_LUN

#define MODE_PAGE_PROTOCOL_SPECIFIC_LUN   0x18

Definition at line 214 of file scsi.h.

◆ MODE_PAGE_PROTOCOL_SPECIFIC_PORT

#define MODE_PAGE_PROTOCOL_SPECIFIC_PORT   0x19

Definition at line 215 of file scsi.h.

◆ MODE_PAGE_RIGID_GEOMETRY

#define MODE_PAGE_RIGID_GEOMETRY   0x04

Definition at line 196 of file scsi.h.

◆ MODE_PAGE_TRANSPORT_GEOMETRY

#define MODE_PAGE_TRANSPORT_GEOMETRY   0x1E

Definition at line 221 of file scsi.h.

◆ MODE_PAGE_VENDOR_SPECIFIC

#define MODE_PAGE_VENDOR_SPECIFIC   0x00

Definition at line 191 of file scsi.h.

◆ MODE_PAGE_VERIFY_ERROR

#define MODE_PAGE_VERIFY_ERROR   0x07

Definition at line 199 of file scsi.h.

◆ MODE_PAGE_WRITE_PARAMETERS

#define MODE_PAGE_WRITE_PARAMETERS   0x05

Definition at line 198 of file scsi.h.

◆ MODE_PAGE_XOR_CONTROL

#define MODE_PAGE_XOR_CONTROL   0x10

Definition at line 208 of file scsi.h.

◆ MODE_SELECT_IMMEDIATE

#define MODE_SELECT_IMMEDIATE   0x04

Definition at line 992 of file scsi.h.

◆ MODE_SELECT_PFBIT

#define MODE_SELECT_PFBIT   0x10

Definition at line 993 of file scsi.h.

◆ MODE_SENSE_CHANGEABLE_VALUES

#define MODE_SENSE_CHANGEABLE_VALUES   0x40

Definition at line 228 of file scsi.h.

◆ MODE_SENSE_CURRENT_VALUES

#define MODE_SENSE_CURRENT_VALUES   0x00

Definition at line 227 of file scsi.h.

◆ MODE_SENSE_DEFAULT_VAULES

#define MODE_SENSE_DEFAULT_VAULES   0x80

Definition at line 229 of file scsi.h.

◆ MODE_SENSE_RETURN_ALL

#define MODE_SENSE_RETURN_ALL   0x3f

Definition at line 225 of file scsi.h.

◆ MODE_SENSE_SAVED_VALUES

#define MODE_SENSE_SAVED_VALUES   0xc0

Definition at line 230 of file scsi.h.

◆ NOTIFICATION_BUSY_EVENT_BUSY

#define NOTIFICATION_BUSY_EVENT_BUSY   0x1

Definition at line 115 of file scsi.h.

◆ NOTIFICATION_BUSY_EVENT_LO_CHANGE

#define NOTIFICATION_BUSY_EVENT_LO_CHANGE   0x2

Definition at line 116 of file scsi.h.

◆ NOTIFICATION_BUSY_EVENT_NO_CHANGE

#define NOTIFICATION_BUSY_EVENT_NO_CHANGE   0x0

Definition at line 114 of file scsi.h.

◆ NOTIFICATION_BUSY_EVENT_NO_EVENT [1/2]

#define NOTIFICATION_BUSY_EVENT_NO_EVENT   0x0

Definition at line 113 of file scsi.h.

◆ NOTIFICATION_BUSY_EVENT_NO_EVENT [2/2]

#define NOTIFICATION_BUSY_EVENT_NO_EVENT   0x0

Definition at line 113 of file scsi.h.

◆ NOTIFICATION_BUSY_STATUS_DEFERRED

#define NOTIFICATION_BUSY_STATUS_DEFERRED   0x3

Definition at line 121 of file scsi.h.

◆ NOTIFICATION_BUSY_STATUS_IMMEDIATE

#define NOTIFICATION_BUSY_STATUS_IMMEDIATE   0x2

Definition at line 120 of file scsi.h.

◆ NOTIFICATION_BUSY_STATUS_NO_EVENT

#define NOTIFICATION_BUSY_STATUS_NO_EVENT   0x0

Definition at line 118 of file scsi.h.

◆ NOTIFICATION_BUSY_STATUS_POWER

#define NOTIFICATION_BUSY_STATUS_POWER   0x1

Definition at line 119 of file scsi.h.

◆ NOTIFICATION_DEVICE_BUSY_CLASS_EVENTS

#define NOTIFICATION_DEVICE_BUSY_CLASS_EVENTS   0x6

Definition at line 48 of file scsi.h.

◆ NOTIFICATION_DEVICE_BUSY_CLASS_MASK

#define NOTIFICATION_DEVICE_BUSY_CLASS_MASK   0x40

Definition at line 39 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_EVENT_BUTTON_DOWN

#define NOTIFICATION_EXTERNAL_EVENT_BUTTON_DOWN   0x1

Definition at line 76 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_EVENT_BUTTON_UP

#define NOTIFICATION_EXTERNAL_EVENT_BUTTON_UP   0x2

Definition at line 77 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_EVENT_EXTERNAL

#define NOTIFICATION_EXTERNAL_EVENT_EXTERNAL   0x3

Definition at line 78 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_EVENT_NO_CHANGE

#define NOTIFICATION_EXTERNAL_EVENT_NO_CHANGE   0x0

Definition at line 75 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_ASCII_HIGH

#define NOTIFICATION_EXTERNAL_REQUEST_ASCII_HIGH   0x02ff

Definition at line 91 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_ASCII_LOW

#define NOTIFICATION_EXTERNAL_REQUEST_ASCII_LOW   0x0200

Definition at line 90 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_CLASS_EVENTS

#define NOTIFICATION_EXTERNAL_REQUEST_CLASS_EVENTS   0x3

Definition at line 45 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_CLASS_MASK

#define NOTIFICATION_EXTERNAL_REQUEST_CLASS_MASK   0x08

Definition at line 36 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_FAST_FORWARD

#define NOTIFICATION_EXTERNAL_REQUEST_FAST_FORWARD   0x0103

Definition at line 87 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_NONE

#define NOTIFICATION_EXTERNAL_REQUEST_NONE   0x0000

Definition at line 83 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_PAUSE

#define NOTIFICATION_EXTERNAL_REQUEST_PAUSE   0x0104

Definition at line 88 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_PLAY

#define NOTIFICATION_EXTERNAL_REQUEST_PLAY   0x0101

Definition at line 85 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_QUEUE_OVERRUN

#define NOTIFICATION_EXTERNAL_REQUEST_QUEUE_OVERRUN   0x0001

Definition at line 84 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_REWIND_BACK

#define NOTIFICATION_EXTERNAL_REQUEST_REWIND_BACK   0x0102

Definition at line 86 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_REQUEST_STOP

#define NOTIFICATION_EXTERNAL_REQUEST_STOP   0x0106

Definition at line 89 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_STATUS_PREVENT

#define NOTIFICATION_EXTERNAL_STATUS_PREVENT   0x1

Definition at line 81 of file scsi.h.

◆ NOTIFICATION_EXTERNAL_STATUS_READY

#define NOTIFICATION_EXTERNAL_STATUS_READY   0x0

Definition at line 80 of file scsi.h.

◆ NOTIFICATION_MEDIA_EVENT_EJECT_REQUEST

#define NOTIFICATION_MEDIA_EVENT_EJECT_REQUEST   0x1

Definition at line 94 of file scsi.h.

◆ NOTIFICATION_MEDIA_EVENT_MEDIA_CHANGE

#define NOTIFICATION_MEDIA_EVENT_MEDIA_CHANGE   0x4

Definition at line 97 of file scsi.h.

◆ NOTIFICATION_MEDIA_EVENT_MEDIA_REMOVAL

#define NOTIFICATION_MEDIA_EVENT_MEDIA_REMOVAL   0x3

Definition at line 96 of file scsi.h.

◆ NOTIFICATION_MEDIA_EVENT_NEW_MEDIA

#define NOTIFICATION_MEDIA_EVENT_NEW_MEDIA   0x2

Definition at line 95 of file scsi.h.

◆ NOTIFICATION_MEDIA_EVENT_NO_CHANGE

#define NOTIFICATION_MEDIA_EVENT_NO_CHANGE   0x0

Definition at line 93 of file scsi.h.

◆ NOTIFICATION_MEDIA_EVENT_NO_EVENT

#define NOTIFICATION_MEDIA_EVENT_NO_EVENT   0x0

Definition at line 74 of file scsi.h.

◆ NOTIFICATION_MEDIA_STATUS_CLASS_EVENTS

#define NOTIFICATION_MEDIA_STATUS_CLASS_EVENTS   0x4

Definition at line 46 of file scsi.h.

◆ NOTIFICATION_MEDIA_STATUS_CLASS_MASK

#define NOTIFICATION_MEDIA_STATUS_CLASS_MASK   0x10

Definition at line 37 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_CLASS_EVENTS

#define NOTIFICATION_MULTI_HOST_CLASS_EVENTS   0x5

Definition at line 47 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_CLASS_MASK

#define NOTIFICATION_MULTI_HOST_CLASS_MASK   0x20

Definition at line 38 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_EVENT_CONTROL_GRANT

#define NOTIFICATION_MULTI_HOST_EVENT_CONTROL_GRANT   0x2

Definition at line 102 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_EVENT_CONTROL_RELEASE

#define NOTIFICATION_MULTI_HOST_EVENT_CONTROL_RELEASE   0x3

Definition at line 103 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_EVENT_CONTROL_REQUEST

#define NOTIFICATION_MULTI_HOST_EVENT_CONTROL_REQUEST   0x1

Definition at line 101 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_EVENT_NO_CHANGE

#define NOTIFICATION_MULTI_HOST_EVENT_NO_CHANGE   0x0

Definition at line 100 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_PRIORITY_HIGH

#define NOTIFICATION_MULTI_HOST_PRIORITY_HIGH   0x3

Definition at line 111 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_PRIORITY_LOW

#define NOTIFICATION_MULTI_HOST_PRIORITY_LOW   0x1

Definition at line 109 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_PRIORITY_MEDIUM

#define NOTIFICATION_MULTI_HOST_PRIORITY_MEDIUM   0x2

Definition at line 110 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_PRIORITY_NO_REQUESTS

#define NOTIFICATION_MULTI_HOST_PRIORITY_NO_REQUESTS   0x0

Definition at line 108 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_STATUS_PREVENT

#define NOTIFICATION_MULTI_HOST_STATUS_PREVENT   0x1

Definition at line 106 of file scsi.h.

◆ NOTIFICATION_MULTI_HOST_STATUS_READY

#define NOTIFICATION_MULTI_HOST_STATUS_READY   0x0

Definition at line 105 of file scsi.h.

◆ NOTIFICATION_NO_CLASS_EVENTS

#define NOTIFICATION_NO_CLASS_EVENTS   0x0

Definition at line 42 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_CHANGE_CLASS_EVENTS

#define NOTIFICATION_OPERATIONAL_CHANGE_CLASS_EVENTS   0x1

Definition at line 43 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_CHANGE_CLASS_MASK

#define NOTIFICATION_OPERATIONAL_CHANGE_CLASS_MASK   0x02

Definition at line 34 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_EVENT_CHANGE_OCCURRED

#define NOTIFICATION_OPERATIONAL_EVENT_CHANGE_OCCURRED   0x2

Definition at line 52 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_EVENT_CHANGE_REQUESTED

#define NOTIFICATION_OPERATIONAL_EVENT_CHANGE_REQUESTED   0x1

Definition at line 51 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_EVENT_NO_CHANGE

#define NOTIFICATION_OPERATIONAL_EVENT_NO_CHANGE   0x0

Definition at line 50 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_OPCODE_FEATURE_ADDED

#define NOTIFICATION_OPERATIONAL_OPCODE_FEATURE_ADDED   0x2

Definition at line 60 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_OPCODE_FEATURE_CHANGE

#define NOTIFICATION_OPERATIONAL_OPCODE_FEATURE_CHANGE   0x1

Definition at line 59 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_OPCODE_FIRMWARE_CHANGED

#define NOTIFICATION_OPERATIONAL_OPCODE_FIRMWARE_CHANGED   0x4

Definition at line 62 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_OPCODE_INQUIRY_CHANGED

#define NOTIFICATION_OPERATIONAL_OPCODE_INQUIRY_CHANGED   0x5

Definition at line 63 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_OPCODE_NONE

#define NOTIFICATION_OPERATIONAL_OPCODE_NONE   0x0

Definition at line 58 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_OPCODE_UNIT_RESET

#define NOTIFICATION_OPERATIONAL_OPCODE_UNIT_RESET   0x3

Definition at line 61 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_STATUS_AVAILABLE

#define NOTIFICATION_OPERATIONAL_STATUS_AVAILABLE   0x0

Definition at line 54 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_STATUS_EXTENDED_BUSY

#define NOTIFICATION_OPERATIONAL_STATUS_EXTENDED_BUSY   0x2

Definition at line 56 of file scsi.h.

◆ NOTIFICATION_OPERATIONAL_STATUS_TEMPORARY_BUSY

#define NOTIFICATION_OPERATIONAL_STATUS_TEMPORARY_BUSY   0x1

Definition at line 55 of file scsi.h.

◆ NOTIFICATION_POWER_EVENT_CHANGE_FAILED

#define NOTIFICATION_POWER_EVENT_CHANGE_FAILED   0x2

Definition at line 67 of file scsi.h.

◆ NOTIFICATION_POWER_EVENT_CHANGE_SUCCEEDED

#define NOTIFICATION_POWER_EVENT_CHANGE_SUCCEEDED   0x1

Definition at line 66 of file scsi.h.

◆ NOTIFICATION_POWER_EVENT_NO_CHANGE

#define NOTIFICATION_POWER_EVENT_NO_CHANGE   0x0

Definition at line 65 of file scsi.h.

◆ NOTIFICATION_POWER_MANAGEMENT_CLASS_EVENTS

#define NOTIFICATION_POWER_MANAGEMENT_CLASS_EVENTS   0x2

Definition at line 44 of file scsi.h.

◆ NOTIFICATION_POWER_MANAGEMENT_CLASS_MASK

#define NOTIFICATION_POWER_MANAGEMENT_CLASS_MASK   0x04

Definition at line 35 of file scsi.h.

◆ NOTIFICATION_POWER_STATUS_ACTIVE

#define NOTIFICATION_POWER_STATUS_ACTIVE   0x1

Definition at line 69 of file scsi.h.

◆ NOTIFICATION_POWER_STATUS_IDLE

#define NOTIFICATION_POWER_STATUS_IDLE   0x2

Definition at line 70 of file scsi.h.

◆ NOTIFICATION_POWER_STATUS_SLEEP

#define NOTIFICATION_POWER_STATUS_SLEEP   0x4

Definition at line 72 of file scsi.h.

◆ NOTIFICATION_POWER_STATUS_STANDBY

#define NOTIFICATION_POWER_STATUS_STANDBY   0x3

Definition at line 71 of file scsi.h.

◆ OBJECT_BASED_STORAGE_DEVICE

#define OBJECT_BASED_STORAGE_DEVICE   0x11

Definition at line 556 of file scsi.h.

◆ OPTICAL_CARD_READER_WRITER_DEVICE

#define OPTICAL_CARD_READER_WRITER_DEVICE   0x0F

Definition at line 554 of file scsi.h.

◆ OPTICAL_DEVICE

#define OPTICAL_DEVICE   0x07

Definition at line 548 of file scsi.h.

◆ PRINTER_DEVICE

#define PRINTER_DEVICE   0x02

Definition at line 543 of file scsi.h.

◆ PROCESSOR_DEVICE

#define PROCESSOR_DEVICE   0x03

Definition at line 544 of file scsi.h.

◆ PROVISIONING_TYPE_RESOURCE

#define PROVISIONING_TYPE_RESOURCE   0x1

Definition at line 2589 of file scsi.h.

◆ PROVISIONING_TYPE_THIN

#define PROVISIONING_TYPE_THIN   0x2

Definition at line 2590 of file scsi.h.

◆ PROVISIONING_TYPE_UNKNOWN

#define PROVISIONING_TYPE_UNKNOWN   0x0

Definition at line 2588 of file scsi.h.

◆ RC_BASIS_LAST_LBA_NOT_SEQUENTIAL_WRITE_REQUIRED_ZONES

#define RC_BASIS_LAST_LBA_NOT_SEQUENTIAL_WRITE_REQUIRED_ZONES   0x0

Definition at line 2753 of file scsi.h.

◆ RC_BASIS_LAST_LBA_ON_LOGICAL_UNIT

#define RC_BASIS_LAST_LBA_ON_LOGICAL_UNIT   0x1

Definition at line 2754 of file scsi.h.

◆ READ_ONLY_DIRECT_ACCESS_DEVICE

#define READ_ONLY_DIRECT_ACCESS_DEVICE   0x05

Definition at line 546 of file scsi.h.

◆ READ_TOC_FORMAT_ATIP

#define READ_TOC_FORMAT_ATIP   0x04

Definition at line 181 of file scsi.h.

◆ READ_TOC_FORMAT_FULL_TOC

#define READ_TOC_FORMAT_FULL_TOC   0x02

Definition at line 179 of file scsi.h.

◆ READ_TOC_FORMAT_PMA

#define READ_TOC_FORMAT_PMA   0x03

Definition at line 180 of file scsi.h.

◆ READ_TOC_FORMAT_SESSION

#define READ_TOC_FORMAT_SESSION   0x01

Definition at line 178 of file scsi.h.

◆ READ_TOC_FORMAT_TOC

#define READ_TOC_FORMAT_TOC   0x00

Definition at line 177 of file scsi.h.

◆ REDUCED_BLOCK_DEVICE

#define REDUCED_BLOCK_DEVICE   0x0E

Definition at line 553 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_ALL_ZONES

#define REPORT_ZONES_OPTION_LIST_ALL_ZONES   0x00

Definition at line 460 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_CLOSED_ZONES

#define REPORT_ZONES_OPTION_LIST_CLOSED_ZONES   0x04

Definition at line 464 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_EMPTY_ZONES

#define REPORT_ZONES_OPTION_LIST_EMPTY_ZONES   0x01

Definition at line 461 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_EXPLICITLY_OPENED_ZONES

#define REPORT_ZONES_OPTION_LIST_EXPLICITLY_OPENED_ZONES   0x03

Definition at line 463 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_FULL_ZONES

#define REPORT_ZONES_OPTION_LIST_FULL_ZONES   0x05

Definition at line 465 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_IMPLICITLY_OPENED_ZONES

#define REPORT_ZONES_OPTION_LIST_IMPLICITLY_OPENED_ZONES   0x02

Definition at line 462 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_NON_SEQUENTIAL_WRITE_RESOURCES_ACTIVE_ZONES

#define REPORT_ZONES_OPTION_LIST_NON_SEQUENTIAL_WRITE_RESOURCES_ACTIVE_ZONES   0x11

Definition at line 469 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_NOT_WRITE_POINTER_ZONES

#define REPORT_ZONES_OPTION_LIST_NOT_WRITE_POINTER_ZONES   0x3F

Definition at line 470 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_OFFLINE_ZONES

#define REPORT_ZONES_OPTION_LIST_OFFLINE_ZONES   0x07

Definition at line 467 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_READ_ONLY_ZONES

#define REPORT_ZONES_OPTION_LIST_READ_ONLY_ZONES   0x06

Definition at line 466 of file scsi.h.

◆ REPORT_ZONES_OPTION_LIST_RWP_ZONES

#define REPORT_ZONES_OPTION_LIST_RWP_ZONES   0x10

Definition at line 468 of file scsi.h.

◆ RESERVATION_ACTION_CLEAR

#define RESERVATION_ACTION_CLEAR   0x03

Definition at line 582 of file scsi.h.

◆ RESERVATION_ACTION_PREEMPT

#define RESERVATION_ACTION_PREEMPT   0x04

Definition at line 583 of file scsi.h.

◆ RESERVATION_ACTION_PREEMPT_ABORT

#define RESERVATION_ACTION_PREEMPT_ABORT   0x05

Definition at line 584 of file scsi.h.

◆ RESERVATION_ACTION_READ_KEYS

#define RESERVATION_ACTION_READ_KEYS   0x00

Definition at line 576 of file scsi.h.

◆ RESERVATION_ACTION_READ_RESERVATIONS

#define RESERVATION_ACTION_READ_RESERVATIONS   0x01

Definition at line 577 of file scsi.h.

◆ RESERVATION_ACTION_REGISTER

#define RESERVATION_ACTION_REGISTER   0x00

Definition at line 579 of file scsi.h.

◆ RESERVATION_ACTION_REGISTER_IGNORE_EXISTING

#define RESERVATION_ACTION_REGISTER_IGNORE_EXISTING   0x06

Definition at line 585 of file scsi.h.

◆ RESERVATION_ACTION_RELEASE

#define RESERVATION_ACTION_RELEASE   0x02

Definition at line 581 of file scsi.h.

◆ RESERVATION_ACTION_RESERVE

#define RESERVATION_ACTION_RESERVE   0x01

Definition at line 580 of file scsi.h.

◆ RESERVATION_SCOPE_ELEMENT

#define RESERVATION_SCOPE_ELEMENT   0x02

Definition at line 588 of file scsi.h.

◆ RESERVATION_SCOPE_LU

#define RESERVATION_SCOPE_LU   0x00

Definition at line 587 of file scsi.h.

◆ RESERVATION_TYPE_EXCLUSIVE

#define RESERVATION_TYPE_EXCLUSIVE   0x03

Definition at line 591 of file scsi.h.

◆ RESERVATION_TYPE_EXCLUSIVE_REGISTRANTS

#define RESERVATION_TYPE_EXCLUSIVE_REGISTRANTS   0x06

Definition at line 593 of file scsi.h.

◆ RESERVATION_TYPE_WRITE_EXCLUSIVE

#define RESERVATION_TYPE_WRITE_EXCLUSIVE   0x01

Definition at line 590 of file scsi.h.

◆ RESERVATION_TYPE_WRITE_EXCLUSIVE_REGISTRANTS

#define RESERVATION_TYPE_WRITE_EXCLUSIVE_REGISTRANTS   0x05

Definition at line 592 of file scsi.h.

◆ REVERSE_BYTES

#define REVERSE_BYTES (   Destination,
  Source 
)
Value:
{ \
PFOUR_BYTE _val1 = (PFOUR_BYTE)(Destination); \
PFOUR_BYTE _val2 = (PFOUR_BYTE)(Source); \
_val1->Byte3 = _val2->Byte0; \
_val1->Byte2 = _val2->Byte1; \
_val1->Byte1 = _val2->Byte2; \
_val1->Byte0 = _val2->Byte3; \
}
union _FOUR_BYTE * PFOUR_BYTE
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2937
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

Definition at line 3465 of file scsi.h.

◆ REVERSE_BYTES_QUAD

#define REVERSE_BYTES_QUAD (   Destination,
  Source 
)
Value:
{ \
PEIGHT_BYTE _val1 = (PEIGHT_BYTE)(Destination); \
PEIGHT_BYTE _val2 = (PEIGHT_BYTE)(Source); \
_val1->Byte7 = _val2->Byte0; \
_val1->Byte6 = _val2->Byte1; \
_val1->Byte5 = _val2->Byte2; \
_val1->Byte4 = _val2->Byte3; \
_val1->Byte3 = _val2->Byte4; \
_val1->Byte2 = _val2->Byte5; \
_val1->Byte1 = _val2->Byte6; \
_val1->Byte0 = _val2->Byte7; \
}
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2937
union _EIGHT_BYTE * PEIGHT_BYTE
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

Definition at line 3452 of file scsi.h.

◆ REVERSE_BYTES_SHORT

#define REVERSE_BYTES_SHORT (   Destination,
  Source 
)
Value:
{ \
PTWO_BYTE _val1 = (PTWO_BYTE)(Destination); \
PTWO_BYTE _val2 = (PTWO_BYTE)(Source); \
_val1->Byte1 = _val2->Byte0; \
_val1->Byte0 = _val2->Byte1; \
}
union _TWO_BYTE * PTWO_BYTE
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2937
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

Definition at line 3474 of file scsi.h.

◆ REVERSE_LONG

#define REVERSE_LONG (   Long)
Value:
{ \
UCHAR _val; \
PFOUR_BYTE _val2 = (PFOUR_BYTE)(Long); \
_val = _val2->Byte3; \
_val2->Byte3 = _val2->Byte0; \
_val2->Byte0 = _val; \
_val = _val2->Byte2; \
_val2->Byte2 = _val2->Byte1; \
_val2->Byte1 = _val; \
}
union _FOUR_BYTE * PFOUR_BYTE
long Long
Definition: ftraster.c:313

Definition at line 3489 of file scsi.h.

◆ REVERSE_SHORT

#define REVERSE_SHORT (   Short)
Value:
{ \
UCHAR _val; \
PTWO_BYTE _val2 = (PTWO_BYTE)(Short); \
_val = _val2->Byte0; \
_val2->Byte0 = _val2->Byte1; \
_val2->Byte1 = _val; \
}
union _TWO_BYTE * PTWO_BYTE
short Short
Definition: ftraster.c:311

Definition at line 3481 of file scsi.h.

◆ SCANNER_DEVICE

#define SCANNER_DEVICE   0x06

Definition at line 547 of file scsi.h.

◆ SCSI_ADSENSE_ACCESS_DENIED

#define SCSI_ADSENSE_ACCESS_DENIED   0x20

Definition at line 667 of file scsi.h.

◆ SCSI_ADSENSE_BUS_RESET

#define SCSI_ADSENSE_BUS_RESET   0x29

Definition at line 675 of file scsi.h.

◆ SCSI_ADSENSE_COPY_PROTECTION_FAILURE

#define SCSI_ADSENSE_COPY_PROTECTION_FAILURE   0x6f

Definition at line 694 of file scsi.h.

◆ SCSI_ADSENSE_COPY_TARGET_DEVICE_ERROR

#define SCSI_ADSENSE_COPY_TARGET_DEVICE_ERROR   0x0D

Definition at line 657 of file scsi.h.

◆ SCSI_ADSENSE_DATA_AREA

#define SCSI_ADSENSE_DATA_AREA   0xA1

Definition at line 698 of file scsi.h.

◆ SCSI_ADSENSE_DATA_PATH_FAILURE

#define SCSI_ADSENSE_DATA_PATH_FAILURE   0x41

Definition at line 685 of file scsi.h.

◆ SCSI_ADSENSE_DATA_TRANSFER_ERROR

#define SCSI_ADSENSE_DATA_TRANSFER_ERROR   0x4b

Definition at line 688 of file scsi.h.

◆ SCSI_ADSENSE_DEFECT_LIST

#define SCSI_ADSENSE_DEFECT_LIST   0x32

Definition at line 679 of file scsi.h.

◆ SCSI_ADSENSE_DEFECT_LIST_ERROR

#define SCSI_ADSENSE_DEFECT_LIST_ERROR   0x19

Definition at line 663 of file scsi.h.

◆ SCSI_ADSENSE_FAILURE_PREDICTION_THRESHOLD_EXCEEDED

#define SCSI_ADSENSE_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x5d

Definition at line 692 of file scsi.h.

◆ SCSI_ADSENSE_ILLEGAL_BLOCK

#define SCSI_ADSENSE_ILLEGAL_BLOCK   0x21

Definition at line 668 of file scsi.h.

◆ SCSI_ADSENSE_ILLEGAL_COMMAND

#define SCSI_ADSENSE_ILLEGAL_COMMAND   0x20

Definition at line 666 of file scsi.h.

◆ SCSI_ADSENSE_ILLEGAL_MODE_FOR_THIS_TRACK

#define SCSI_ADSENSE_ILLEGAL_MODE_FOR_THIS_TRACK   0x64

Definition at line 693 of file scsi.h.

◆ SCSI_ADSENSE_INSUFFICIENT_TIME_FOR_OPERATION

#define SCSI_ADSENSE_INSUFFICIENT_TIME_FOR_OPERATION   0x2E

Definition at line 677 of file scsi.h.

◆ SCSI_ADSENSE_INTERNAL_TARGET_FAILURE

#define SCSI_ADSENSE_INTERNAL_TARGET_FAILURE   0x44

Definition at line 687 of file scsi.h.

◆ SCSI_ADSENSE_INVALID_CDB

#define SCSI_ADSENSE_INVALID_CDB   0x24

Definition at line 670 of file scsi.h.

◆ SCSI_ADSENSE_INVALID_FIELD_PARAMETER_LIST

#define SCSI_ADSENSE_INVALID_FIELD_PARAMETER_LIST   0x26

Definition at line 672 of file scsi.h.

◆ SCSI_ADSENSE_INVALID_LUN

#define SCSI_ADSENSE_INVALID_LUN   0x25

Definition at line 671 of file scsi.h.

◆ SCSI_ADSENSE_INVALID_MEDIA

#define SCSI_ADSENSE_INVALID_MEDIA   0x30

Definition at line 678 of file scsi.h.

◆ SCSI_ADSENSE_INVALID_TOKEN

#define SCSI_ADSENSE_INVALID_TOKEN   0x23

Definition at line 669 of file scsi.h.

◆ SCSI_ADSENSE_LB_PROVISIONING

#define SCSI_ADSENSE_LB_PROVISIONING   0x38

Definition at line 680 of file scsi.h.

◆ SCSI_ADSENSE_LOGICAL_UNIT_ERROR

#define SCSI_ADSENSE_LOGICAL_UNIT_ERROR   0x3e

Definition at line 683 of file scsi.h.

◆ SCSI_ADSENSE_LUN_COMMUNICATION

#define SCSI_ADSENSE_LUN_COMMUNICATION   0x08

Definition at line 653 of file scsi.h.

◆ SCSI_ADSENSE_LUN_FAILED_SELF_CONFIGURATION

#define SCSI_ADSENSE_LUN_FAILED_SELF_CONFIGURATION   0x4c

Definition at line 689 of file scsi.h.

◆ SCSI_ADSENSE_LUN_NOT_READY

#define SCSI_ADSENSE_LUN_NOT_READY   0x04

Definition at line 652 of file scsi.h.

◆ SCSI_ADSENSE_MEDIUM_CHANGED

#define SCSI_ADSENSE_MEDIUM_CHANGED   0x28

Definition at line 674 of file scsi.h.

◆ SCSI_ADSENSE_MISCOMPARE_DURING_VERIFY_OPERATION

#define SCSI_ADSENSE_MISCOMPARE_DURING_VERIFY_OPERATION   0x1D

Definition at line 665 of file scsi.h.

◆ SCSI_ADSENSE_MUSIC_AREA

#define SCSI_ADSENSE_MUSIC_AREA   0xA0

Definition at line 697 of file scsi.h.

◆ SCSI_ADSENSE_NO_MEDIA_IN_DEVICE

#define SCSI_ADSENSE_NO_MEDIA_IN_DEVICE   0x3a

Definition at line 681 of file scsi.h.

◆ SCSI_ADSENSE_NO_SEEK_COMPLETE

#define SCSI_ADSENSE_NO_SEEK_COMPLETE   0x02

Definition at line 650 of file scsi.h.

◆ SCSI_ADSENSE_NO_SENSE

#define SCSI_ADSENSE_NO_SENSE   0x00

Definition at line 649 of file scsi.h.

◆ SCSI_ADSENSE_OPERATING_CONDITIONS_CHANGED

#define SCSI_ADSENSE_OPERATING_CONDITIONS_CHANGED   0x3f

Definition at line 684 of file scsi.h.

◆ SCSI_ADSENSE_OPERATOR_REQUEST

#define SCSI_ADSENSE_OPERATOR_REQUEST   0x5a

Definition at line 691 of file scsi.h.

◆ SCSI_ADSENSE_PARAMETER_LIST_LENGTH

#define SCSI_ADSENSE_PARAMETER_LIST_LENGTH   0x1A

Definition at line 664 of file scsi.h.

◆ SCSI_ADSENSE_PARAMETERS_CHANGED

#define SCSI_ADSENSE_PARAMETERS_CHANGED   0x2A

Definition at line 676 of file scsi.h.

◆ SCSI_ADSENSE_POSITION_ERROR

#define SCSI_ADSENSE_POSITION_ERROR   0x3b

Definition at line 682 of file scsi.h.

◆ SCSI_ADSENSE_POWER_CALIBRATION_ERROR

#define SCSI_ADSENSE_POWER_CALIBRATION_ERROR   0x73

Definition at line 695 of file scsi.h.

◆ SCSI_ADSENSE_POWER_ON_SELF_TEST_FAILURE

#define SCSI_ADSENSE_POWER_ON_SELF_TEST_FAILURE   0x42

Definition at line 686 of file scsi.h.

◆ SCSI_ADSENSE_REC_DATA_ECC

#define SCSI_ADSENSE_REC_DATA_ECC   0x18

Definition at line 662 of file scsi.h.

◆ SCSI_ADSENSE_REC_DATA_NOECC

#define SCSI_ADSENSE_REC_DATA_NOECC   0x17

Definition at line 661 of file scsi.h.

◆ SCSI_ADSENSE_RESOURCE_FAILURE

#define SCSI_ADSENSE_RESOURCE_FAILURE   0x55

Definition at line 690 of file scsi.h.

◆ SCSI_ADSENSE_SEEK_ERROR

#define SCSI_ADSENSE_SEEK_ERROR   0x15

Definition at line 660 of file scsi.h.

◆ SCSI_ADSENSE_SERVO_ERROR

#define SCSI_ADSENSE_SERVO_ERROR   0x09

Definition at line 654 of file scsi.h.

◆ SCSI_ADSENSE_TRACK_ERROR

#define SCSI_ADSENSE_TRACK_ERROR   0x14

Definition at line 659 of file scsi.h.

◆ SCSI_ADSENSE_UNRECOVERED_ERROR

#define SCSI_ADSENSE_UNRECOVERED_ERROR   0x11

Definition at line 658 of file scsi.h.

◆ SCSI_ADSENSE_VENDOR_UNIQUE

#define SCSI_ADSENSE_VENDOR_UNIQUE   0x80

Definition at line 696 of file scsi.h.

◆ SCSI_ADSENSE_VOLUME_OVERFLOW

#define SCSI_ADSENSE_VOLUME_OVERFLOW   0xA7

Definition at line 699 of file scsi.h.

◆ SCSI_ADSENSE_WARNING

#define SCSI_ADSENSE_WARNING   0x0B

Definition at line 655 of file scsi.h.

◆ SCSI_ADSENSE_WRITE

#define SCSI_ADSENSE_WRITE   0x03

Definition at line 651 of file scsi.h.

◆ SCSI_ADSENSE_WRITE_ERROR

#define SCSI_ADSENSE_WRITE_ERROR   0x0C

Definition at line 656 of file scsi.h.

◆ SCSI_ADSENSE_WRITE_PROTECT

#define SCSI_ADSENSE_WRITE_PROTECT   0x27

Definition at line 673 of file scsi.h.

◆ SCSI_ADWRITE_PROTECT

#define SCSI_ADWRITE_PROTECT   SCSI_ADSENSE_WRITE_PROTECT

Definition at line 701 of file scsi.h.

◆ SCSI_ENCLOSURE_DEVICE

#define SCSI_ENCLOSURE_DEVICE   0x0D

Definition at line 552 of file scsi.h.

◆ SCSI_EOM

#define SCSI_EOM   0x40

Definition at line 645 of file scsi.h.

◆ SCSI_FAILURE_PREDICTION_THRESHOLD_EXCEEDED

#define SCSI_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   SCSI_ADSENSE_FAILURE_PREDICTION_THRESHOLD_EXCEEDED

Definition at line 702 of file scsi.h.

◆ SCSI_FILE_MARK

#define SCSI_FILE_MARK   0x80

Definition at line 646 of file scsi.h.

◆ SCSI_ILLEGAL_LENGTH

#define SCSI_ILLEGAL_LENGTH   0x20

Definition at line 644 of file scsi.h.

◆ SCSI_SENSE_ABORTED_COMMAND

#define SCSI_SENSE_ABORTED_COMMAND   0x0B

Definition at line 615 of file scsi.h.

◆ SCSI_SENSE_BLANK_CHECK

#define SCSI_SENSE_BLANK_CHECK   0x08

Definition at line 612 of file scsi.h.

◆ SCSI_SENSE_COPY_ABORTED

#define SCSI_SENSE_COPY_ABORTED   0x0A

Definition at line 614 of file scsi.h.

◆ SCSI_SENSE_DATA_PROTECT

#define SCSI_SENSE_DATA_PROTECT   0x07

Definition at line 611 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_ATA_STATUS_RETURN

#define SCSI_SENSE_DESCRIPTOR_TYPE_ATA_STATUS_RETURN   0x09

Definition at line 639 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_BLOCK_COMMAND

#define SCSI_SENSE_DESCRIPTOR_TYPE_BLOCK_COMMAND   0x05

Definition at line 635 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_COMMAND_SPECIFIC

#define SCSI_SENSE_DESCRIPTOR_TYPE_COMMAND_SPECIFIC   0x01

Definition at line 631 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_FIELD_REPLACEABLE_UNIT

#define SCSI_SENSE_DESCRIPTOR_TYPE_FIELD_REPLACEABLE_UNIT   0x03

Definition at line 633 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_INFORMATION

#define SCSI_SENSE_DESCRIPTOR_TYPE_INFORMATION   0x00

Definition at line 630 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_OSD_ATTRIBUTE_IDENTIFICATION

#define SCSI_SENSE_DESCRIPTOR_TYPE_OSD_ATTRIBUTE_IDENTIFICATION   0x08

Definition at line 638 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_OSD_OBJECT_IDENTIFICATION

#define SCSI_SENSE_DESCRIPTOR_TYPE_OSD_OBJECT_IDENTIFICATION   0x06

Definition at line 636 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_OSD_RESPONSE_INTEGRITY_CHECK

#define SCSI_SENSE_DESCRIPTOR_TYPE_OSD_RESPONSE_INTEGRITY_CHECK   0x07

Definition at line 637 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_PROGRESS_INDICATION

#define SCSI_SENSE_DESCRIPTOR_TYPE_PROGRESS_INDICATION   0x0A

Definition at line 640 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_SENSE_KEY_SPECIFIC

#define SCSI_SENSE_DESCRIPTOR_TYPE_SENSE_KEY_SPECIFIC   0x02

Definition at line 632 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_STREAM_COMMAND

#define SCSI_SENSE_DESCRIPTOR_TYPE_STREAM_COMMAND   0x04

Definition at line 634 of file scsi.h.

◆ SCSI_SENSE_DESCRIPTOR_TYPE_USER_DATA_SEGMENT_REFERRAL

#define SCSI_SENSE_DESCRIPTOR_TYPE_USER_DATA_SEGMENT_REFERRAL   0x0B

Definition at line 641 of file scsi.h.

◆ SCSI_SENSE_EQUAL

#define SCSI_SENSE_EQUAL   0x0C

Definition at line 616 of file scsi.h.

◆ SCSI_SENSE_ERRORCODE_DESCRIPTOR_CURRENT

#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_CURRENT   0x72

Definition at line 625 of file scsi.h.

◆ SCSI_SENSE_ERRORCODE_DESCRIPTOR_DEFERRED

#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_DEFERRED   0x73

Definition at line 626 of file scsi.h.

◆ SCSI_SENSE_ERRORCODE_FIXED_CURRENT

#define SCSI_SENSE_ERRORCODE_FIXED_CURRENT   0x70

Definition at line 623 of file scsi.h.

◆ SCSI_SENSE_ERRORCODE_FIXED_DEFERRED

#define SCSI_SENSE_ERRORCODE_FIXED_DEFERRED   0x71

Definition at line 624 of file scsi.h.

◆ SCSI_SENSE_HARDWARE_ERROR

#define SCSI_SENSE_HARDWARE_ERROR   0x04

Definition at line 608 of file scsi.h.

◆ SCSI_SENSE_ILLEGAL_REQUEST

#define SCSI_SENSE_ILLEGAL_REQUEST   0x05

Definition at line 609 of file scsi.h.

◆ SCSI_SENSE_MEDIUM_ERROR

#define SCSI_SENSE_MEDIUM_ERROR   0x03

Definition at line 607 of file scsi.h.

◆ SCSI_SENSE_MISCOMPARE

#define SCSI_SENSE_MISCOMPARE   0x0E

Definition at line 618 of file scsi.h.

◆ SCSI_SENSE_NO_SENSE

#define SCSI_SENSE_NO_SENSE   0x00

Definition at line 604 of file scsi.h.

◆ SCSI_SENSE_NOT_READY

#define SCSI_SENSE_NOT_READY   0x02

Definition at line 606 of file scsi.h.

◆ SCSI_SENSE_OPTIONS_FIXED_FORMAT_IF_UNKNOWN_FORMAT_INDICATED

#define SCSI_SENSE_OPTIONS_FIXED_FORMAT_IF_UNKNOWN_FORMAT_INDICATED   ((SCSI_SENSE_OPTIONS)0x00000001)

Definition at line 3839 of file scsi.h.

◆ SCSI_SENSE_OPTIONS_NONE

#define SCSI_SENSE_OPTIONS_NONE   ((SCSI_SENSE_OPTIONS)0x00000000)

Definition at line 3838 of file scsi.h.

◆ SCSI_SENSE_RECOVERED_ERROR

#define SCSI_SENSE_RECOVERED_ERROR   0x01

Definition at line 605 of file scsi.h.

◆ SCSI_SENSE_RESERVED

#define SCSI_SENSE_RESERVED   0x0F

Definition at line 619 of file scsi.h.

◆ SCSI_SENSE_UNIQUE

#define SCSI_SENSE_UNIQUE   0x09

Definition at line 613 of file scsi.h.

◆ SCSI_SENSE_UNIT_ATTENTION

#define SCSI_SENSE_UNIT_ATTENTION   0x06

Definition at line 610 of file scsi.h.

◆ SCSI_SENSE_VOL_OVERFLOW

#define SCSI_SENSE_VOL_OVERFLOW   0x0D

Definition at line 617 of file scsi.h.

◆ SCSI_SENSEQ_ACCESS_TIMES_TOO_HIGH

#define SCSI_SENSEQ_ACCESS_TIMES_TOO_HIGH   0x15

Definition at line 894 of file scsi.h.

◆ SCSI_SENSEQ_ATA_DEVICE_FAILED_SET_FEATURES

#define SCSI_SENSEQ_ATA_DEVICE_FAILED_SET_FEATURES   0x71

Definition at line 863 of file scsi.h.

◆ SCSI_SENSEQ_AUTHENTICATION_FAILURE

#define SCSI_SENSEQ_AUTHENTICATION_FAILURE   0x00

Definition at line 909 of file scsi.h.

◆ SCSI_SENSEQ_BECOMING_READY

#define SCSI_SENSEQ_BECOMING_READY   0x01

Definition at line 723 of file scsi.h.

◆ SCSI_SENSEQ_BEGINNING_OF_MEDIA_DETECTED

#define SCSI_SENSEQ_BEGINNING_OF_MEDIA_DETECTED   0x04

Definition at line 711 of file scsi.h.

◆ SCSI_SENSEQ_CAPACITY_DATA_CHANGED

#define SCSI_SENSEQ_CAPACITY_DATA_CHANGED   0x09

Definition at line 807 of file scsi.h.

◆ SCSI_SENSEQ_CAUSE_NOT_REPORTABLE

#define SCSI_SENSEQ_CAUSE_NOT_REPORTABLE   0x00

Definition at line 722 of file scsi.h.

◆ SCSI_SENSEQ_CHANNEL_PARAMETRICS

#define SCSI_SENSEQ_CHANNEL_PARAMETRICS   0x17

Definition at line 896 of file scsi.h.

◆ SCSI_SENSEQ_CLEANING_CARTRIDGE_INSTALLED

#define SCSI_SENSEQ_CLEANING_CARTRIDGE_INSTALLED   0x03

Definition at line 819 of file scsi.h.

◆ SCSI_SENSEQ_COMM_FAILURE

#define SCSI_SENSEQ_COMM_FAILURE   0x00

Definition at line 735 of file scsi.h.

◆ SCSI_SENSEQ_COMM_PARITY_ERROR

#define SCSI_SENSEQ_COMM_PARITY_ERROR   0x02

Definition at line 737 of file scsi.h.

◆ SCSI_SENSEQ_COMM_TIMEOUT

#define SCSI_SENSEQ_COMM_TIMEOUT   0x01

Definition at line 736 of file scsi.h.

◆ SCSI_SENSEQ_COMPONENT_DEVICE_ATTACHED

#define SCSI_SENSEQ_COMPONENT_DEVICE_ATTACHED   0x04

Definition at line 844 of file scsi.h.

◆ SCSI_SENSEQ_CONTROLLER_DETECTED

#define SCSI_SENSEQ_CONTROLLER_DETECTED   0x18

Definition at line 897 of file scsi.h.

◆ SCSI_SENSEQ_DATA_CHANNEL_DATA_ERROR_RATE_TOO_HIGH

#define SCSI_SENSEQ_DATA_CHANNEL_DATA_ERROR_RATE_TOO_HIGH   0x32

Definition at line 902 of file scsi.h.

◆ SCSI_SENSEQ_DATA_ERROR_RATE_TOO_HIGH

#define SCSI_SENSEQ_DATA_ERROR_RATE_TOO_HIGH   0x12

Definition at line 891 of file scsi.h.

◆ SCSI_SENSEQ_DATA_UNDERRUN

#define SCSI_SENSEQ_DATA_UNDERRUN   0x04

Definition at line 761 of file scsi.h.

◆ SCSI_SENSEQ_DEFECT_LIST_ERROR

#define SCSI_SENSEQ_DEFECT_LIST_ERROR   0x00

Definition at line 775 of file scsi.h.

◆ SCSI_SENSEQ_DEFECT_LIST_ERROR_IN_GROWN_LIST

#define SCSI_SENSEQ_DEFECT_LIST_ERROR_IN_GROWN_LIST   0x03

Definition at line 778 of file scsi.h.

◆ SCSI_SENSEQ_DEFECT_LIST_ERROR_IN_PRIMARY_LIST

#define SCSI_SENSEQ_DEFECT_LIST_ERROR_IN_PRIMARY_LIST   0x02

Definition at line 777 of file scsi.h.

◆ SCSI_SENSEQ_DEFECT_LIST_NOT_AVAILABLE

#define SCSI_SENSEQ_DEFECT_LIST_NOT_AVAILABLE   0x01

Definition at line 776 of file scsi.h.

◆ SCSI_SENSEQ_DEFECT_LIST_UPDATE_FAILURE

#define SCSI_SENSEQ_DEFECT_LIST_UPDATE_FAILURE   0x01

Definition at line 824 of file scsi.h.

◆ SCSI_SENSEQ_DESTINATION_FULL

#define SCSI_SENSEQ_DESTINATION_FULL   0x0d

Definition at line 811 of file scsi.h.

◆ SCSI_SENSEQ_DEVICE_IDENTIFIER_CHANGED

#define SCSI_SENSEQ_DEVICE_IDENTIFIER_CHANGED   0x05

Definition at line 845 of file scsi.h.

◆ SCSI_SENSEQ_DRIVE_CALIBRATION_RETRY_COUNT

#define SCSI_SENSEQ_DRIVE_CALIBRATION_RETRY_COUNT   0x1C

Definition at line 901 of file scsi.h.

◆ SCSI_SENSEQ_DRIVE_ERROR_RATE_TOO_HIGH

#define SCSI_SENSEQ_DRIVE_ERROR_RATE_TOO_HIGH   0x11

Definition at line 890 of file scsi.h.

◆ SCSI_SENSEQ_ECHO_BUFFER_OVERWRITTEN

#define SCSI_SENSEQ_ECHO_BUFFER_OVERWRITTEN   0x0F

Definition at line 855 of file scsi.h.

◆ SCSI_SENSEQ_END_OF_MEDIA_DETECTED

#define SCSI_SENSEQ_END_OF_MEDIA_DETECTED   0x02

Definition at line 709 of file scsi.h.

◆ SCSI_SENSEQ_EXCESSIVE_WRITE_ERRORS

#define SCSI_SENSEQ_EXCESSIVE_WRITE_ERRORS   0x02

Definition at line 718 of file scsi.h.

◆ SCSI_SENSEQ_FAILURE_PREDICTION_THRESHOLD_EXCEEDED

#define SCSI_SENSEQ_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x00

Definition at line 885 of file scsi.h.

◆ SCSI_SENSEQ_FAILURE_PREDICTION_THRESHOLD_EXCEEDED_FALSE

#define SCSI_SENSEQ_FAILURE_PREDICTION_THRESHOLD_EXCEEDED_FALSE   0xFF

Definition at line 905 of file scsi.h.

◆ SCSI_SENSEQ_FILEMARK_DETECTED

#define SCSI_SENSEQ_FILEMARK_DETECTED   0x01

Definition at line 708 of file scsi.h.

◆ SCSI_SENSEQ_FOCUS_SERVO_FAILURE

#define SCSI_SENSEQ_FOCUS_SERVO_FAILURE   0x02

Definition at line 745 of file scsi.h.

◆ SCSI_SENSEQ_FORMAT_IN_PROGRESS

#define SCSI_SENSEQ_FORMAT_IN_PROGRESS   0x04

Definition at line 726 of file scsi.h.

◆ SCSI_SENSEQ_GENERAL_HARD_DRIVE_FAILURE

#define SCSI_SENSEQ_GENERAL_HARD_DRIVE_FAILURE   0x10

Definition at line 889 of file scsi.h.

◆ SCSI_SENSEQ_HEAD_SELECT_FAULT

#define SCSI_SENSEQ_HEAD_SELECT_FAULT   0x04

Definition at line 747 of file scsi.h.

◆ SCSI_SENSEQ_ILLEGAL_ELEMENT_ADDR

#define SCSI_SENSEQ_ILLEGAL_ELEMENT_ADDR   0x01

Definition at line 787 of file scsi.h.

◆ SCSI_SENSEQ_INCOMPATIBLE_FORMAT

#define SCSI_SENSEQ_INCOMPATIBLE_FORMAT   0x02

Definition at line 818 of file scsi.h.

◆ SCSI_SENSEQ_INCOMPATIBLE_MEDIA_INSTALLED

#define SCSI_SENSEQ_INCOMPATIBLE_MEDIA_INSTALLED   0x00

Definition at line 816 of file scsi.h.

◆ SCSI_SENSEQ_INIT_COMMAND_REQUIRED

#define SCSI_SENSEQ_INIT_COMMAND_REQUIRED   0x02

Definition at line 724 of file scsi.h.

◆ SCSI_SENSEQ_INITIATOR_RESPONSE_TIMEOUT

#define SCSI_SENSEQ_INITIATOR_RESPONSE_TIMEOUT   0x06

Definition at line 867 of file scsi.h.

◆ SCSI_SENSEQ_INQUIRY_DATA_CHANGED

#define SCSI_SENSEQ_INQUIRY_DATA_CHANGED   0x03

Definition at line 843 of file scsi.h.

◆ SCSI_SENSEQ_INSUFFICIENT_RESERVATION_RESOURCES

#define SCSI_SENSEQ_INSUFFICIENT_RESERVATION_RESOURCES   0x02

Definition at line 873 of file scsi.h.

◆ SCSI_SENSEQ_INSUFFICIENT_RESOURCES

#define SCSI_SENSEQ_INSUFFICIENT_RESOURCES   0x03

Definition at line 874 of file scsi.h.

◆ SCSI_SENSEQ_INTERNAL_TARGET_FAILURE

#define SCSI_SENSEQ_INTERNAL_TARGET_FAILURE   0x00

Definition at line 861 of file scsi.h.

◆ SCSI_SENSEQ_INVALID_RELEASE_OF_PERSISTENT_RESERVATION

#define SCSI_SENSEQ_INVALID_RELEASE_OF_PERSISTENT_RESERVATION   0x04

Definition at line 798 of file scsi.h.

◆ SCSI_SENSEQ_INVALID_WRITE_ADDRESS

#define SCSI_SENSEQ_INVALID_WRITE_ADDRESS   0x02

Definition at line 788 of file scsi.h.

◆ SCSI_SENSEQ_INVALID_WRITE_CROSSING_LAYER_JUMP

#define SCSI_SENSEQ_INVALID_WRITE_CROSSING_LAYER_JUMP   0x03

Definition at line 789 of file scsi.h.

◆ SCSI_SENSEQ_KEY_NOT_ESTABLISHED

#define SCSI_SENSEQ_KEY_NOT_ESTABLISHED   0x02

Definition at line 911 of file scsi.h.

◆ SCSI_SENSEQ_KEY_NOT_PRESENT

#define SCSI_SENSEQ_KEY_NOT_PRESENT   0x01

Definition at line 910 of file scsi.h.

◆ SCSI_SENSEQ_LOGICAL_ADDRESS_OUT_OF_RANGE

#define SCSI_SENSEQ_LOGICAL_ADDRESS_OUT_OF_RANGE   0x00

Definition at line 786 of file scsi.h.

◆ SCSI_SENSEQ_LOGICAL_UNIT_FAILED_SELF_TEST

#define SCSI_SENSEQ_LOGICAL_UNIT_FAILED_SELF_TEST   0x03

Definition at line 835 of file scsi.h.

◆ SCSI_SENSEQ_LOGICAL_UNIT_FAILED_TO_UPDATE_SELF_TEST_LOG

#define SCSI_SENSEQ_LOGICAL_UNIT_FAILED_TO_UPDATE_SELF_TEST_LOG   0x04

Definition at line 836 of file scsi.h.

◆ SCSI_SENSEQ_LOGICAL_UNIT_FAILURE

#define SCSI_SENSEQ_LOGICAL_UNIT_FAILURE   0x01

Definition at line 833 of file scsi.h.

◆ SCSI_SENSEQ_LOGICAL_UNIT_HAS_NOT_SELF_CONFIGURED_YET

#define SCSI_SENSEQ_LOGICAL_UNIT_HAS_NOT_SELF_CONFIGURED_YET   0x00

Definition at line 832 of file scsi.h.

◆ SCSI_SENSEQ_LOGICAL_UNIT_RESET_COUNT_ERROR

#define SCSI_SENSEQ_LOGICAL_UNIT_RESET_COUNT_ERROR   0x05

Definition at line 914 of file scsi.h.

◆ SCSI_SENSEQ_LONG_WRITE_IN_PROGRESS

#define SCSI_SENSEQ_LONG_WRITE_IN_PROGRESS   0x08

Definition at line 730 of file scsi.h.

◆ SCSI_SENSEQ_LOSS_OF_STREAMING

#define SCSI_SENSEQ_LOSS_OF_STREAMING   0x09

Definition at line 755 of file scsi.h.

◆ SCSI_SENSEQ_LUN_FAILURE_PREDICTION_THRESHOLD_EXCEEDED

#define SCSI_SENSEQ_LUN_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x02

Definition at line 887 of file scsi.h.

◆ SCSI_SENSEQ_MANUAL_INTERVENTION_REQUIRED

#define SCSI_SENSEQ_MANUAL_INTERVENTION_REQUIRED   0x03

Definition at line 725 of file scsi.h.

◆ SCSI_SENSEQ_MECHANICAL_POSITIONING_ERROR

#define SCSI_SENSEQ_MECHANICAL_POSITIONING_ERROR   0x01

Definition at line 770 of file scsi.h.

◆ SCSI_SENSEQ_MEDIA_CODE_MISMATCHED_TO_LOGICAL_UNIT

#define SCSI_SENSEQ_MEDIA_CODE_MISMATCHED_TO_LOGICAL_UNIT   0x04

Definition at line 913 of file scsi.h.

◆ SCSI_SENSEQ_MEDIA_FAILURE_PREDICTION_THRESHOLD_EXCEEDED

#define SCSI_SENSEQ_MEDIA_FAILURE_PREDICTION_THRESHOLD_EXCEEDED   0x01

Definition at line 886 of file scsi.h.

◆ SCSI_SENSEQ_MEDIUM_AUXILIARY_MEMORY_ACCESSIBLE

#define SCSI_SENSEQ_MEDIUM_AUXILIARY_MEMORY_ACCESSIBLE   0x11

Definition at line 857 of file scsi.h.

◆ SCSI_SENSEQ_MEDIUM_LOADABLE

#define SCSI_SENSEQ_MEDIUM_LOADABLE   0x10

Definition at line 856 of file scsi.h.

◆ SCSI_SENSEQ_MEDIUM_REMOVAL

#define SCSI_SENSEQ_MEDIUM_REMOVAL   0x01

Definition at line 879 of file scsi.h.

◆ SCSI_SENSEQ_MICROCODE_CHANGED

#define SCSI_SENSEQ_MICROCODE_CHANGED   0x01

Definition at line 841 of file scsi.h.

◆ SCSI_SENSEQ_MISALIGNED_WRITE

#define SCSI_SENSEQ_MISALIGNED_WRITE   0x08

Definition at line 794 of file scsi.h.

◆ SCSI_SENSEQ_NO_ACCESS_RIGHTS

#define SCSI_SENSEQ_NO_ACCESS_RIGHTS   0x02

Definition at line 782 of file scsi.h.

◆ SCSI_SENSEQ_NO_DEFECT_SPARE_LOCATION_AVAILABLE

#define SCSI_SENSEQ_NO_DEFECT_SPARE_LOCATION_AVAILABLE   0x00

Definition at line 823 of file scsi.h.

◆ SCSI_SENSEQ_NO_WRITE_CURRENT

#define SCSI_SENSEQ_NO_WRITE_CURRENT   0x01

Definition at line 717 of file scsi.h.

◆ SCSI_SENSEQ_NOT_REACHABLE

#define SCSI_SENSEQ_NOT_REACHABLE   0x02

Definition at line 760 of file scsi.h.

◆ SCSI_SENSEQ_OPERATING_DEFINITION_CHANGED

#define SCSI_SENSEQ_OPERATING_DEFINITION_CHANGED   0x02

Definition at line 842 of file scsi.h.

◆ SCSI_SENSEQ_OPERATION_IN_PROGRESS

#define SCSI_SENSEQ_OPERATION_IN_PROGRESS   0x07

Definition at line 729 of file scsi.h.

◆ SCSI_SENSEQ_OPERATION_IS_IN_PROGRESS

#define SCSI_SENSEQ_OPERATION_IS_IN_PROGRESS   0x16

Definition at line 712 of file scsi.h.

◆ SCSI_SENSEQ_PADDING_BLOCKS_ADDED

#define SCSI_SENSEQ_PADDING_BLOCKS_ADDED   0x0A

Definition at line 756 of file scsi.h.

◆ SCSI_SENSEQ_PERIPHERAL_DEVICE_WRITE_FAULT

#define SCSI_SENSEQ_PERIPHERAL_DEVICE_WRITE_FAULT   0x00

Definition at line 716 of file scsi.h.

◆ SCSI_SENSEQ_PMA_RMA_ALMOST_FULL

#define SCSI_SENSEQ_PMA_RMA_ALMOST_FULL   0x06

Definition at line 923 of file scsi.h.

◆ SCSI_SENSEQ_PMA_RMA_IS_FULL

#define SCSI_SENSEQ_PMA_RMA_IS_FULL   0x05

Definition at line 922 of file scsi.h.

◆ SCSI_SENSEQ_PMA_RMA_UPDATE_FAILURE

#define SCSI_SENSEQ_PMA_RMA_UPDATE_FAILURE   0x04

Definition at line 921 of file scsi.h.

◆ SCSI_SENSEQ_POSITIONING_ERROR_DETECTED_BY_READ_OF_MEDIUM

#define SCSI_SENSEQ_POSITIONING_ERROR_DETECTED_BY_READ_OF_MEDIUM   0x02

Definition at line 771 of file scsi.h.

◆ SCSI_SENSEQ_POWER_CALIBRATION_AREA_ALMOST_FULL

#define SCSI_SENSEQ_POWER_CALIBRATION_AREA_ALMOST_FULL   0x01

Definition at line 918 of file scsi.h.

◆ SCSI_SENSEQ_POWER_CALIBRATION_AREA_ERROR

#define SCSI_SENSEQ_POWER_CALIBRATION_AREA_ERROR   0x03

Definition at line 920 of file scsi.h.

◆ SCSI_SENSEQ_POWER_CALIBRATION_AREA_FULL

#define SCSI_SENSEQ_POWER_CALIBRATION_AREA_FULL   0x02

Definition at line 919 of file scsi.h.

◆ SCSI_SENSEQ_POWER_LOSS_EXPECTED

#define SCSI_SENSEQ_POWER_LOSS_EXPECTED   0x08

Definition at line 751 of file scsi.h.

◆ SCSI_SENSEQ_PRESISTENT_RESERVATION_INFORMATION_LOST

#define SCSI_SENSEQ_PRESISTENT_RESERVATION_INFORMATION_LOST   0x01

Definition at line 862 of file scsi.h.

◆ SCSI_SENSEQ_RANDOM_POSITIONING_ERROR

#define SCSI_SENSEQ_RANDOM_POSITIONING_ERROR   0x00

Definition at line 769 of file scsi.h.

◆ SCSI_SENSEQ_READ_BOUNDARY_VIOLATION

#define SCSI_SENSEQ_READ_BOUNDARY_VIOLATION   0x07

Definition at line 793 of file scsi.h.

◆ SCSI_SENSEQ_READ_INVALID_DATA

#define SCSI_SENSEQ_READ_INVALID_DATA   0x06

Definition at line 792 of file scsi.h.

◆ SCSI_SENSEQ_READ_OF_SCRAMBLED_SECTOR_WITHOUT_AUTHENTICATION

#define SCSI_SENSEQ_READ_OF_SCRAMBLED_SECTOR_WITHOUT_AUTHENTICATION   0x03

Definition at line 912 of file scsi.h.

◆ SCSI_SENSEQ_REBUILD_IN_PROGRESS

#define SCSI_SENSEQ_REBUILD_IN_PROGRESS   0x05

Definition at line 727 of file scsi.h.

◆ SCSI_SENSEQ_RECALCULATION_IN_PROGRESS

#define SCSI_SENSEQ_RECALCULATION_IN_PROGRESS   0x06

Definition at line 728 of file scsi.h.

◆ SCSI_SENSEQ_REDUNDANCY_GROUP_DELETED

#define SCSI_SENSEQ_REDUNDANCY_GROUP_DELETED   0x07

Definition at line 847 of file scsi.h.

◆ SCSI_SENSEQ_REDUNDANCY_GROUP_MODIFIED

#define SCSI_SENSEQ_REDUNDANCY_GROUP_MODIFIED   0x06

Definition at line 846 of file scsi.h.

◆ SCSI_SENSEQ_REPORTED_LUNS_DATA_CHANGED

#define SCSI_SENSEQ_REPORTED_LUNS_DATA_CHANGED   0x0E

Definition at line 854 of file scsi.h.

◆ SCSI_SENSEQ_SEEK_ERROR_RATE_TOO_HIGH

#define SCSI_SENSEQ_SEEK_ERROR_RATE_TOO_HIGH   0x13

Definition at line 892 of file scsi.h.

◆ SCSI_SENSEQ_SEEK_TIME_PERFORMANCE

#define SCSI_SENSEQ_SEEK_TIME_PERFORMANCE   0x1A

Definition at line 899 of file scsi.h.

◆ SCSI_SENSEQ_SERVER_SEEK_ERROR_RATE_TOO_HIGH

#define SCSI_SENSEQ_SERVER_SEEK_ERROR_RATE_TOO_HIGH   0x43

Definition at line 904 of file scsi.h.

◆ SCSI_SENSEQ_SERVO_DATA_ERROR_RATE_TOO_HIGH

#define SCSI_SENSEQ_SERVO_DATA_ERROR_RATE_TOO_HIGH   0x42

Definition at line 903 of file scsi.h.

◆ SCSI_SENSEQ_SETMARK_DETECTED

#define SCSI_SENSEQ_SETMARK_DETECTED   0x03

Definition at line 710 of file scsi.h.

◆ SCSI_SENSEQ_SOFT_THRESHOLD_REACHED