ReactOS 0.4.16-dev-401-g45b008d
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 SCSI_SENSE_ERRORCODE_DESCRIPTOR_DEFERRED
Definition: scsi.h:626
#define SCSI_SENSE_ERRORCODE_DESCRIPTOR_CURRENT
Definition: scsi.h:625
#define ScsiGetSenseErrorCode(SenseInfoBuffer)
Definition: scsi.h:3676

Definition at line 3685 of file scsi.h.

◆ IsFixedSenseDataFormat

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

Definition at line 3681 of file scsi.h.

◆ IsSenseDataCurrentError

#define IsSenseDataCurrentError (   SenseInfoBuffer)
Value:

Definition at line 3689 of file scsi.h.

◆ IsSenseDataDeferredError

#define IsSenseDataDeferredError (   SenseInfoBuffer)
Value:

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:
{ \
_val1->Byte3 = _val2->Byte0; \
_val1->Byte2 = _val2->Byte1; \
_val1->Byte1 = _val2->Byte2; \
_val1->Byte0 = _val2->Byte3; \
}
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:3016
union _FOUR_BYTE * PFOUR_BYTE
UCHAR Byte0
Definition: tools.h:16
UCHAR Byte1
Definition: tools.h:17
UCHAR Byte2
Definition: tools.h:18
UCHAR Byte3
Definition: tools.h:19

Definition at line 3465 of file scsi.h.

◆ REVERSE_BYTES_QUAD

#define REVERSE_BYTES_QUAD (   Destination,
  Source 
)
Value:
{ \
_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; \
}
union _EIGHT_BYTE * PEIGHT_BYTE
UCHAR Byte2
Definition: scsi.h:3422
UCHAR Byte0
Definition: scsi.h:3420
UCHAR Byte5
Definition: scsi.h:3425
UCHAR Byte7
Definition: scsi.h:3427
UCHAR Byte1
Definition: scsi.h:3421
UCHAR Byte3
Definition: scsi.h:3423
UCHAR Byte6
Definition: scsi.h:3426
UCHAR Byte4
Definition: scsi.h:3424

Definition at line 3452 of file scsi.h.

◆ REVERSE_BYTES_SHORT

#define REVERSE_BYTES_SHORT (   Destination,
  Source 
)
Value:
{ \
PTWO_BYTE _val2 = (PTWO_BYTE)(Source); \
_val1->Byte1 = _val2->Byte0; \
_val1->Byte0 = _val2->Byte1; \
}
union _TWO_BYTE * PTWO_BYTE
UCHAR Byte0
Definition: scsi.h:3444
UCHAR Byte1
Definition: scsi.h:3445

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; \
}
long Long
Definition: ftraster.c:313
unsigned char UCHAR
Definition: xmlstorage.h:181

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; \
}
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

#define SCSI_SENSEQ_SOFT_THRESHOLD_REACHED   0x07

Definition at line 828 of file scsi.h.

◆ SCSI_SENSEQ_SOURCE_EMPTY

#define SCSI_SENSEQ_SOURCE_EMPTY   0x0e

Definition at line 812 of file scsi.h.

◆ SCSI_SENSEQ_SPACE_ALLOC_FAILED_WRITE_PROTECT

#define SCSI_SENSEQ_SPACE_ALLOC_FAILED_WRITE_PROTECT   0x07

Definition at line 803 of file scsi.h.

◆ SCSI_SENSEQ_SPACE_ALLOC_IN_PROGRESS

#define SCSI_SENSEQ_SPACE_ALLOC_IN_PROGRESS   0x14

Definition at line 731 of file scsi.h.

◆ SCSI_SENSEQ_SPARE_AREA_EXHAUSTION_PREDICTION_THRESHOLD_EXCEEDED

#define SCSI_SENSEQ_SPARE_AREA_EXHAUSTION_PREDICTION_THRESHOLD_EXCEEDED   0x03

Definition at line 888 of file scsi.h.

◆ SCSI_SENSEQ_SPARE_DELETED

#define SCSI_SENSEQ_SPARE_DELETED   0x09

Definition at line 849 of file scsi.h.

◆ SCSI_SENSEQ_SPARE_MODIFIED

#define SCSI_SENSEQ_SPARE_MODIFIED   0x08

Definition at line 848 of file scsi.h.

◆ SCSI_SENSEQ_SPIN_UP_RETRY_COUNT

#define SCSI_SENSEQ_SPIN_UP_RETRY_COUNT   0x1B

Definition at line 900 of file scsi.h.

◆ SCSI_SENSEQ_SPINDLE_SERVO_FAILURE

#define SCSI_SENSEQ_SPINDLE_SERVO_FAILURE   0x03

Definition at line 746 of file scsi.h.

◆ SCSI_SENSEQ_START_UNIT_TIMES_TOO_HIGH

#define SCSI_SENSEQ_START_UNIT_TIMES_TOO_HIGH   0x16

Definition at line 895 of file scsi.h.

◆ SCSI_SENSEQ_STATE_CHANGE_INPUT

#define SCSI_SENSEQ_STATE_CHANGE_INPUT   0x00

Definition at line 878 of file scsi.h.

◆ SCSI_SENSEQ_SYSTEM_BUFFER_FULL

#define SCSI_SENSEQ_SYSTEM_BUFFER_FULL   0x01

Definition at line 872 of file scsi.h.

◆ SCSI_SENSEQ_SYSTEM_RESOURCE_FAILURE

#define SCSI_SENSEQ_SYSTEM_RESOURCE_FAILURE   0x00

Definition at line 871 of file scsi.h.

◆ SCSI_SENSEQ_TARGET_OPERATING_CONDITIONS_CHANGED

#define SCSI_SENSEQ_TARGET_OPERATING_CONDITIONS_CHANGED   0x00

Definition at line 840 of file scsi.h.

◆ SCSI_SENSEQ_THROUGHPUT_PERFORMANCE

#define SCSI_SENSEQ_THROUGHPUT_PERFORMANCE   0x19

Definition at line 898 of file scsi.h.

◆ SCSI_SENSEQ_TIMEOUT_ON_LOGICAL_UNIT

#define SCSI_SENSEQ_TIMEOUT_ON_LOGICAL_UNIT   0x02

Definition at line 834 of file scsi.h.

◆ SCSI_SENSEQ_TOO_MANY_BLOCK_REASSIGNS

#define SCSI_SENSEQ_TOO_MANY_BLOCK_REASSIGNS   0x14

Definition at line 893 of file scsi.h.

◆ SCSI_SENSEQ_TOO_MANY_SEGMENT_DESCRIPTORS

#define SCSI_SENSEQ_TOO_MANY_SEGMENT_DESCRIPTORS   0x08

Definition at line 799 of file scsi.h.

◆ SCSI_SENSEQ_TRACK_FOLLOWING_ERROR

#define SCSI_SENSEQ_TRACK_FOLLOWING_ERROR   0x00

Definition at line 743 of file scsi.h.

◆ SCSI_SENSEQ_TRACKING_SERVO_FAILURE

#define SCSI_SENSEQ_TRACKING_SERVO_FAILURE   0x01

Definition at line 744 of file scsi.h.

◆ SCSI_SENSEQ_UNALIGNED_WRITE

#define SCSI_SENSEQ_UNALIGNED_WRITE   0x04

Definition at line 790 of file scsi.h.

◆ SCSI_SENSEQ_UNKNOWN_FORMAT

#define SCSI_SENSEQ_UNKNOWN_FORMAT   0x01

Definition at line 817 of file scsi.h.

◆ SCSI_SENSEQ_UNREACHABLE_TARGET

#define SCSI_SENSEQ_UNREACHABLE_TARGET   0x04

Definition at line 739 of file scsi.h.

◆ SCSI_SENSEQ_UNRECOVERED_READ_ERROR

#define SCSI_SENSEQ_UNRECOVERED_READ_ERROR   0x00

Definition at line 765 of file scsi.h.

◆ SCSI_SENSEQ_VOLUME_SET_DEASSIGNED

#define SCSI_SENSEQ_VOLUME_SET_DEASSIGNED   0x0C

Definition at line 852 of file scsi.h.

◆ SCSI_SENSEQ_VOLUME_SET_DELETED

#define SCSI_SENSEQ_VOLUME_SET_DELETED   0x0B

Definition at line 851 of file scsi.h.

◆ SCSI_SENSEQ_VOLUME_SET_MODIFIED

#define SCSI_SENSEQ_VOLUME_SET_MODIFIED   0x0A

Definition at line 850 of file scsi.h.

◆ SCSI_SENSEQ_VOLUME_SET_REASSIGNED

#define SCSI_SENSEQ_VOLUME_SET_REASSIGNED   0x0D

Definition at line 853 of file scsi.h.

◆ SCSI_SENSEQ_WRITE_BOUNDARY_VIOLATION

#define SCSI_SENSEQ_WRITE_BOUNDARY_VIOLATION   0x05

Definition at line 791 of file scsi.h.

◆ SCSI_SENSEQ_WRITE_PROTECT_DISABLE

#define SCSI_SENSEQ_WRITE_PROTECT_DISABLE   0x03

Definition at line 881 of file scsi.h.

◆ SCSI_SENSEQ_WRITE_PROTECT_ENABLE

#define SCSI_SENSEQ_WRITE_PROTECT_ENABLE   0x02

Definition at line 880 of file scsi.h.

◆ SCSI_SESNEQ_COMM_CRC_ERROR

#define SCSI_SESNEQ_COMM_CRC_ERROR   0x03

Definition at line 738 of file scsi.h.

◆ ScsiGetSenseDescriptorLength

#define ScsiGetSenseDescriptorLength (   DescriptorBuffer)     (sizeof(SCSI_SENSE_DESCRIPTOR_HEADER) + ((PSCSI_SENSE_DESCRIPTOR_HEADER)(DescriptorBuffer))->AdditionalLength)

Definition at line 3678 of file scsi.h.

◆ ScsiGetSenseErrorCode

#define ScsiGetSenseErrorCode (   SenseInfoBuffer)    (((PUCHAR)(SenseInfoBuffer))[0] & 0x7f)

Definition at line 3676 of file scsi.h.

◆ SCSIMESS_ABORT

#define SCSIMESS_ABORT   0x06

Definition at line 498 of file scsi.h.

◆ SCSIMESS_ABORT_WITH_TAG

#define SCSIMESS_ABORT_WITH_TAG   0x0D

Definition at line 499 of file scsi.h.

◆ SCSIMESS_BUS_DEVICE_RESET

#define SCSIMESS_BUS_DEVICE_RESET   0X0C

Definition at line 500 of file scsi.h.

◆ SCSIMESS_CLEAR_QUEUE

#define SCSIMESS_CLEAR_QUEUE   0X0E

Definition at line 501 of file scsi.h.

◆ SCSIMESS_COMMAND_COMPLETE

#define SCSIMESS_COMMAND_COMPLETE   0X00

Definition at line 502 of file scsi.h.

◆ SCSIMESS_DISCONNECT

#define SCSIMESS_DISCONNECT   0X04

Definition at line 503 of file scsi.h.

◆ SCSIMESS_EXTENDED_MESSAGE

#define SCSIMESS_EXTENDED_MESSAGE   0X01

Definition at line 504 of file scsi.h.

◆ SCSIMESS_HEAD_OF_QUEUE_TAG

#define SCSIMESS_HEAD_OF_QUEUE_TAG   0X21

Definition at line 515 of file scsi.h.

◆ SCSIMESS_IDENTIFY

#define SCSIMESS_IDENTIFY   0X80

Definition at line 505 of file scsi.h.

◆ SCSIMESS_IDENTIFY_WITH_DISCON

#define SCSIMESS_IDENTIFY_WITH_DISCON   0XC0

Definition at line 506 of file scsi.h.

◆ SCSIMESS_IGNORE_WIDE_RESIDUE

#define SCSIMESS_IGNORE_WIDE_RESIDUE   0X23

Definition at line 507 of file scsi.h.

◆ SCSIMESS_INIT_DETECTED_ERROR

#define SCSIMESS_INIT_DETECTED_ERROR   0X05

Definition at line 509 of file scsi.h.

◆ SCSIMESS_INITIATE_RECOVERY

#define SCSIMESS_INITIATE_RECOVERY   0X0F

Definition at line 508 of file scsi.h.

◆ SCSIMESS_LINK_CMD_COMP

#define SCSIMESS_LINK_CMD_COMP   0X0A

Definition at line 510 of file scsi.h.

◆ SCSIMESS_LINK_CMD_COMP_W_FLAG

#define SCSIMESS_LINK_CMD_COMP_W_FLAG   0X0B

Definition at line 511 of file scsi.h.

◆ SCSIMESS_MESS_PARITY_ERROR

#define SCSIMESS_MESS_PARITY_ERROR   0X09

Definition at line 512 of file scsi.h.

◆ SCSIMESS_MESSAGE_REJECT

#define SCSIMESS_MESSAGE_REJECT   0X07

Definition at line 513 of file scsi.h.

◆ SCSIMESS_MODIFY_DATA_LENGTH

#define SCSIMESS_MODIFY_DATA_LENGTH   5

Definition at line 527 of file scsi.h.

◆ SCSIMESS_MODIFY_DATA_POINTER

#define SCSIMESS_MODIFY_DATA_POINTER   0X00

Definition at line 523 of file scsi.h.

◆ SCSIMESS_NO_OPERATION

#define SCSIMESS_NO_OPERATION   0X08

Definition at line 514 of file scsi.h.

◆ SCSIMESS_ORDERED_QUEUE_TAG

#define SCSIMESS_ORDERED_QUEUE_TAG   0X22

Definition at line 516 of file scsi.h.

◆ SCSIMESS_RELEASE_RECOVERY

#define SCSIMESS_RELEASE_RECOVERY   0X10

Definition at line 518 of file scsi.h.

◆ SCSIMESS_RESTORE_POINTERS

#define SCSIMESS_RESTORE_POINTERS   0X03

Definition at line 519 of file scsi.h.

◆ SCSIMESS_SAVE_DATA_POINTER

#define SCSIMESS_SAVE_DATA_POINTER   0X02

Definition at line 520 of file scsi.h.

◆ SCSIMESS_SIMPLE_QUEUE_TAG

#define SCSIMESS_SIMPLE_QUEUE_TAG   0X20

Definition at line 517 of file scsi.h.

◆ SCSIMESS_SYNCH_DATA_LENGTH

#define SCSIMESS_SYNCH_DATA_LENGTH   3

Definition at line 528 of file scsi.h.

◆ SCSIMESS_SYNCHRONOUS_DATA_REQ

#define SCSIMESS_SYNCHRONOUS_DATA_REQ   0X01

Definition at line 524 of file scsi.h.

◆ SCSIMESS_TERMINATE_IO_PROCESS

#define SCSIMESS_TERMINATE_IO_PROCESS   0X11

Definition at line 521 of file scsi.h.

◆ SCSIMESS_WIDE_DATA_LENGTH

#define SCSIMESS_WIDE_DATA_LENGTH   2

Definition at line 529 of file scsi.h.

◆ SCSIMESS_WIDE_DATA_REQUEST

#define SCSIMESS_WIDE_DATA_REQUEST   0X03

Definition at line 525 of file scsi.h.

◆ SCSIOP_ACCESS_CONTROL_IN

#define SCSIOP_ACCESS_CONTROL_IN   0x86

Definition at line 345 of file scsi.h.

◆ SCSIOP_ACCESS_CONTROL_OUT

#define SCSIOP_ACCESS_CONTROL_OUT   0x87

Definition at line 346 of file scsi.h.

◆ SCSIOP_ATA_PASSTHROUGH12

#define SCSIOP_ATA_PASSTHROUGH12   0xA1

Definition at line 373 of file scsi.h.

◆ SCSIOP_ATA_PASSTHROUGH16

#define SCSIOP_ATA_PASSTHROUGH16   0x85

Definition at line 344 of file scsi.h.

◆ SCSIOP_BLANK

#define SCSIOP_BLANK   0xA1

Definition at line 372 of file scsi.h.

◆ SCSIOP_CHANGE_DEFINITION

#define SCSIOP_CHANGE_DEFINITION   0x40

Definition at line 293 of file scsi.h.

◆ SCSIOP_CLOSE_TRACK_SESSION

#define SCSIOP_CLOSE_TRACK_SESSION   0x5B

Definition at line 326 of file scsi.h.

◆ SCSIOP_COMPARE

#define SCSIOP_COMPARE   0x39

Definition at line 288 of file scsi.h.

◆ SCSIOP_COMPARE_AND_WRITE

#define SCSIOP_COMPARE_AND_WRITE   0x89

Definition at line 348 of file scsi.h.

◆ SCSIOP_COPY

#define SCSIOP_COPY   0x18

Definition at line 263 of file scsi.h.

◆ SCSIOP_COPY_COMPARE

#define SCSIOP_COPY_COMPARE   0x3A

Definition at line 289 of file scsi.h.

◆ SCSIOP_DENON_EJECT_DISC

#define SCSIOP_DENON_EJECT_DISC   0xE6

Definition at line 492 of file scsi.h.

◆ SCSIOP_DENON_PLAY_AUDIO

#define SCSIOP_DENON_PLAY_AUDIO   0xE8

Definition at line 494 of file scsi.h.

◆ SCSIOP_DENON_READ_SUBCODE

#define SCSIOP_DENON_READ_SUBCODE   0xEB

Definition at line 496 of file scsi.h.

◆ SCSIOP_DENON_READ_TOC

#define SCSIOP_DENON_READ_TOC   0xE9

Definition at line 495 of file scsi.h.

◆ SCSIOP_DENON_STOP_AUDIO

#define SCSIOP_DENON_STOP_AUDIO   0xE7

Definition at line 493 of file scsi.h.

◆ SCSIOP_ERASE

#define SCSIOP_ERASE   0x19

Definition at line 264 of file scsi.h.

◆ SCSIOP_ERASE16

#define SCSIOP_ERASE16   0x93

Definition at line 360 of file scsi.h.

◆ SCSIOP_EXCHANGE_MEDIUM

#define SCSIOP_EXCHANGE_MEDIUM   0xA6

Definition at line 382 of file scsi.h.

◆ SCSIOP_EXTENDED_COPY

#define SCSIOP_EXTENDED_COPY   0x83

Definition at line 339 of file scsi.h.

◆ SCSIOP_FLUSH_BUFFER

#define SCSIOP_FLUSH_BUFFER   0x10

Definition at line 255 of file scsi.h.

◆ SCSIOP_FORMAT_UNIT

#define SCSIOP_FORMAT_UNIT   0x04

Definition at line 238 of file scsi.h.

◆ SCSIOP_GET_CONFIGURATION

#define SCSIOP_GET_CONFIGURATION   0x46

Definition at line 301 of file scsi.h.

◆ SCSIOP_GET_EVENT_STATUS

#define SCSIOP_GET_EVENT_STATUS   0x4A

Definition at line 306 of file scsi.h.

◆ SCSIOP_GET_LBA_STATUS

#define SCSIOP_GET_LBA_STATUS   0x9E

Definition at line 365 of file scsi.h.

◆ SCSIOP_GET_MESSAGE

#define SCSIOP_GET_MESSAGE   0xA8

Definition at line 386 of file scsi.h.

◆ SCSIOP_GET_PERFORMANCE

#define SCSIOP_GET_PERFORMANCE   0xAC

Definition at line 391 of file scsi.h.

◆ SCSIOP_GET_PHYSICAL_ELEMENT_STATUS

#define SCSIOP_GET_PHYSICAL_ELEMENT_STATUS   0x9E

Definition at line 366 of file scsi.h.

◆ SCSIOP_INIT_ELEMENT_RANGE

#define SCSIOP_INIT_ELEMENT_RANGE   0xE7

Definition at line 419 of file scsi.h.

◆ SCSIOP_INIT_ELEMENT_STATUS

#define SCSIOP_INIT_ELEMENT_STATUS   0x07

Definition at line 241 of file scsi.h.

◆ SCSIOP_INQUIRY

#define SCSIOP_INQUIRY   0x12

Definition at line 257 of file scsi.h.

◆ SCSIOP_LOAD_UNLOAD

#define SCSIOP_LOAD_UNLOAD   0x1B

Definition at line 268 of file scsi.h.

◆ SCSIOP_LOAD_UNLOAD_SLOT

#define SCSIOP_LOAD_UNLOAD_SLOT   0xA6

Definition at line 381 of file scsi.h.

◆ SCSIOP_LOCATE

#define SCSIOP_LOCATE   0x2B

Definition at line 278 of file scsi.h.

◆ SCSIOP_LOCATE16

#define SCSIOP_LOCATE16   0x92

Definition at line 358 of file scsi.h.

◆ SCSIOP_LOCK_UNLOCK_CACHE16

#define SCSIOP_LOCK_UNLOCK_CACHE16   0x92

Definition at line 357 of file scsi.h.

◆ SCSIOP_LOG_SELECT

#define SCSIOP_LOG_SELECT   0x4C

Definition at line 308 of file scsi.h.

◆ SCSIOP_LOG_SENSE

#define SCSIOP_LOG_SENSE   0x4D

Definition at line 309 of file scsi.h.

◆ SCSIOP_MAINTENANCE_IN

#define SCSIOP_MAINTENANCE_IN   0xA3

Definition at line 377 of file scsi.h.

◆ SCSIOP_MAINTENANCE_OUT

#define SCSIOP_MAINTENANCE_OUT   0xA4

Definition at line 379 of file scsi.h.

◆ SCSIOP_MECHANISM_STATUS

#define SCSIOP_MECHANISM_STATUS   0xBD

Definition at line 413 of file scsi.h.

◆ SCSIOP_MEDIUM_REMOVAL

#define SCSIOP_MEDIUM_REMOVAL   0x1E

Definition at line 271 of file scsi.h.

◆ SCSIOP_MODE_SELECT

#define SCSIOP_MODE_SELECT   0x15

Definition at line 260 of file scsi.h.

◆ SCSIOP_MODE_SELECT10

#define SCSIOP_MODE_SELECT10   0x55

Definition at line 319 of file scsi.h.

◆ SCSIOP_MODE_SENSE

#define SCSIOP_MODE_SENSE   0x1A

Definition at line 265 of file scsi.h.

◆ SCSIOP_MODE_SENSE10

#define SCSIOP_MODE_SENSE10   0x5A

Definition at line 325 of file scsi.h.

◆ SCSIOP_MOVE_MEDIUM

#define SCSIOP_MOVE_MEDIUM   0xA5

Definition at line 380 of file scsi.h.

◆ SCSIOP_MOVE_MEDIUM_ATTACHED

#define SCSIOP_MOVE_MEDIUM_ATTACHED   0xA7

Definition at line 384 of file scsi.h.

◆ SCSIOP_OPERATION32

#define SCSIOP_OPERATION32   0x7F

Definition at line 332 of file scsi.h.

◆ SCSIOP_PARTITION

#define SCSIOP_PARTITION   0x0D

Definition at line 252 of file scsi.h.

◆ SCSIOP_PAUSE_RESUME

#define SCSIOP_PAUSE_RESUME   0x4B

Definition at line 307 of file scsi.h.

◆ SCSIOP_PERSISTENT_RESERVE_IN

#define SCSIOP_PERSISTENT_RESERVE_IN   0x5E

Definition at line 329 of file scsi.h.

◆ SCSIOP_PERSISTENT_RESERVE_OUT

#define SCSIOP_PERSISTENT_RESERVE_OUT   0x5F

Definition at line 330 of file scsi.h.

◆ SCSIOP_PLAY_AUDIO

#define SCSIOP_PLAY_AUDIO   0x45

Definition at line 300 of file scsi.h.

◆ SCSIOP_PLAY_AUDIO_MSF

#define SCSIOP_PLAY_AUDIO_MSF   0x47

Definition at line 302 of file scsi.h.

◆ SCSIOP_PLAY_CD

#define SCSIOP_PLAY_CD   0xBC

Definition at line 411 of file scsi.h.

◆ SCSIOP_PLAY_TRACK_INDEX

#define SCSIOP_PLAY_TRACK_INDEX   0x48

Definition at line 303 of file scsi.h.

◆ SCSIOP_PLAY_TRACK_RELATIVE

#define SCSIOP_PLAY_TRACK_RELATIVE   0x49

Definition at line 305 of file scsi.h.

◆ SCSIOP_POPULATE_TOKEN

#define SCSIOP_POPULATE_TOKEN   0x83

Definition at line 340 of file scsi.h.

◆ SCSIOP_POSITION_TO_ELEMENT

#define SCSIOP_POSITION_TO_ELEMENT   0x2B

Definition at line 279 of file scsi.h.

◆ SCSIOP_PREFETCH16

#define SCSIOP_PREFETCH16   0x90

Definition at line 354 of file scsi.h.

◆ SCSIOP_PRINT

#define SCSIOP_PRINT   0x0A

Definition at line 245 of file scsi.h.

◆ SCSIOP_READ

#define SCSIOP_READ   0x28

Definition at line 275 of file scsi.h.

◆ SCSIOP_READ12

#define SCSIOP_READ12   0xA8

Definition at line 385 of file scsi.h.

◆ SCSIOP_READ16

#define SCSIOP_READ16   0x88

Definition at line 347 of file scsi.h.

◆ SCSIOP_READ6

#define SCSIOP_READ6   0x08

Definition at line 242 of file scsi.h.

◆ SCSIOP_READ_ATTRIBUTES

#define SCSIOP_READ_ATTRIBUTES   0x8C

Definition at line 350 of file scsi.h.

◆ SCSIOP_READ_BLOCK_LIMITS

#define SCSIOP_READ_BLOCK_LIMITS   0x05

Definition at line 239 of file scsi.h.

◆ SCSIOP_READ_BUFFER_CAPACITY

#define SCSIOP_READ_BUFFER_CAPACITY   0x5C

Definition at line 327 of file scsi.h.

◆ SCSIOP_READ_CAPACITY

#define SCSIOP_READ_CAPACITY   0x25

Definition at line 274 of file scsi.h.

◆ SCSIOP_READ_CAPACITY16

#define SCSIOP_READ_CAPACITY16   0x9E

Definition at line 364 of file scsi.h.

◆ SCSIOP_READ_CD

#define SCSIOP_READ_CD   0xBE

Definition at line 415 of file scsi.h.

◆ SCSIOP_READ_CD_MSF

#define SCSIOP_READ_CD_MSF   0xB9

Definition at line 406 of file scsi.h.

◆ SCSIOP_READ_DATA_BUFF

#define SCSIOP_READ_DATA_BUFF   0x3C

Definition at line 291 of file scsi.h.

◆ SCSIOP_READ_DATA_BUFF16

#define SCSIOP_READ_DATA_BUFF16   0x9B

Definition at line 363 of file scsi.h.

◆ SCSIOP_READ_DEFECT_DATA

#define SCSIOP_READ_DEFECT_DATA   0xB7

Definition at line 404 of file scsi.h.

◆ SCSIOP_READ_DISC_INFORMATION

#define SCSIOP_READ_DISC_INFORMATION   0x51

Definition at line 314 of file scsi.h.

◆ SCSIOP_READ_DISK_INFORMATION

#define SCSIOP_READ_DISK_INFORMATION   0x51

Definition at line 313 of file scsi.h.

◆ SCSIOP_READ_DVD_STRUCTURE

#define SCSIOP_READ_DVD_STRUCTURE   0xAD

Definition at line 392 of file scsi.h.

◆ SCSIOP_READ_ELEMENT_STATUS

#define SCSIOP_READ_ELEMENT_STATUS   0xB8

Definition at line 405 of file scsi.h.

◆ SCSIOP_READ_ELEMENT_STATUS_ATTACHED

#define SCSIOP_READ_ELEMENT_STATUS_ATTACHED   0xB4

Definition at line 399 of file scsi.h.

◆ SCSIOP_READ_FORMATTED_CAPACITY

#define SCSIOP_READ_FORMATTED_CAPACITY   0x23

Definition at line 273 of file scsi.h.

◆ SCSIOP_READ_HEADER

#define SCSIOP_READ_HEADER   0x44

Definition at line 298 of file scsi.h.

◆ SCSIOP_READ_POSITION

#define SCSIOP_READ_POSITION   0x34

Definition at line 286 of file scsi.h.

◆ SCSIOP_READ_REVERSE

#define SCSIOP_READ_REVERSE   0x0F

Definition at line 253 of file scsi.h.

◆ SCSIOP_READ_REVERSE16

#define SCSIOP_READ_REVERSE16   0x81

Definition at line 337 of file scsi.h.

◆ SCSIOP_READ_SUB_CHANNEL

#define SCSIOP_READ_SUB_CHANNEL   0x42

Definition at line 295 of file scsi.h.

◆ SCSIOP_READ_TOC

#define SCSIOP_READ_TOC   0x43

Definition at line 297 of file scsi.h.

◆ SCSIOP_READ_TRACK_INFORMATION

#define SCSIOP_READ_TRACK_INFORMATION   0x52

Definition at line 315 of file scsi.h.

◆ SCSIOP_REASSIGN_BLOCKS

#define SCSIOP_REASSIGN_BLOCKS   0x07

Definition at line 240 of file scsi.h.

◆ SCSIOP_REBUILD16

#define SCSIOP_REBUILD16   0x81

Definition at line 336 of file scsi.h.

◆ SCSIOP_RECEIVE

#define SCSIOP_RECEIVE   0x08

Definition at line 243 of file scsi.h.

◆ SCSIOP_RECEIVE_COPY_RESULTS

#define SCSIOP_RECEIVE_COPY_RESULTS   0x84

Definition at line 342 of file scsi.h.

◆ SCSIOP_RECEIVE_DIAGNOSTIC

#define SCSIOP_RECEIVE_DIAGNOSTIC   0x1C

Definition at line 269 of file scsi.h.

◆ SCSIOP_RECEIVE_ROD_TOKEN_INFORMATION

#define SCSIOP_RECEIVE_ROD_TOKEN_INFORMATION   0x84

Definition at line 343 of file scsi.h.

◆ SCSIOP_RECOVER_BUF_DATA

#define SCSIOP_RECOVER_BUF_DATA   0x14

Definition at line 259 of file scsi.h.

◆ SCSIOP_REDUNDANCY_GROUP_IN

#define SCSIOP_REDUNDANCY_GROUP_IN   0xBA

Definition at line 408 of file scsi.h.

◆ SCSIOP_REDUNDANCY_GROUP_OUT

#define SCSIOP_REDUNDANCY_GROUP_OUT   0xBB

Definition at line 410 of file scsi.h.

◆ SCSIOP_REGENERATE16

#define SCSIOP_REGENERATE16   0x82

Definition at line 338 of file scsi.h.

◆ SCSIOP_RELEASE_ELEMENT

#define SCSIOP_RELEASE_ELEMENT   0x57

Definition at line 323 of file scsi.h.

◆ SCSIOP_RELEASE_UNIT

#define SCSIOP_RELEASE_UNIT   0x17

Definition at line 262 of file scsi.h.

◆ SCSIOP_RELEASE_UNIT10

#define SCSIOP_RELEASE_UNIT10   0x57

Definition at line 322 of file scsi.h.

◆ SCSIOP_REMOVE_ELEMENT_AND_TRUNCATE

#define SCSIOP_REMOVE_ELEMENT_AND_TRUNCATE   0x9E

Definition at line 367 of file scsi.h.

◆ SCSIOP_REPAIR_TRACK

#define SCSIOP_REPAIR_TRACK   0x58

Definition at line 324 of file scsi.h.

◆ SCSIOP_REPORT_DENSITY_SUPPORT

#define SCSIOP_REPORT_DENSITY_SUPPORT   0x44

Definition at line 299 of file scsi.h.

◆ SCSIOP_REPORT_KEY

#define SCSIOP_REPORT_KEY   0xA4

Definition at line 378 of file scsi.h.

◆ SCSIOP_REPORT_LUNS

#define SCSIOP_REPORT_LUNS   0xA0

Definition at line 371 of file scsi.h.

◆ SCSIOP_REQUEST_BLOCK_ADDR

#define SCSIOP_REQUEST_BLOCK_ADDR   0x02

Definition at line 236 of file scsi.h.

◆ SCSIOP_REQUEST_SENSE

#define SCSIOP_REQUEST_SENSE   0x03

Definition at line 237 of file scsi.h.

◆ SCSIOP_REQUEST_VOL_ELEMENT

#define SCSIOP_REQUEST_VOL_ELEMENT   0xB5

Definition at line 400 of file scsi.h.

◆ SCSIOP_RESERVE_ELEMENT

#define SCSIOP_RESERVE_ELEMENT   0x56

Definition at line 321 of file scsi.h.

◆ SCSIOP_RESERVE_TRACK_RZONE

#define SCSIOP_RESERVE_TRACK_RZONE   0x53

Definition at line 317 of file scsi.h.

◆ SCSIOP_RESERVE_UNIT

#define SCSIOP_RESERVE_UNIT   0x16

Definition at line 261 of file scsi.h.

◆ SCSIOP_RESERVE_UNIT10

#define SCSIOP_RESERVE_UNIT10   0x56

Definition at line 320 of file scsi.h.

◆ SCSIOP_REWIND

#define SCSIOP_REWIND   0x01

Definition at line 235 of file scsi.h.

◆ SCSIOP_REZERO_UNIT

#define SCSIOP_REZERO_UNIT   0x01

Definition at line 234 of file scsi.h.

◆ SCSIOP_SANITIZE

#define SCSIOP_SANITIZE   0x48

Definition at line 304 of file scsi.h.

◆ SCSIOP_SCAN_CD

#define SCSIOP_SCAN_CD   0xBA

Definition at line 407 of file scsi.h.

◆ SCSIOP_SEARCH_DATA_EQUAL

#define SCSIOP_SEARCH_DATA_EQUAL   0x31

Definition at line 283 of file scsi.h.

◆ SCSIOP_SEARCH_DATA_EQUAL12

#define SCSIOP_SEARCH_DATA_EQUAL12   0xB1

Definition at line 396 of file scsi.h.

◆ SCSIOP_SEARCH_DATA_HIGH

#define SCSIOP_SEARCH_DATA_HIGH   0x30

Definition at line 282 of file scsi.h.

◆ SCSIOP_SEARCH_DATA_HIGH12

#define SCSIOP_SEARCH_DATA_HIGH12   0xB0

Definition at line 395 of file scsi.h.

◆ SCSIOP_SEARCH_DATA_LOW

#define SCSIOP_SEARCH_DATA_LOW   0x32

Definition at line 284 of file scsi.h.

◆ SCSIOP_SEARCH_DATA_LOW12

#define SCSIOP_SEARCH_DATA_LOW12   0xB2

Definition at line 397 of file scsi.h.

◆ SCSIOP_SECURITY_PROTOCOL_IN

#define SCSIOP_SECURITY_PROTOCOL_IN   0xA2

Definition at line 375 of file scsi.h.

◆ SCSIOP_SECURITY_PROTOCOL_OUT

#define SCSIOP_SECURITY_PROTOCOL_OUT   0xB5

Definition at line 401 of file scsi.h.

◆ SCSIOP_SEEK

#define SCSIOP_SEEK   0x2B

Definition at line 277 of file scsi.h.

◆ SCSIOP_SEEK6

#define SCSIOP_SEEK6   0x0B

Definition at line 247 of file scsi.h.

◆ SCSIOP_SEEK_BLOCK

#define SCSIOP_SEEK_BLOCK   0x0C

Definition at line 251 of file scsi.h.

◆ SCSIOP_SEND

#define SCSIOP_SEND   0x0A

Definition at line 246 of file scsi.h.

◆ SCSIOP_SEND_CUE_SHEET

#define SCSIOP_SEND_CUE_SHEET   0x5D

Definition at line 328 of file scsi.h.

◆ SCSIOP_SEND_DIAGNOSTIC

#define SCSIOP_SEND_DIAGNOSTIC   0x1D

Definition at line 270 of file scsi.h.

◆ SCSIOP_SEND_DVD_STRUCTURE

#define SCSIOP_SEND_DVD_STRUCTURE   0xBF

Definition at line 417 of file scsi.h.

◆ SCSIOP_SEND_EVENT

#define SCSIOP_SEND_EVENT   0xA2

Definition at line 374 of file scsi.h.

◆ SCSIOP_SEND_KEY

#define SCSIOP_SEND_KEY   0xA3

Definition at line 376 of file scsi.h.

◆ SCSIOP_SEND_MESSAGE

#define SCSIOP_SEND_MESSAGE   0xAB

Definition at line 389 of file scsi.h.

◆ SCSIOP_SEND_OPC_INFORMATION

#define SCSIOP_SEND_OPC_INFORMATION   0x54

Definition at line 318 of file scsi.h.

◆ SCSIOP_SEND_VOLUME_TAG

#define SCSIOP_SEND_VOLUME_TAG   0xB6

Definition at line 402 of file scsi.h.

◆ SCSIOP_SERVICE_ACTION_IN12

#define SCSIOP_SERVICE_ACTION_IN12   0xAB

Definition at line 390 of file scsi.h.

◆ SCSIOP_SERVICE_ACTION_IN16

#define SCSIOP_SERVICE_ACTION_IN16   0x9E

Definition at line 368 of file scsi.h.

◆ SCSIOP_SERVICE_ACTION_OUT12

#define SCSIOP_SERVICE_ACTION_OUT12   0xA9

Definition at line 387 of file scsi.h.

◆ SCSIOP_SERVICE_ACTION_OUT16

#define SCSIOP_SERVICE_ACTION_OUT16   0x9F

Definition at line 369 of file scsi.h.

◆ SCSIOP_SET_CAPACITY

#define SCSIOP_SET_CAPACITY   0x0B

Definition at line 250 of file scsi.h.

◆ SCSIOP_SET_CD_SPEED

#define SCSIOP_SET_CD_SPEED   0xBB

Definition at line 409 of file scsi.h.

◆ SCSIOP_SET_LIMITS

#define SCSIOP_SET_LIMITS   0x33

Definition at line 285 of file scsi.h.

◆ SCSIOP_SET_LIMITS12

#define SCSIOP_SET_LIMITS12   0xB3

Definition at line 398 of file scsi.h.

◆ SCSIOP_SET_READ_AHEAD

#define SCSIOP_SET_READ_AHEAD   0xA7

Definition at line 383 of file scsi.h.

◆ SCSIOP_SET_STREAMING

#define SCSIOP_SET_STREAMING   0xB6

Definition at line 403 of file scsi.h.

◆ SCSIOP_SLEW_PRINT

#define SCSIOP_SLEW_PRINT   0x0B

Definition at line 249 of file scsi.h.

◆ SCSIOP_SPACE

#define SCSIOP_SPACE   0x11

Definition at line 256 of file scsi.h.

◆ SCSIOP_SPACE16

#define SCSIOP_SPACE16   0x91

Definition at line 356 of file scsi.h.

◆ SCSIOP_SPARE_IN

#define SCSIOP_SPARE_IN   0xBC

Definition at line 412 of file scsi.h.

◆ SCSIOP_SPARE_OUT

#define SCSIOP_SPARE_OUT   0xBD

Definition at line 414 of file scsi.h.

◆ SCSIOP_START_STOP_UNIT

#define SCSIOP_START_STOP_UNIT   0x1B

Definition at line 266 of file scsi.h.

◆ SCSIOP_STOP_PLAY_SCAN

#define SCSIOP_STOP_PLAY_SCAN   0x4E

Definition at line 310 of file scsi.h.

◆ SCSIOP_STOP_PRINT

#define SCSIOP_STOP_PRINT   0x1B

Definition at line 267 of file scsi.h.

◆ SCSIOP_SYNCHRONIZE_CACHE

#define SCSIOP_SYNCHRONIZE_CACHE   0x35

Definition at line 287 of file scsi.h.

◆ SCSIOP_SYNCHRONIZE_CACHE16

#define SCSIOP_SYNCHRONIZE_CACHE16   0x91

Definition at line 355 of file scsi.h.

◆ SCSIOP_TEST_UNIT_READY

#define SCSIOP_TEST_UNIT_READY   0x00

Definition at line 233 of file scsi.h.

◆ SCSIOP_TRACK_SELECT

#define SCSIOP_TRACK_SELECT   0x0B

Definition at line 248 of file scsi.h.

◆ SCSIOP_UNMAP

#define SCSIOP_UNMAP   0x42

Definition at line 296 of file scsi.h.

◆ SCSIOP_VERIFY

#define SCSIOP_VERIFY   0x2F

Definition at line 281 of file scsi.h.

◆ SCSIOP_VERIFY12

#define SCSIOP_VERIFY12   0xAF

Definition at line 394 of file scsi.h.

◆ SCSIOP_VERIFY16

#define SCSIOP_VERIFY16   0x8F

Definition at line 353 of file scsi.h.

◆ SCSIOP_VERIFY6

#define SCSIOP_VERIFY6   0x13

Definition at line 258 of file scsi.h.

◆ SCSIOP_VOLUME_SET_IN

#define SCSIOP_VOLUME_SET_IN   0xBE

Definition at line 416 of file scsi.h.

◆ SCSIOP_VOLUME_SET_OUT

#define SCSIOP_VOLUME_SET_OUT   0xBF

Definition at line 418 of file scsi.h.

◆ SCSIOP_WRITE

#define SCSIOP_WRITE   0x2A

Definition at line 276 of file scsi.h.

◆ SCSIOP_WRITE12

#define SCSIOP_WRITE12   0xAA

Definition at line 388 of file scsi.h.

◆ SCSIOP_WRITE16

#define SCSIOP_WRITE16   0x8A

Definition at line 349 of file scsi.h.

◆ SCSIOP_WRITE6

#define SCSIOP_WRITE6   0x0A

Definition at line 244 of file scsi.h.

◆ SCSIOP_WRITE_ATTRIBUTES

#define SCSIOP_WRITE_ATTRIBUTES   0x8D

Definition at line 351 of file scsi.h.

◆ SCSIOP_WRITE_DATA_BUFF

#define SCSIOP_WRITE_DATA_BUFF   0x3B

Definition at line 290 of file scsi.h.

◆ SCSIOP_WRITE_FILEMARKS

#define SCSIOP_WRITE_FILEMARKS   0x10

Definition at line 254 of file scsi.h.

◆ SCSIOP_WRITE_FILEMARKS16

#define SCSIOP_WRITE_FILEMARKS16   0x80

Definition at line 335 of file scsi.h.

◆ SCSIOP_WRITE_LONG

#define SCSIOP_WRITE_LONG   0x3F

Definition at line 292 of file scsi.h.

◆ SCSIOP_WRITE_SAME

#define SCSIOP_WRITE_SAME   0x41

Definition at line 294 of file scsi.h.

◆ SCSIOP_WRITE_SAME16

#define SCSIOP_WRITE_SAME16   0x93

Definition at line 359 of file scsi.h.

◆ SCSIOP_WRITE_USING_TOKEN

#define SCSIOP_WRITE_USING_TOKEN   0x83

Definition at line 341 of file scsi.h.

◆ SCSIOP_WRITE_VERIFY

#define SCSIOP_WRITE_VERIFY   0x2E

Definition at line 280 of file scsi.h.

◆ SCSIOP_WRITE_VERIFY12

#define SCSIOP_WRITE_VERIFY12   0xAE

Definition at line 393 of file scsi.h.

◆ SCSIOP_WRITE_VERIFY16

#define SCSIOP_WRITE_VERIFY16   0x8E

Definition at line 352 of file scsi.h.

◆ SCSIOP_XDWRITE

#define SCSIOP_XDWRITE   0x50

Definition at line 311 of file scsi.h.

◆ SCSIOP_XDWRITE_EXTENDED16

#define SCSIOP_XDWRITE_EXTENDED16   0x80

Definition at line 334 of file scsi.h.

◆ SCSIOP_XDWRITE_READ

#define SCSIOP_XDWRITE_READ   0x53

Definition at line 316 of file scsi.h.

◆ SCSIOP_XPWRITE

#define SCSIOP_XPWRITE   0x51

Definition at line 312 of file scsi.h.

◆ SCSIOP_ZBC_IN

#define SCSIOP_ZBC_IN   0x95

Definition at line 362 of file scsi.h.

◆ SCSIOP_ZBC_OUT

#define SCSIOP_ZBC_OUT   0x94

Definition at line 361 of file scsi.h.

◆ SCSISTAT_BUSY

#define SCSISTAT_BUSY   0x08

Definition at line 569 of file scsi.h.

◆ SCSISTAT_CHECK_CONDITION

#define SCSISTAT_CHECK_CONDITION   0x02

Definition at line 567 of file scsi.h.

◆ SCSISTAT_COMMAND_TERMINATED

#define SCSISTAT_COMMAND_TERMINATED   0x22

Definition at line 573 of file scsi.h.

◆ SCSISTAT_CONDITION_MET

#define SCSISTAT_CONDITION_MET   0x04

Definition at line 568 of file scsi.h.

◆ SCSISTAT_GOOD

#define SCSISTAT_GOOD   0x00

Definition at line 566 of file scsi.h.

◆ SCSISTAT_INTERMEDIATE

#define SCSISTAT_INTERMEDIATE   0x10

Definition at line 570 of file scsi.h.

◆ SCSISTAT_INTERMEDIATE_COND_MET

#define SCSISTAT_INTERMEDIATE_COND_MET   0x14

Definition at line 571 of file scsi.h.

◆ SCSISTAT_QUEUE_FULL

#define SCSISTAT_QUEUE_FULL   0x28

Definition at line 574 of file scsi.h.

◆ SCSISTAT_RESERVATION_CONFLICT

#define SCSISTAT_RESERVATION_CONFLICT   0x18

Definition at line 572 of file scsi.h.

◆ SENSE_BUFFER_SIZE

#define SENSE_BUFFER_SIZE   sizeof(SENSE_DATA)

Definition at line 595 of file scsi.h.

◆ SENSE_BUFFER_SIZE_EX

#define SENSE_BUFFER_SIZE_EX   sizeof(SENSE_DATA_EX)

Definition at line 596 of file scsi.h.

◆ SEQUENTIAL_ACCESS_DEVICE

#define SEQUENTIAL_ACCESS_DEVICE   0x01

Definition at line 542 of file scsi.h.

◆ SERVICE_ACTION_BLOCK_ERASE

#define SERVICE_ACTION_BLOCK_ERASE   0x02

Definition at line 426 of file scsi.h.

◆ SERVICE_ACTION_CLOSE_ZONE

#define SERVICE_ACTION_CLOSE_ZONE   0x01

Definition at line 451 of file scsi.h.

◆ SERVICE_ACTION_CRYPTO_ERASE

#define SERVICE_ACTION_CRYPTO_ERASE   0x03

Definition at line 427 of file scsi.h.

◆ SERVICE_ACTION_EXIT_FAILURE

#define SERVICE_ACTION_EXIT_FAILURE   0x1f

Definition at line 428 of file scsi.h.

◆ SERVICE_ACTION_FINISH_ZONE

#define SERVICE_ACTION_FINISH_ZONE   0x02

Definition at line 452 of file scsi.h.

◆ SERVICE_ACTION_GET_LBA_STATUS

#define SERVICE_ACTION_GET_LBA_STATUS   0x12

Definition at line 475 of file scsi.h.

◆ SERVICE_ACTION_GET_PHYSICAL_ELEMENT_STATUS

#define SERVICE_ACTION_GET_PHYSICAL_ELEMENT_STATUS   0x17

Definition at line 476 of file scsi.h.

◆ SERVICE_ACTION_OPEN_ZONE

#define SERVICE_ACTION_OPEN_ZONE   0x03

Definition at line 453 of file scsi.h.

◆ SERVICE_ACTION_ORWRITE

#define SERVICE_ACTION_ORWRITE   0x000E

Definition at line 438 of file scsi.h.

◆ SERVICE_ACTION_OVERWRITE

#define SERVICE_ACTION_OVERWRITE   0x01

Definition at line 425 of file scsi.h.

◆ SERVICE_ACTION_POPULATE_TOKEN

#define SERVICE_ACTION_POPULATE_TOKEN   0x10

Definition at line 442 of file scsi.h.

◆ SERVICE_ACTION_READ_CAPACITY16

#define SERVICE_ACTION_READ_CAPACITY16   0x10

Definition at line 474 of file scsi.h.

◆ SERVICE_ACTION_RECEIVE_TOKEN_INFORMATION

#define SERVICE_ACTION_RECEIVE_TOKEN_INFORMATION   0x07

Definition at line 447 of file scsi.h.

◆ SERVICE_ACTION_REMOVE_ELEMENT_AND_TRUNCATE

#define SERVICE_ACTION_REMOVE_ELEMENT_AND_TRUNCATE   0x18

Definition at line 477 of file scsi.h.

◆ SERVICE_ACTION_REPORT_TIMESTAMP

#define SERVICE_ACTION_REPORT_TIMESTAMP   0x0F

Definition at line 481 of file scsi.h.

◆ SERVICE_ACTION_REPORT_ZONES

#define SERVICE_ACTION_REPORT_ZONES   0x00

Definition at line 458 of file scsi.h.

◆ SERVICE_ACTION_RESET_WRITE_POINTER

#define SERVICE_ACTION_RESET_WRITE_POINTER   0x04

Definition at line 454 of file scsi.h.

◆ SERVICE_ACTION_SET_TIMESTAMP

#define SERVICE_ACTION_SET_TIMESTAMP   0x0F

Definition at line 485 of file scsi.h.

◆ SERVICE_ACTION_WRITE

#define SERVICE_ACTION_WRITE   0x000B

Definition at line 435 of file scsi.h.

◆ SERVICE_ACTION_WRITE_SAME

#define SERVICE_ACTION_WRITE_SAME   0x000D

Definition at line 437 of file scsi.h.

◆ SERVICE_ACTION_WRITE_USING_TOKEN

#define SERVICE_ACTION_WRITE_USING_TOKEN   0x11

Definition at line 443 of file scsi.h.

◆ SERVICE_ACTION_WRITE_VERIFY

#define SERVICE_ACTION_WRITE_VERIFY   0x000C

Definition at line 436 of file scsi.h.

◆ SERVICE_ACTION_XDWRITE

#define SERVICE_ACTION_XDWRITE   0x0004

Definition at line 432 of file scsi.h.

◆ SERVICE_ACTION_XDWRITEREAD

#define SERVICE_ACTION_XDWRITEREAD   0x0007

Definition at line 434 of file scsi.h.

◆ SERVICE_ACTION_XPWRITE

#define SERVICE_ACTION_XPWRITE   0x0006

Definition at line 433 of file scsi.h.

◆ SETBITOFF

#define SETBITOFF   0

Definition at line 188 of file scsi.h.

◆ SETBITON

#define SETBITON   1

Definition at line 187 of file scsi.h.

◆ START_UNIT_CODE

#define START_UNIT_CODE   0x01

Definition at line 537 of file scsi.h.

◆ STOP_UNIT_CODE

#define STOP_UNIT_CODE   0x00

Definition at line 538 of file scsi.h.

◆ STOR_ADDR_BTL8_ADDRESS_LENGTH

#define STOR_ADDR_BTL8_ADDRESS_LENGTH   4

Definition at line 3528 of file scsi.h.

◆ STOR_ADDRESS_ALIGN

#define STOR_ADDRESS_ALIGN

Definition at line 3514 of file scsi.h.

◆ STOR_ADDRESS_TYPE_BTL8

#define STOR_ADDRESS_TYPE_BTL8   0x1

Definition at line 3525 of file scsi.h.

◆ STOR_ADDRESS_TYPE_MAX

#define STOR_ADDRESS_TYPE_MAX   0xffff

Definition at line 3526 of file scsi.h.

◆ STOR_ADDRESS_TYPE_UNKNOWN

#define STOR_ADDRESS_TYPE_UNKNOWN   0x0

Definition at line 3524 of file scsi.h.

◆ USE_DEFAULTLSB

#define USE_DEFAULTLSB   0

Definition at line 535 of file scsi.h.

◆ USE_DEFAULTMSB

#define USE_DEFAULTMSB   0

Definition at line 534 of file scsi.h.

◆ VPD_ATA_INFORMATION

#define VPD_ATA_INFORMATION   0x89

Definition at line 2413 of file scsi.h.

◆ VPD_BLOCK_DEVICE_CHARACTERISTICS

#define VPD_BLOCK_DEVICE_CHARACTERISTICS   0xB1

Definition at line 2417 of file scsi.h.

◆ VPD_BLOCK_LIMITS

#define VPD_BLOCK_LIMITS   0xB0

Definition at line 2416 of file scsi.h.

◆ VPD_DEVICE_IDENTIFIERS

#define VPD_DEVICE_IDENTIFIERS   0x83

Definition at line 2406 of file scsi.h.

◆ VPD_EXTENDED_INQUIRY_DATA

#define VPD_EXTENDED_INQUIRY_DATA   0x86

Definition at line 2410 of file scsi.h.

◆ VPD_LOGICAL_BLOCK_PROVISIONING

#define VPD_LOGICAL_BLOCK_PROVISIONING   0xB2

Definition at line 2418 of file scsi.h.

◆ VPD_MAX_BUFFER_SIZE

#define VPD_MAX_BUFFER_SIZE   0xff

Definition at line 2402 of file scsi.h.

◆ VPD_MEDIA_SERIAL_NUMBER

#define VPD_MEDIA_SERIAL_NUMBER   0x84

Definition at line 2407 of file scsi.h.

◆ VPD_MODE_PAGE_POLICY

#define VPD_MODE_PAGE_POLICY   0x87

Definition at line 2411 of file scsi.h.

◆ VPD_NETWORK_MANAGEMENT_ADDRESSES

#define VPD_NETWORK_MANAGEMENT_ADDRESSES   0x85

Definition at line 2409 of file scsi.h.

◆ VPD_SCSI_PORTS

#define VPD_SCSI_PORTS   0x88

Definition at line 2412 of file scsi.h.

◆ VPD_SERIAL_NUMBER

#define VPD_SERIAL_NUMBER   0x80

Definition at line 2405 of file scsi.h.

◆ VPD_SOFTWARE_INTERFACE_IDENTIFIERS

#define VPD_SOFTWARE_INTERFACE_IDENTIFIERS   0x84

Definition at line 2408 of file scsi.h.

◆ VPD_SUPPORTED_PAGES

#define VPD_SUPPORTED_PAGES   0x00

Definition at line 2404 of file scsi.h.

◆ VPD_THIRD_PARTY_COPY

#define VPD_THIRD_PARTY_COPY   0x8F

Definition at line 2415 of file scsi.h.

◆ VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS

#define VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS   0xB6

Definition at line 2419 of file scsi.h.

◆ WHICH_BIT

#define WHICH_BIT (   Data,
  Bit 
)
Value:
{ \
UCHAR _val; \
for (_val = 0; _val < 32; _val++) { \
if (((Data) >> _val) == 1) { \
break; \
} \
} \
ASSERT(_val != 32); \
(Bit) = _val; \
}

Definition at line 3500 of file scsi.h.

◆ WRITE_ONCE_READ_MULTIPLE_DEVICE

#define WRITE_ONCE_READ_MULTIPLE_DEVICE   0x04

Definition at line 545 of file scsi.h.

◆ ZONED_CAPABILITIES_DEVICE_MANAGED

#define ZONED_CAPABILITIES_DEVICE_MANAGED   0x2

Definition at line 2563 of file scsi.h.

◆ ZONED_CAPABILITIES_HOST_AWARE

#define ZONED_CAPABILITIES_HOST_AWARE   0x1

Definition at line 2562 of file scsi.h.

◆ ZONED_CAPABILITIES_NOT_REPORTED

#define ZONED_CAPABILITIES_NOT_REPORTED   0x0

Definition at line 2561 of file scsi.h.

Typedef Documentation

◆ AUDIO_OUTPUT

◆ CDAUDIO_CONTROL_PAGE

◆ CDB

typedef union _CDB CDB

◆ CDDA_OUTPUT_PORT

◆ CDVD_CAPABILITIES_PAGE

◆ CDVD_CHALLENGE_KEY_DATA

◆ CDVD_FEATURE_SET_PAGE

◆ CDVD_INACTIVITY_TIMEOUT_PAGE

◆ CDVD_KEY_DATA

◆ CDVD_KEY_HEADER

◆ CDVD_REPORT_AGID_DATA

◆ CDVD_REPORT_ASF_DATA

◆ CDVD_TITLE_KEY_HEADER

◆ DATA_BLOCK_HEADER

◆ DESCRIPTOR_SENSE_DATA

◆ DISC_INFORMATION

◆ DISK_INFORMATION

◆ EIGHT_BYTE

typedef union _EIGHT_BYTE EIGHT_BYTE

◆ FIXED_SENSE_DATA

Definition at line 2723 of file scsi.h.

◆ FORMAT_DESCRIPTOR

◆ FORMAT_LIST_HEADER

◆ FORMATTED_CAPACITY_DESCRIPTOR

◆ FORMATTED_CAPACITY_LIST

◆ FOUR_BYTE

typedef union _FOUR_BYTE FOUR_BYTE

◆ INQUIRYDATA

◆ LBA_STATUS_DESCRIPTOR

◆ LBA_STATUS_LIST_HEADER

◆ LOG_PAGE

◆ LOG_PAGE_LOGICAL_BLOCK_PROVISIONING

◆ LOG_PARAMETER

◆ LOG_PARAMETER_HEADER

◆ LOG_PARAMETER_THRESHOLD_RESOURCE_COUNT

◆ LUN_LIST

◆ MECHANICAL_STATUS

◆ MECHANICAL_STATUS_INFORMATION_HEADER

◆ MODE_CACHING_PAGE

◆ MODE_CDROM_WRITE_PARAMETERS_PAGE

◆ MODE_CDROM_WRITE_PARAMETERS_PAGE2

◆ MODE_CONTROL_PAGE

◆ MODE_DISCONNECT_PAGE

◆ MODE_FLEXIBLE_DISK_PAGE

◆ MODE_FORMAT_PAGE

◆ MODE_INFO_EXCEPTIONS

◆ MODE_MRW_PAGE

◆ MODE_PARAMETER_BLOCK

◆ MODE_PARAMETER_HEADER

◆ MODE_PARAMETER_HEADER10

◆ MODE_PARM_READ_WRITE_DATA

◆ MODE_READ_RECOVERY_PAGE

◆ MODE_READ_WRITE_RECOVERY_PAGE

◆ MODE_RIGID_GEOMETRY_PAGE

◆ NOTIFICATION_BUSY_STATUS

◆ NOTIFICATION_EVENT_STATUS_HEADER

◆ NOTIFICATION_EXTERNAL_STATUS

◆ NOTIFICATION_MEDIA_STATUS

◆ NOTIFICATION_MULTI_HOST_STATUS

◆ NOTIFICATION_OPERATIONAL_STATUS

◆ NOTIFICATION_POWER_STATUS

◆ OPC_TABLE_ENTRY

◆ OPERATION_STATUS

◆ PAUDIO_OUTPUT

◆ PBLOCK_DEVICE_RANGE_DESCRIPTOR

◆ PBLOCK_DEVICE_TOKEN_DESCRIPTOR

◆ PCDAUDIO_CONTROL_PAGE

◆ PCDB

typedef union _CDB * PCDB

◆ PCDDA_OUTPUT_PORT

◆ PCDVD_CAPABILITIES_PAGE

◆ PCDVD_CHALLENGE_KEY_DATA

◆ PCDVD_FEATURE_SET_PAGE

◆ PCDVD_INACTIVITY_TIMEOUT_PAGE

◆ PCDVD_KEY_DATA

◆ PCDVD_KEY_HEADER

◆ PCDVD_REPORT_AGID_DATA

◆ PCDVD_REPORT_ASF_DATA

◆ PCDVD_TITLE_KEY_HEADER

◆ PDATA_BLOCK_HEADER

◆ PDESCRIPTOR_SENSE_DATA

◆ PDISC_INFORMATION

◆ PDISK_INFORMATION

◆ PEIGHT_BYTE

typedef union _EIGHT_BYTE * PEIGHT_BYTE

◆ PERFORMANCE_DESCRIPTOR

◆ PFIXED_SENSE_DATA

Definition at line 2723 of file scsi.h.

◆ PFORMAT_DESCRIPTOR

◆ PFORMAT_LIST_HEADER

◆ PFORMATTED_CAPACITY_DESCRIPTOR

◆ PFORMATTED_CAPACITY_LIST

◆ PFOUR_BYTE

typedef union _FOUR_BYTE * PFOUR_BYTE

◆ PINQUIRYDATA

◆ PLBA_STATUS_DESCRIPTOR

◆ PLBA_STATUS_LIST_HEADER

◆ PLOG_PAGE

◆ PLOG_PAGE_LOGICAL_BLOCK_PROVISIONING

◆ PLOG_PARAMETER

◆ PLOG_PARAMETER_HEADER

◆ PLOG_PARAMETER_THRESHOLD_RESOURCE_COUNT

◆ PLUN_LIST

◆ PMECHANICAL_STATUS

◆ PMECHANICAL_STATUS_INFORMATION_HEADER

◆ PMODE_CACHING_PAGE

◆ PMODE_CDROM_WRITE_PARAMETERS_PAGE

◆ PMODE_CDROM_WRITE_PARAMETERS_PAGE2

◆ PMODE_CONTROL_PAGE

◆ PMODE_DISCONNECT_PAGE

◆ PMODE_FLEXIBLE_DISK_PAGE

◆ PMODE_FORMAT_PAGE

◆ PMODE_INFO_EXCEPTIONS

◆ PMODE_MRW_PAGE

◆ PMODE_PARAMETER_BLOCK

◆ PMODE_PARAMETER_HEADER

◆ PMODE_PARAMETER_HEADER10

◆ PMODE_PARM_READ_WRITE_DATA

◆ PMODE_READ_RECOVERY_PAGE

◆ PMODE_READ_WRITE_RECOVERY_PAGE

◆ PMODE_RIGID_GEOMETRY_PAGE

◆ PNOTIFICATION_BUSY_STATUS

◆ PNOTIFICATION_EVENT_STATUS_HEADER

◆ PNOTIFICATION_EXTERNAL_STATUS

◆ PNOTIFICATION_MEDIA_STATUS

◆ PNOTIFICATION_MULTI_HOST_STATUS

◆ PNOTIFICATION_OPERATIONAL_STATUS

◆ PNOTIFICATION_POWER_STATUS

◆ POPC_TABLE_ENTRY

◆ POPERATION_STATUS

◆ PORT_OUTPUT

◆ POWER_CONDITION_PAGE

◆ PPERFORMANCE_DESCRIPTOR

◆ PPOPULATE_TOKEN_HEADER

◆ PPORT_OUTPUT

◆ PPOWER_CONDITION_PAGE

◆ PPRI_REGISTRATION_LIST

◆ PPRI_RESERVATION_DESCRIPTOR

◆ PPRI_RESERVATION_LIST

◆ PPRO_PARAMETER_LIST

◆ PREAD_BLOCK_LIMITS_DATA

◆ PREAD_BUFFER_CAPACITY_DATA

◆ PREAD_CAPACITY16_DATA

◆ PREAD_CAPACITY_DATA

◆ PREAD_CAPACITY_DATA_EX

◆ PREAD_DVD_STRUCTURES_HEADER

◆ PRECEIVE_TOKEN_INFORMATION_HEADER

◆ PRECEIVE_TOKEN_INFORMATION_RESPONSE_HEADER

◆ PRI_REGISTRATION_LIST

◆ PRI_RESERVATION_DESCRIPTOR

◆ PRI_RESERVATION_LIST

◆ PRO_PARAMETER_LIST

◆ PSCSI_EXTENDED_MESSAGE

◆ PSCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURN

◆ PSCSI_SENSE_DESCRIPTOR_BLOCK_COMMAND

◆ PSCSI_SENSE_DESCRIPTOR_HEADER

◆ PSCSI_SENSE_DESCRIPTOR_INFORMATION

◆ PSENSE_DATA

◆ PSENSE_DATA_EX

typedef union _SENSE_DATA_EX * PSENSE_DATA_EX

◆ PSLOT_TABLE_INFORMATION

◆ PSTOR_ADDR_BTL8

◆ PSTOR_ADDRESS

◆ PTAPE_POSITION_DATA

◆ PTRACK_INFORMATION

◆ PTRACK_INFORMATION2

◆ PTRACK_INFORMATION3

◆ PTRANSFER_COUNT_UNITS

◆ PTWO_BYTE

typedef union _TWO_BYTE * PTWO_BYTE

◆ PUNMAP_BLOCK_DESCRIPTOR

◆ PUNMAP_LIST_HEADER

◆ PVPD_ASSOCIATION

◆ PVPD_ATA_INFORMATION_PAGE

◆ PVPD_BLOCK_DEVICE_CHARACTERISTICS_PAGE

◆ PVPD_BLOCK_LIMITS_PAGE

◆ PVPD_CODE_SET

◆ PVPD_IDENTIFICATION_DESCRIPTOR

◆ PVPD_IDENTIFICATION_PAGE

◆ PVPD_IDENTIFIER_TYPE

◆ PVPD_LOGICAL_BLOCK_PROVISIONING_PAGE

◆ PVPD_MEDIA_SERIAL_NUMBER_PAGE

◆ PVPD_SERIAL_NUMBER_PAGE

◆ PVPD_SUPPORTED_PAGES_PAGE

◆ PVPD_THIRD_PARTY_COPY_PAGE

◆ PVPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGE

◆ PWINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR

◆ PWRITE_USING_TOKEN_HEADER

◆ READ_BLOCK_LIMITS_DATA

◆ READ_BUFFER_CAPACITY_DATA

◆ READ_CAPACITY16_DATA

◆ READ_CAPACITY_DATA

◆ READ_CAPACITY_DATA_EX

◆ READ_DVD_STRUCTURES_HEADER

◆ SCSI_EXTENDED_MESSAGE

◆ SCSI_SENSE_DESCRIPTOR_ATA_STATUS_RETURN

◆ SCSI_SENSE_DESCRIPTOR_BLOCK_COMMAND

◆ SCSI_SENSE_DESCRIPTOR_HEADER

◆ SCSI_SENSE_DESCRIPTOR_INFORMATION

◆ SCSI_SENSE_OPTIONS

Definition at line 3836 of file scsi.h.

◆ SENSE_DATA

◆ SENSE_DATA_EX

◆ SLOT_TABLE_INFORMATION

◆ STOR_ADDR_BTL8

◆ STOR_ADDRESS

◆ TAPE_POSITION_DATA

◆ TRACK_INFORMATION

◆ TRACK_INFORMATION2

◆ TRACK_INFORMATION3

◆ TRANSFER_COUNT_UNITS

◆ TWO_BYTE

typedef union _TWO_BYTE TWO_BYTE

◆ UNMAP_BLOCK_DESCRIPTOR

◆ UNMAP_LIST_HEADER

◆ VPD_ASSOCIATION

◆ VPD_ATA_INFORMATION_PAGE

◆ VPD_BLOCK_DEVICE_CHARACTERISTICS_PAGE

◆ VPD_BLOCK_LIMITS_PAGE

◆ VPD_CODE_SET

◆ VPD_IDENTIFICATION_DESCRIPTOR

◆ VPD_IDENTIFICATION_PAGE

◆ VPD_IDENTIFIER_TYPE

◆ VPD_LOGICAL_BLOCK_PROVISIONING_PAGE

◆ VPD_MEDIA_SERIAL_NUMBER_PAGE

◆ VPD_SERIAL_NUMBER_PAGE

◆ VPD_SUPPORTED_PAGES_PAGE

◆ VPD_THIRD_PARTY_COPY_PAGE

◆ VPD_ZONED_BLOCK_DEVICE_CHARACTERISTICS_PAGE

◆ WINDOWS_BLOCK_DEVICE_TOKEN_LIMITS_DESCRIPTOR

Enumeration Type Documentation

◆ _OPERATION_STATUS

Enumerator
OPERATION_COMPLETED_WITH_SUCCESS 
OPERATION_COMPLETED_WITH_ERROR 
OPERATION_COMPLETED_WITH_RESIDUAL_DATA 
OPERATION_IN_PROGRESS_IN_FOREGROUND 
OPERATION_IN_PROGRESS_IN_BACKGROUND 
OPERATION_TERMINATED 

Definition at line 3651 of file scsi.h.

3651 {
enum _OPERATION_STATUS OPERATION_STATUS
@ OPERATION_IN_PROGRESS_IN_FOREGROUND
Definition: scsi.h:3655
@ OPERATION_IN_PROGRESS_IN_BACKGROUND
Definition: scsi.h:3656
@ OPERATION_COMPLETED_WITH_SUCCESS
Definition: scsi.h:3652
@ OPERATION_COMPLETED_WITH_ERROR
Definition: scsi.h:3653
@ OPERATION_COMPLETED_WITH_RESIDUAL_DATA
Definition: scsi.h:3654
@ OPERATION_TERMINATED
Definition: scsi.h:3657
enum _OPERATION_STATUS * POPERATION_STATUS

◆ _TRANSFER_COUNT_UNITS

Enumerator
TRANSFER_COUNT_UNITS_BYTES 
TRANSFER_COUNT_UNITS_KIBIBYTES 
TRANSFER_COUNT_UNITS_MEBIBYTES 
TRANSFER_COUNT_UNITS_GIBIBYTES 
TRANSFER_COUNT_UNITS_TEBIBYTES 
TRANSFER_COUNT_UNITS_PEBIBYTES 
TRANSFER_COUNT_UNITS_EXBIBYTES 
TRANSFER_COUNT_UNITS_NUMBER_BLOCKS 

Definition at line 3660 of file scsi.h.

3660 {
enum _TRANSFER_COUNT_UNITS * PTRANSFER_COUNT_UNITS
enum _TRANSFER_COUNT_UNITS TRANSFER_COUNT_UNITS
@ TRANSFER_COUNT_UNITS_PEBIBYTES
Definition: scsi.h:3666
@ TRANSFER_COUNT_UNITS_GIBIBYTES
Definition: scsi.h:3664
@ TRANSFER_COUNT_UNITS_KIBIBYTES
Definition: scsi.h:3662
@ TRANSFER_COUNT_UNITS_NUMBER_BLOCKS
Definition: scsi.h:3668
@ TRANSFER_COUNT_UNITS_TEBIBYTES
Definition: scsi.h:3665
@ TRANSFER_COUNT_UNITS_EXBIBYTES
Definition: scsi.h:3667
@ TRANSFER_COUNT_UNITS_MEBIBYTES
Definition: scsi.h:3663
@ TRANSFER_COUNT_UNITS_BYTES
Definition: scsi.h:3661

◆ _VPD_ASSOCIATION

Enumerator
VpdAssocDevice 
VpdAssocPort 
VpdAssocTarget 
VpdAssocReserved1 
VpdAssocReserved2 
VpdAssocDevice 
VpdAssocPort 
VpdAssocTarget 
VpdAssocReserved1 
VpdAssocReserved2 

Definition at line 2446 of file scsi.h.

2446 {
2447 VpdAssocDevice = 0,
2448 VpdAssocPort = 1,
2449 VpdAssocTarget = 2,
@ VpdAssocPort
Definition: scsi.h:2448
@ VpdAssocTarget
Definition: scsi.h:2449
@ VpdAssocReserved1
Definition: scsi.h:2450
@ VpdAssocDevice
Definition: scsi.h:2447
@ VpdAssocReserved2
Definition: scsi.h:2451
enum _VPD_ASSOCIATION * PVPD_ASSOCIATION
enum _VPD_ASSOCIATION VPD_ASSOCIATION

◆ _VPD_CODE_SET

Enumerator
VpdCodeSetReserved 
VpdCodeSetBinary 
VpdCodeSetAscii 
VpdCodeSetUTF8 
VpdCodeSetReserved 
VpdCodeSetBinary 
VpdCodeSetAscii 
VpdCodeSetUTF8 

Definition at line 2439 of file scsi.h.

2439 {
2441 VpdCodeSetBinary = 1,
2442 VpdCodeSetAscii = 2,
2443 VpdCodeSetUTF8 = 3
enum _VPD_CODE_SET VPD_CODE_SET
enum _VPD_CODE_SET * PVPD_CODE_SET
@ VpdCodeSetBinary
Definition: scsi.h:2441
@ VpdCodeSetReserved
Definition: scsi.h:2440
@ VpdCodeSetAscii
Definition: scsi.h:2442
@ VpdCodeSetUTF8
Definition: scsi.h:2443

◆ _VPD_IDENTIFIER_TYPE

Enumerator
VpdIdentifierTypeVendorSpecific 
VpdIdentifierTypeVendorId 
VpdIdentifierTypeEUI64 
VpdIdentifierTypeFCPHName 
VpdIdentifierTypePortRelative 
VpdIdentifierTypeTargetPortGroup 
VpdIdentifierTypeLogicalUnitGroup 
VpdIdentifierTypeMD5LogicalUnitId 
VpdIdentifierTypeSCSINameString 
VpdIdentifierTypeVendorSpecific 
VpdIdentifierTypeVendorId 
VpdIdentifierTypeEUI64 
VpdIdentifierTypeFCPHName 
VpdIdentifierTypePortRelative 
VpdIdentifierTypeTargetPortGroup 
VpdIdentifierTypeLogicalUnitGroup 
VpdIdentifierTypeMD5LogicalUnitId 
VpdIdentifierTypeSCSINameString 

Definition at line 2454 of file scsi.h.

2454 {
enum _VPD_IDENTIFIER_TYPE VPD_IDENTIFIER_TYPE
@ VpdIdentifierTypeSCSINameString
Definition: scsi.h:2463
@ VpdIdentifierTypeVendorId
Definition: scsi.h:2456
@ VpdIdentifierTypeMD5LogicalUnitId
Definition: scsi.h:2462
@ VpdIdentifierTypeTargetPortGroup
Definition: scsi.h:2460
@ VpdIdentifierTypeLogicalUnitGroup
Definition: scsi.h:2461
@ VpdIdentifierTypeFCPHName
Definition: scsi.h:2458
@ VpdIdentifierTypePortRelative
Definition: scsi.h:2459
@ VpdIdentifierTypeEUI64
Definition: scsi.h:2457
@ VpdIdentifierTypeVendorSpecific
Definition: scsi.h:2455
enum _VPD_IDENTIFIER_TYPE * PVPD_IDENTIFIER_TYPE

Function Documentation

◆ _In_reads_()

_In_ UCHAR _In_reads_ ( TypeListCount  )

◆ _Out_writes_bytes_()

_In_ UCHAR _Out_writes_bytes_ ( OutBufferLength  )

◆ _Success_()

_Success_ ( return = FALSE)

Definition at line 1028 of file fsctrl.c.

3189{
3191
3192 PVPB Vpb = Vcb->Vpb;
3193 PVPB OldVpb;
3194
3195 BOOLEAN Remount = FALSE;
3196
3197 PAGED_CODE();
3198
3199 UNREFERENCED_PARAMETER( IrpContext );
3200
3201 //
3202 // Check whether we are looking for a device only Mvcb.
3203 //
3204
3205 for (Link = CdData.VcbQueue.Flink;
3206 Link != &CdData.VcbQueue;
3207 Link = Link->Flink) {
3208
3209 *OldVcb = CONTAINING_RECORD( Link, VCB, VcbLinks );
3210
3211 //
3212 // Skip ourselves.
3213 //
3214
3215 if (Vcb == *OldVcb) { continue; }
3216
3217 //
3218 // Look at the Vpb and state of the previous Vcb.
3219 //
3220
3221 OldVpb = (*OldVcb)->Vpb;
3222
3223 if ((OldVpb != Vpb) &&
3224 (OldVpb->RealDevice == Vpb->RealDevice) &&
3225 ((*OldVcb)->VcbCondition == VcbNotMounted)) {
3226
3227 //
3228 // If the current disk is a raw disk then it can match a previous music or
3229 // raw disk.
3230 //
3231
3232 if (FlagOn( Vcb->VcbState, VCB_STATE_AUDIO_DISK)) {
3233
3234 if (FlagOn( (*OldVcb)->VcbState, VCB_STATE_AUDIO_DISK )) {
3235
3236 //
3237 // If we have both TOC then fail the remount if the lengths
3238 // are different or they don't match.
3239 //
3240
3241 if ((Vcb->TocLength != (*OldVcb)->TocLength) ||
3242 ((Vcb->TocLength != 0) &&
3243 !RtlEqualMemory( Vcb->CdromToc,
3244 (*OldVcb)->CdromToc,
3245 Vcb->TocLength ))) {
3246
3247 continue;
3248 }
3249
3250 Remount = TRUE;
3251 break;
3252 }
3253
3254 //
3255 // The current disk is not a raw disk. Go ahead and compare
3256 // serial numbers, volume label and TOC.
3257 //
3258
3259 }
3260 else if ((OldVpb->SerialNumber == Vpb->SerialNumber) &&
3261 (Vcb->TocLength == (*OldVcb)->TocLength) &&
3262 ((Vcb->TocLength == 0) || RtlEqualMemory( Vcb->CdromToc,
3263 (*OldVcb)->CdromToc,
3264 Vcb->TocLength )) &&
3265 (Vpb->VolumeLabelLength == OldVpb->VolumeLabelLength) &&
3266 (RtlEqualMemory( OldVpb->VolumeLabel,
3267 Vpb->VolumeLabel,
3268 Vpb->VolumeLabelLength ))) {
3269 //
3270 // Remember the old Vcb. Then set the return value to
3271 // TRUE and break.
3272 //
3273
3274 Remount = TRUE;
3275 break;
3276 }
3277 }
3278 }
3279
3280 return Remount;
3281}
#define PAGED_CODE()
unsigned char BOOLEAN
CD_DATA CdData
Definition: cddata.c:42
#define VCB_STATE_AUDIO_DISK
Definition: cdstruc.h:712
@ VcbNotMounted
Definition: cdstruc.h:490
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define FlagOn(_F, _SF)
Definition: ext2fs.h:179
IN OUT PVCB IN PDEVICE_OBJECT IN PVPB Vpb
Definition: fatprocs.h:1676
#define RtlEqualMemory(dst, src, len)
Definition: kdvm.h:18
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define Vcb
Definition: cdprocs.h:1415
LIST_ENTRY VcbQueue
Definition: cdstruc.h:334
Definition: typedefs.h:120
struct _LIST_ENTRY * Flink
Definition: typedefs.h:121
Definition: cdstruc.h:498
Definition: iotypes.h:189
WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH/sizeof(WCHAR)]
Definition: iotypes.h:198
USHORT VolumeLabelLength
Definition: iotypes.h:193
ULONG SerialNumber
Definition: iotypes.h:196
struct _DEVICE_OBJECT * RealDevice
Definition: iotypes.h:195
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
static int Link(const char **args)
Definition: vfdcmd.c:2414

◆ if() [1/11]

if ( IsDescriptorSenseDataFormatSenseInfoBuffer)

Definition at line 3900 of file scsi.h.

3901 {
3902 return FALSE;
3903 }
return FALSE
Definition: scsi.h:4121

◆ if() [2/11]

if ( Buffer  = NULL || BufferLength == 0 || TypeList == NULL || TypeListCount == 0 || OutType == NULL || OutBuffer == NULL || OutBufferLength == NULL)

Definition at line 4080 of file scsi.h.

4082 {
4083 return FALSE;
4084 }

◆ if() [3/11]

if ( descriptor->Header.AdditionalLength !  = additionalLength)

Definition at line 3961 of file scsi.h.

3962 {
3963 return FALSE;
3964 }

◆ if() [4/11]

Definition at line 3953 of file scsi.h.

3954 {
3955 return FALSE;
3956 }

◆ if() [5/11]

if ( descriptor->  Valid = = 0)

Definition at line 3966 of file scsi.h.

3967 {
3968 return FALSE;
3969 }

◆ if() [6/11]

if ( )

Definition at line 3945 of file scsi.h.

3947 {
3948 return FALSE;
3949 }

◆ if() [7/11]

if ( IsDescriptorSenseDataFormat(SenseInfoBuffer)  )

Definition at line 3859 of file scsi.h.

3860 {
3861 succeed = ScsiGetDescriptorSenseKeyAndCodes(SenseInfoBuffer, SenseInfoBufferLength, SenseKey,
3863 }
_In_ UCHAR _Out_opt_ PUCHAR _Out_opt_ PUCHAR _Out_opt_ PUCHAR AdditionalSenseCodeQualifier
Definition: scsi.h:3748
return succeed
Definition: scsi.h:3736
_In_ UCHAR SenseInfoBufferLength
Definition: scsi.h:3705
_In_ UCHAR _Out_opt_ PUCHAR _Out_opt_ PUCHAR AdditionalSenseCode
Definition: scsi.h:3746
_In_ UCHAR _Out_opt_ PUCHAR SenseKey
Definition: scsi.h:3745

◆ if() [8/11]

Definition at line 3812 of file scsi.h.

3813 {
3814
3815 if (SenseKey)
3816 {
3817 *SenseKey = descriptorSenseData->SenseKey;
3818 }
3819
3821 {
3822 *AdditionalSenseCode = descriptorSenseData->AdditionalSenseCode;
3823 }
3824
3826 {
3827 *AdditionalSenseCodeQualifier = descriptorSenseData->AdditionalSenseCodeQualifier;
3828 }
3829
3830 succeed = TRUE;
3831 }
#define NULL
Definition: types.h:112
return TRUE
Definition: scsi.h:3971
descriptorSenseData
Definition: scsi.h:3905

◆ if() [9/11]

if ( RTL_CONTAINS_FIELD(fixedSenseData, SenseInfoBufferLength, AdditionalSenseLength)  )

Definition at line 3758 of file scsi.h.

3759 {
3760
3761 dataLength = fixedSenseData->AdditionalSenseLength +
3762 RTL_SIZEOF_THROUGH_FIELD(FIXED_SENSE_DATA, AdditionalSenseLength);
3763
3765 {
3767 }
3768
3769 if (SenseKey != NULL)
3770 {
3771 *SenseKey = fixedSenseData->SenseKey;
3772 }
3773
3775 {
3777 ? fixedSenseData->AdditionalSenseCode
3778 : 0;
3779 }
3780
3782 {
3785 ? fixedSenseData->AdditionalSenseCodeQualifier
3786 : 0;
3787 }
3788
3789 succeed = TRUE;
3790 }
#define RTL_CONTAINS_FIELD(Struct, Size, Field)
Definition: ntbasedef.h:683
#define RTL_SIZEOF_THROUGH_FIELD(type, field)
Definition: ntbasedef.h:680
ULONG dataLength
Definition: scsi.h:3751

◆ if() [10/11]

if ( RTL_CONTAINS_FIELD(senseInfoBuffer, SenseInfoBufferLength, AdditionalSenseLength)  )

Definition at line 3720 of file scsi.h.

3721 {
3722
3725 {
3726
3728 RTL_SIZEOF_THROUGH_FIELD(FIXED_SENSE_DATA, AdditionalSenseLength);
3729
3731
3732 succeed = TRUE;
3733 }
3734 }
_In_ UCHAR _Out_ UCHAR * TotalByteCountIndicated
Definition: scsi.h:3707
PFIXED_SENSE_DATA senseInfoBuffer
Definition: scsi.h:3710
UCHAR byteCount
Definition: scsi.h:3709
#define MAX_SENSE_BUFFER_SIZE
Definition: scsi.h:598
UCHAR AdditionalSenseLength
Definition: cdrw_hw.h:1173

◆ if() [11/11]

if ( SenseInfoBuffer  = NULL || SenseInfoBufferLength == 0 || TotalByteCountIndicated == NULL)

Definition at line 3712 of file scsi.h.

3713 {
3714
3715 return FALSE;
3716 }

◆ while()

while ( remainingBufferLength >=  sizeofSCSI_SENSE_DESCRIPTOR_HEADER)

Definition at line 4093 of file scsi.h.

4094 {
4095 for (i = 0; i < TypeListCount; i++)
4096 {
4097 type = TypeList[i];
4098
4100 {
4103 *OutType = type;
4104 return TRUE;
4105 }
4106 }
4107
4109
4111 {
4114 }
4115 else
4116 {
4117 break;
4118 }
4119 }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
ULONG i
Definition: scsi.h:4077
#define ScsiGetSenseDescriptorLength(DescriptorBuffer)
Definition: scsi.h:3678
remainingBuffer
Definition: scsi.h:4090
UCHAR remainingBufferLength
Definition: scsi.h:4075
_In_ UCHAR _In_ ULONG _Out_ PUCHAR OutType
Definition: scsi.h:4070
_In_ UCHAR _In_ ULONG _Out_ PUCHAR _Outptr_result_bytebuffer_ OutBufferLength PVOID * OutBuffer
Definition: scsi.h:4071
UCHAR descriptorLength
Definition: scsi.h:4078
_In_ UCHAR _In_ UCHAR OutBufferLength
Definition: scsi.h:4016
UCHAR type
Definition: scsi.h:4076
_In_ UCHAR _In_ ULONG TypeListCount
Definition: scsi.h:4069
void * PVOID
Definition: typedefs.h:50
_In_ ULONG _In_ PVOID _In_ LONG DescriptorType
Definition: usbdlib.h:160

Variable Documentation

◆ additionalLength

UCHAR additionalLength
Initial value:

Definition at line 3943 of file scsi.h.

◆ AdditionalSenseCode

◆ additionalSenseCode

◆ AdditionalSenseCodeQualifier

Initial value:
{
PFIXED_SENSE_DATA fixedSenseData = (PFIXED_SENSE_DATA)SenseInfoBuffer
struct _SENSE_DATA * PFIXED_SENSE_DATA
Definition: scsi.h:2723

Definition at line 3747 of file scsi.h.

Referenced by if(), SenseInfoInterpret(), SenseInfoInterpretForZPODD(), and SenseInfoInterpretRefineByScsiCommand().

◆ additionalSenseCodeQualifier

UCHAR additionalSenseCodeQualifier = 0

Definition at line 4021 of file scsi.h.

Referenced by ClasspPowerDownCompletion().

◆ BufferLength

Definition at line 4067 of file scsi.h.

◆ byteCount

UCHAR byteCount = 0

Definition at line 3709 of file scsi.h.

Referenced by convertHexCSVToHex(), FxDmaTransactionBase::GetTransferInfo(), and if().

◆ dataLength

◆ descriptor

◆ DescriptorBuffer

* DescriptorBuffer = NULL

Definition at line 3884 of file scsi.h.

Referenced by USBD_ParseDescriptors().

◆ DescriptorBufferLength

_In_ UCHAR DescriptorBufferLength
Initial value:

Definition at line 3885 of file scsi.h.

◆ descriptorLength

UCHAR descriptorLength

Definition at line 4078 of file scsi.h.

Referenced by ClassInterpretSenseInfo(), ClasspGetBlockDeviceTokenLimitsInfo(), and while().

◆ descriptorSenseData

descriptorSenseData = (PDESCRIPTOR_SENSE_DATA)SenseInfoBuffer

Definition at line 3905 of file scsi.h.

Referenced by if().

◆ else

else
Initial value:
{
IsFixedSenseDataFormat(SenseInfoBuffer))
{
succeed = ScsiGetFixedSenseKeyAndCodes(SenseInfoBuffer, SenseInfoBufferLength, SenseKey,
}
}
return succeed
#define IsFixedSenseDataFormat(SenseInfoBuffer)
Definition: scsi.h:3681
#define SCSI_SENSE_OPTIONS_FIXED_FORMAT_IF_UNKNOWN_FORMAT_INDICATED
Definition: scsi.h:3839
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3534

Definition at line 3864 of file scsi.h.

◆ FALSE

return FALSE

Definition at line 4121 of file scsi.h.

Referenced by if().

◆ i

ULONG i

Definition at line 4077 of file scsi.h.

Referenced by while().

◆ Options

Definition at line 3847 of file scsi.h.

◆ outBuffer

◆ OutBuffer

◆ OutBufferLength

* OutBufferLength
Initial value:

Definition at line 4015 of file scsi.h.

Referenced by while().

◆ OutType

* OutType = 0

Definition at line 4070 of file scsi.h.

Referenced by while().

◆ remainingBuffer

remainingBuffer = (PUCHAR)Buffer

Definition at line 4090 of file scsi.h.

Referenced by while().

◆ remainingBufferLength

remainingBufferLength = BufferLength

Definition at line 4075 of file scsi.h.

Referenced by while().

◆ senseInfoBuffer

◆ SenseInfoBufferLength

◆ SenseKey

Definition at line 3745 of file scsi.h.

Referenced by if(), and SenseInfoInterpretBySenseKey().

◆ senseKey

◆ succeed

return succeed = FALSE

Definition at line 3736 of file scsi.h.

Referenced by FileMonikerImpl_Load(), and if().

◆ TotalByteCountIndicated

_In_ UCHAR _Out_ UCHAR* TotalByteCountIndicated
Initial value:

Definition at line 3706 of file scsi.h.

Referenced by if().

◆ TRUE

return TRUE

Definition at line 3971 of file scsi.h.

Referenced by if(), and while().

◆ type

Definition at line 4076 of file scsi.h.

Referenced by while().

◆ TypeListCount

_In_ UCHAR _In_ ULONG TypeListCount

Definition at line 4069 of file scsi.h.

Referenced by while().

◆ validSense