ReactOS  0.4.14-dev-317-g96040ec
storport.h File Reference
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for storport.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SCSI_REQUEST_BLOCK
 
struct  _SCSI_WMI_REQUEST_BLOCK
 
struct  _SCSI_POWER_REQUEST_BLOCK
 
struct  _STOR_DEVICE_CAPABILITIES
 
struct  _SCSI_PNP_REQUEST_BLOCK
 
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
 
union  _EIGHT_BYTE
 
union  _FOUR_BYTE
 
union  _TWO_BYTE
 
struct  _INQUIRYDATA
 
struct  _VPD_MEDIA_SERIAL_NUMBER_PAGE
 
struct  _VPD_SERIAL_NUMBER_PAGE
 
struct  _VPD_IDENTIFICATION_DESCRIPTOR
 
struct  _VPD_IDENTIFICATION_PAGE
 
struct  _VPD_SUPPORTED_PAGES_PAGE
 
struct  _READ_CAPACITY_DATA
 
struct  _READ_CAPACITY_DATA_EX
 
struct  _MODE_PARAMETER_HEADER
 
struct  _MODE_PARAMETER_HEADER10
 
struct  _MODE_PARAMETER_BLOCK
 
struct  _LUN_LIST
 
struct  _SENSE_DATA
 
struct  _ACCESS_RANGE
 
struct  _MEMORY_REGION
 
struct  _PORT_CONFIGURATION_INFORMATION
 
struct  _STOR_SCATTER_GATHER_ELEMENT
 
struct  _STOR_SCATTER_GATHER_LIST
 
struct  _DPC_BUFFER
 
struct  _STOR_DPC
 
struct  _STOR_LOCK_HANDLE
 
struct  _STOR_LOG_EVENT_DETAILS
 
struct  _PERF_CONFIGURATION_DATA
 
struct  _STARTIO_PERFORMANCE_PARAMETERS
 
struct  _MESSAGE_INTERRUPT_INFORMATION
 
struct  _STORPORT_EXTENDED_FUNCTIONS
 
struct  _HW_INITIALIZATION_DATA
 

Macros

#define STORPORT_API   DECLSPEC_IMPORT
 
#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_CONNECTED   0x00
 
#define CDB6GENERIC_LENGTH   6
 
#define CDB10GENERIC_LENGTH   10
 
#define CDB12GENERIC_LENGTH   12
 
#define INQUIRYDATABUFFERSIZE   36
 
#define SENSE_BUFFER_SIZE   18
 
#define MAX_SENSE_BUFFER_SIZE   255
 
#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 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_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_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_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_RECEIVE_COPY_RESULTS   0x84
 
#define SCSIOP_ATA_PASSTHROUGH16   0x85
 
#define SCSIOP_ACCESS_CONTROL_IN   0x86
 
#define SCSIOP_ACCESS_CONTROL_OUT   0x87
 
#define SCSIOP_READ16   0x88
 
#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_READ_CAPACITY16   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_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_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 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 SETBITON   1
 
#define SETBITOFF   0
 
#define SP_RETURN_NOT_FOUND   0
 
#define SP_RETURN_FOUND   1
 
#define SP_RETURN_ERROR   2
 
#define SP_RETURN_BAD_CONFIG   3
 
#define SRB_FUNCTION_EXECUTE_SCSI   0x00
 
#define SRB_FUNCTION_CLAIM_DEVICE   0x01
 
#define SRB_FUNCTION_IO_CONTROL   0x02
 
#define SRB_FUNCTION_RECEIVE_EVENT   0x03
 
#define SRB_FUNCTION_RELEASE_QUEUE   0x04
 
#define SRB_FUNCTION_ATTACH_DEVICE   0x05
 
#define SRB_FUNCTION_RELEASE_DEVICE   0x06
 
#define SRB_FUNCTION_SHUTDOWN   0x07
 
#define SRB_FUNCTION_FLUSH   0x08
 
#define SRB_FUNCTION_ABORT_COMMAND   0x10
 
#define SRB_FUNCTION_RELEASE_RECOVERY   0x11
 
#define SRB_FUNCTION_RESET_BUS   0x12
 
#define SRB_FUNCTION_RESET_DEVICE   0x13
 
#define SRB_FUNCTION_TERMINATE_IO   0x14
 
#define SRB_FUNCTION_FLUSH_QUEUE   0x15
 
#define SRB_FUNCTION_REMOVE_DEVICE   0x16
 
#define SRB_FUNCTION_WMI   0x17
 
#define SRB_FUNCTION_LOCK_QUEUE   0x18
 
#define SRB_FUNCTION_UNLOCK_QUEUE   0x19
 
#define SRB_FUNCTION_RESET_LOGICAL_UNIT   0x20
 
#define SRB_FUNCTION_SET_LINK_TIMEOUT   0x21
 
#define SRB_FUNCTION_LINK_TIMEOUT_OCCURRED   0x22
 
#define SRB_FUNCTION_LINK_TIMEOUT_COMPLETE   0x23
 
#define SRB_FUNCTION_POWER   0x24
 
#define SRB_FUNCTION_PNP   0x25
 
#define SRB_FUNCTION_DUMP_POINTERS   0x26
 
#define SRB_STATUS_PENDING   0x00
 
#define SRB_STATUS_SUCCESS   0x01
 
#define SRB_STATUS_ABORTED   0x02
 
#define SRB_STATUS_ABORT_FAILED   0x03
 
#define SRB_STATUS_ERROR   0x04
 
#define SRB_STATUS_BUSY   0x05
 
#define SRB_STATUS_INVALID_REQUEST   0x06
 
#define SRB_STATUS_INVALID_PATH_ID   0x07
 
#define SRB_STATUS_NO_DEVICE   0x08
 
#define SRB_STATUS_TIMEOUT   0x09
 
#define SRB_STATUS_SELECTION_TIMEOUT   0x0A
 
#define SRB_STATUS_COMMAND_TIMEOUT   0x0B
 
#define SRB_STATUS_MESSAGE_REJECTED   0x0D
 
#define SRB_STATUS_BUS_RESET   0x0E
 
#define SRB_STATUS_PARITY_ERROR   0x0F
 
#define SRB_STATUS_REQUEST_SENSE_FAILED   0x10
 
#define SRB_STATUS_NO_HBA   0x11
 
#define SRB_STATUS_DATA_OVERRUN   0x12
 
#define SRB_STATUS_UNEXPECTED_BUS_FREE   0x13
 
#define SRB_STATUS_PHASE_SEQUENCE_FAILURE   0x14
 
#define SRB_STATUS_BAD_SRB_BLOCK_LENGTH   0x15
 
#define SRB_STATUS_REQUEST_FLUSHED   0x16
 
#define SRB_STATUS_INVALID_LUN   0x20
 
#define SRB_STATUS_INVALID_TARGET_ID   0x21
 
#define SRB_STATUS_BAD_FUNCTION   0x22
 
#define SRB_STATUS_ERROR_RECOVERY   0x23
 
#define SRB_STATUS_NOT_POWERED   0x24
 
#define SRB_STATUS_LINK_DOWN   0x25
 
#define SRB_STATUS_INTERNAL_ERROR   0x30
 
#define SRB_STATUS_QUEUE_FROZEN   0x40
 
#define SRB_STATUS_AUTOSENSE_VALID   0x80
 
#define SRB_STATUS(Status)   (Status & ~(SRB_STATUS_AUTOSENSE_VALID | SRB_STATUS_QUEUE_FROZEN))
 
#define SRB_FLAGS_QUEUE_ACTION_ENABLE   0x00000002
 
#define SRB_FLAGS_DISABLE_DISCONNECT   0x00000004
 
#define SRB_FLAGS_DISABLE_SYNCH_TRANSFER   0x00000008
 
#define SRB_FLAGS_BYPASS_FROZEN_QUEUE   0x00000010
 
#define SRB_FLAGS_DISABLE_AUTOSENSE   0x00000020
 
#define SRB_FLAGS_DATA_IN   0x00000040
 
#define SRB_FLAGS_DATA_OUT   0x00000080
 
#define SRB_FLAGS_NO_DATA_TRANSFER   0x00000000
 
#define SRB_FLAGS_UNSPECIFIED_DIRECTION   (SRB_FLAGS_DATA_IN | SRB_FLAGS_DATA_OUT)
 
#define SRB_FLAGS_NO_QUEUE_FREEZE   0x00000100
 
#define SRB_FLAGS_ADAPTER_CACHE_ENABLE   0x00000200
 
#define SRB_FLAGS_FREE_SENSE_BUFFER   0x00000400
 
#define SRB_FLAGS_IS_ACTIVE   0x00010000
 
#define SRB_FLAGS_ALLOCATED_FROM_ZONE   0x00020000
 
#define SRB_FLAGS_SGLIST_FROM_POOL   0x00040000
 
#define SRB_FLAGS_BYPASS_LOCKED_QUEUE   0x00080000
 
#define SRB_FLAGS_NO_KEEP_AWAKE   0x00100000
 
#define SRB_FLAGS_PORT_DRIVER_ALLOCSENSE   0x00200000
 
#define SRB_FLAGS_PORT_DRIVER_SENSEHASPORT   0x00400000
 
#define SRB_FLAGS_DONT_START_NEXT_PACKET   0x00800000
 
#define SRB_FLAGS_PORT_DRIVER_RESERVED   0x0F000000
 
#define SRB_FLAGS_CLASS_DRIVER_RESERVED   0xF0000000
 
#define SRB_SIMPLE_TAG_REQUEST   0x20
 
#define SRB_HEAD_OF_QUEUE_TAG_REQUEST   0x21
 
#define SRB_ORDERED_QUEUE_TAG_REQUEST   0x22
 
#define SRB_WMI_FLAGS_ADAPTER_REQUEST   0x01
 
#define SRB_POWER_FLAGS_ADAPTER_REQUEST   0x01
 
#define SRB_PNP_FLAGS_ADAPTER_REQUEST   0x01
 
#define STOR_MAP_NO_BUFFERS   (0)
 
#define STOR_MAP_ALL_BUFFERS   (1)
 
#define STOR_MAP_NON_READ_WRITE_BUFFERS   (2)
 
#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 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 REVERSE_BYTES_QUAD(Destination, Source)
 
#define REVERSE_BYTES(Destination, Source)
 
#define REVERSE_BYTES_SHORT(Destination, Source)
 
#define StorPortCopyMemory(Destination, Source, Length)   memcpy((Destination),(Source),(Length))
 
#define DebugPrint(x)
 

Typedefs

typedef enum _STOR_SYNCHRONIZATION_MODEL STOR_SYNCHRONIZATION_MODEL
 
typedef enum _STOR_DMA_WIDTH STOR_DMA_WIDTH
 
typedef enum _STOR_SPINLOCK STOR_SPINLOCK
 
typedef enum _SCSI_ADAPTER_CONTROL_TYPE SCSI_ADAPTER_CONTROL_TYPE
 
typedef enum _SCSI_ADAPTER_CONTROL_TYPEPSCSI_ADAPTER_CONTROL_TYPE
 
typedef enum _SCSI_ADAPTER_CONTROL_STATUS SCSI_ADAPTER_CONTROL_STATUS
 
typedef enum _SCSI_ADAPTER_CONTROL_STATUSPSCSI_ADAPTER_CONTROL_STATUS
 
typedef enum _SCSI_NOTIFICATION_TYPE SCSI_NOTIFICATION_TYPE
 
typedef enum _SCSI_NOTIFICATION_TYPEPSCSI_NOTIFICATION_TYPE
 
typedef enum _STOR_DEVICE_POWER_STATE STOR_DEVICE_POWER_STATE
 
typedef enum _STOR_DEVICE_POWER_STATEPSTOR_DEVICE_POWER_STATE
 
typedef enum _STOR_POWER_ACTION STOR_POWER_ACTION
 
typedef enum _STOR_POWER_ACTIONPSTOR_POWER_ACTION
 
typedef enum _STOR_PNP_ACTION STOR_PNP_ACTION
 
typedef enum _STOR_PNP_ACTIONPSTOR_PNP_ACTION
 
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 enum _STORPORT_FUNCTION_CODE STORPORT_FUNCTION_CODE
 
typedef enum _STORPORT_FUNCTION_CODEPSTORPORT_FUNCTION_CODE
 
typedef enum _STOR_EVENT_ASSOCIATION_ENUM STOR_EVENT_ASSOCIATION_ENUM
 
typedef enum _GETSGSTATUS GETSGSTATUS
 
typedef enum _GETSGSTATUSPGETSGSTATUS
 
typedef struct _SCSI_REQUEST_BLOCK SCSI_REQUEST_BLOCK
 
typedef struct _SCSI_REQUEST_BLOCKPSCSI_REQUEST_BLOCK
 
typedef struct _SCSI_WMI_REQUEST_BLOCK SCSI_WMI_REQUEST_BLOCK
 
typedef struct _SCSI_WMI_REQUEST_BLOCKPSCSI_WMI_REQUEST_BLOCK
 
typedef struct _SCSI_POWER_REQUEST_BLOCK SCSI_POWER_REQUEST_BLOCK
 
typedef struct _SCSI_POWER_REQUEST_BLOCKPSCSI_POWER_REQUEST_BLOCK
 
typedef struct _STOR_DEVICE_CAPABILITIES STOR_DEVICE_CAPABILITIES
 
typedef struct _STOR_DEVICE_CAPABILITIESPSTOR_DEVICE_CAPABILITIES
 
typedef struct _SCSI_PNP_REQUEST_BLOCK SCSI_PNP_REQUEST_BLOCK
 
typedef struct _SCSI_PNP_REQUEST_BLOCKPSCSI_PNP_REQUEST_BLOCK
 
typedef union _CDB CDB
 
typedef union _CDBPCDB
 
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 _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 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_SUPPORTED_PAGES_PAGE VPD_SUPPORTED_PAGES_PAGE
 
typedef struct _VPD_SUPPORTED_PAGES_PAGEPVPD_SUPPORTED_PAGES_PAGE
 
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 _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 _LUN_LIST LUN_LIST
 
typedef struct _LUN_LISTPLUN_LIST
 
typedef struct _SENSE_DATA SENSE_DATA
 
typedef struct _SENSE_DATAPSENSE_DATA
 
typedef PHYSICAL_ADDRESS STOR_PHYSICAL_ADDRESS
 
typedef struct _ACCESS_RANGE ACCESS_RANGE
 
typedef struct _ACCESS_RANGEPACCESS_RANGE
 
typedef struct _MEMORY_REGION MEMORY_REGION
 
typedef struct _MEMORY_REGIONPMEMORY_REGION
 
typedef struct _PORT_CONFIGURATION_INFORMATION PORT_CONFIGURATION_INFORMATION
 
typedef struct _PORT_CONFIGURATION_INFORMATIONPPORT_CONFIGURATION_INFORMATION
 
typedef struct _STOR_SCATTER_GATHER_ELEMENT STOR_SCATTER_GATHER_ELEMENT
 
typedef struct _STOR_SCATTER_GATHER_ELEMENTPSTOR_SCATTER_GATHER_ELEMENT
 
typedef struct _STOR_SCATTER_GATHER_LIST STOR_SCATTER_GATHER_LIST
 
typedef struct _STOR_SCATTER_GATHER_LISTPSTOR_SCATTER_GATHER_LIST
 
typedef struct _DPC_BUFFER DPC_BUFFER
 
typedef struct _STOR_DPC STOR_DPC
 
typedef struct _STOR_DPCPSTOR_DPC
 
typedef struct _STOR_LOCK_HANDLE STOR_LOCK_HANDLE
 
typedef struct _STOR_LOCK_HANDLEPSTOR_LOCK_HANDLE
 
typedef struct _STOR_LOG_EVENT_DETAILS STOR_LOG_EVENT_DETAILS
 
typedef struct _STOR_LOG_EVENT_DETAILSPSTOR_LOG_EVENT_DETAILS
 
typedef struct _PERF_CONFIGURATION_DATA PERF_CONFIGURATION_DATA
 
typedef struct _PERF_CONFIGURATION_DATAPPERF_CONFIGURATION_DATA
 
typedef struct _STARTIO_PERFORMANCE_PARAMETERS STARTIO_PERFORMANCE_PARAMETERS
 
typedef struct _STARTIO_PERFORMANCE_PARAMETERSPSTARTIO_PERFORMANCE_PARAMETERS
 
typedef struct _MESSAGE_INTERRUPT_INFORMATION MESSAGE_INTERRUPT_INFORMATION
 
typedef struct _MESSAGE_INTERRUPT_INFORMATIONPMESSAGE_INTERRUPT_INFORMATION
 
typedef BOOLEAN(NTAPIPHW_INITIALIZE) (_In_ PVOID DeviceExtension)
 
typedef BOOLEAN(NTAPIPHW_BUILDIO) (_In_ PVOID DeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb)
 
typedef BOOLEAN(NTAPIPHW_STARTIO) (_In_ PVOID DeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb)
 
typedef BOOLEAN(NTAPIPHW_INTERRUPT) (_In_ PVOID DeviceExtension)
 
typedef VOID(NTAPIPHW_TIMER) (_In_ PVOID DeviceExtension)
 
typedef VOID(NTAPIPHW_DMA_STARTED) (_In_ PVOID DeviceExtension)
 
typedef ULONG(NTAPIPHW_FIND_ADAPTER) (IN PVOID DeviceExtension, IN PVOID HwContext, IN PVOID BusInformation, IN PCHAR ArgumentString, IN OUT PPORT_CONFIGURATION_INFORMATION ConfigInfo, OUT PBOOLEAN Again)
 
typedef BOOLEAN(NTAPIPHW_RESET_BUS) (IN PVOID DeviceExtension, IN ULONG PathId)
 
typedef BOOLEAN(NTAPIPHW_ADAPTER_STATE) (IN PVOID DeviceExtension, IN PVOID Context, IN BOOLEAN SaveState)
 
typedef SCSI_ADAPTER_CONTROL_STATUS(NTAPIPHW_ADAPTER_CONTROL) (IN PVOID DeviceExtension, IN SCSI_ADAPTER_CONTROL_TYPE ControlType, IN PVOID Parameters)
 
typedef BOOLEAN(* PHW_PASSIVE_INITIALIZE_ROUTINE) (_In_ PVOID DeviceExtension)
 
typedef VOID(* PHW_DPC_ROUTINE) (_In_ PSTOR_DPC Dpc, _In_ PVOID HwDeviceExtension, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2)
 
typedef _In_ PVOID Context
 
typedef STOR_SYNCHRONIZED_ACCESS * PSTOR_SYNCHRONIZED_ACCESS
 
typedef VOID(NTAPIPpostScaterGatherExecute) (_In_ PVOID *DeviceObject, _In_ PVOID *Irp, _In_ PSTOR_SCATTER_GATHER_LIST ScatterGather, _In_ PVOID Context)
 
typedef BOOLEAN(NTAPIPStorPortGetMessageInterruptInformation) (_In_ PVOID HwDeviceExtension, _In_ ULONG MessageId, _Out_ PMESSAGE_INTERRUPT_INFORMATION InterruptInfo)
 
typedef VOID(NTAPIPStorPortPutScatterGatherList) (_In_ PVOID HwDeviceExtension, _In_ PSTOR_SCATTER_GATHER_LIST ScatterGatherList, _In_ BOOLEAN WriteToDevice)
 
typedef GETSGSTATUS(NTAPIPStorPortBuildScatterGatherList) (_In_ PVOID HwDeviceExtension, _In_ PVOID Mdl, _In_ PVOID CurrentVa, _In_ ULONG Length, _In_ PpostScaterGatherExecute ExecutionRoutine, _In_ PVOID Context, _In_ BOOLEAN WriteToDevice, _Inout_ PVOID ScatterGatherBuffer, _In_ ULONG ScatterGatherBufferLength)
 
typedef VOID(NTAPIPStorPortFreePool) (_In_ PVOID PMemory, _In_ PVOID HwDeviceExtension, _In_opt_ PVOID PMdl)
 
typedef PVOID(NTAPIPStorPortAllocatePool) (_In_ ULONG NumberOfBytes, _In_ ULONG Tag, _In_ PVOID HwDeviceExtension, _Out_ PVOID *PMdl)
 
typedef PVOID(NTAPIPStorPortGetSystemAddress) (_In_ PSCSI_REQUEST_BLOCK Srb)
 
typedef struct _STORPORT_EXTENDED_FUNCTIONS STORPORT_EXTENDED_FUNCTIONS
 
typedef struct _STORPORT_EXTENDED_FUNCTIONSPSTORPORT_EXTENDED_FUNCTIONS
 
typedef struct _HW_INITIALIZATION_DATA HW_INITIALIZATION_DATA
 
typedef struct _HW_INITIALIZATION_DATAPHW_INITIALIZATION_DATA
 

Enumerations

enum  _STOR_SYNCHRONIZATION_MODEL { StorSynchronizeHalfDuplex, StorSynchronizeFullDuplex }
 
enum  _STOR_DMA_WIDTH { DmaUnknown, Dma32Bit, Dma64BitScatterGather, Dma64Bit }
 
enum  _STOR_SPINLOCK { DpcLock = 1, StartIoLock, InterruptLock }
 
enum  _SCSI_ADAPTER_CONTROL_TYPE {
  ScsiQuerySupportedControlTypes = 0, ScsiStopAdapter, ScsiRestartAdapter, ScsiSetBootConfig,
  ScsiSetRunningConfig, ScsiAdapterControlMax, MakeAdapterControlTypeSizeOfUlong = 0xffffffff, ScsiQuerySupportedControlTypes = 0,
  ScsiStopAdapter, ScsiRestartAdapter, ScsiSetBootConfig, ScsiSetRunningConfig,
  ScsiAdapterControlMax, MakeAdapterControlTypeSizeOfUlong = 0xffffffff, ScsiQuerySupportedControlTypes = 0, ScsiStopAdapter,
  ScsiRestartAdapter, ScsiSetBootConfig, ScsiSetRunningConfig, ScsiAdapterControlMax,
  MakeAdapterControlTypeSizeOfUlong = 0xffffffff
}
 
enum  _SCSI_ADAPTER_CONTROL_STATUS {
  ScsiAdapterControlSuccess = 0, ScsiAdapterControlUnsuccessful, ScsiAdapterControlSuccess = 0, ScsiAdapterControlUnsuccessful,
  ScsiAdapterControlSuccess = 0, ScsiAdapterControlUnsuccessful
}
 
enum  _SCSI_NOTIFICATION_TYPE {
  RequestComplete, NextRequest, NextLuRequest, ResetDetected,
  CallDisableInterrupts, CallEnableInterrupts, RequestTimerCall, BusChangeDetected,
  WMIEvent, WMIReregister, RequestComplete, NextRequest,
  NextLuRequest, ResetDetected, CallDisableInterrupts, CallEnableInterrupts,
  RequestTimerCall, BusChangeDetected, WMIEvent, WMIReregister,
  LinkUp, LinkDown, QueryTickCount, BufferOverrunDetected,
  TraceNotification, RequestComplete, NextRequest, NextLuRequest,
  ResetDetected, _obsolete1, _obsolete2, RequestTimerCall,
  BusChangeDetected, WMIEvent, WMIReregister, LinkUp,
  LinkDown, QueryTickCount, BufferOverrunDetected, TraceNotification,
  GetExtendedFunctionTable, EnablePassiveInitialization = 0x1000, InitializeDpc, IssueDpc,
  AcquireSpinLock, ReleaseSpinLock
}
 
enum  _STOR_DEVICE_POWER_STATE {
  StorPowerDeviceUnspecified = 0, StorPowerDeviceD0, StorPowerDeviceD1, StorPowerDeviceD2,
  StorPowerDeviceD3, StorPowerDeviceMaximum, StorPowerDeviceUnspecified = 0, StorPowerDeviceD0,
  StorPowerDeviceD1, StorPowerDeviceD2, StorPowerDeviceD3, StorPowerDeviceMaximum
}
 
enum  _STOR_POWER_ACTION {
  StorPowerActionNone = 0, StorPowerActionReserved, StorPowerActionSleep, StorPowerActionHibernate,
  StorPowerActionShutdown, StorPowerActionShutdownReset, StorPowerActionShutdownOff, StorPowerActionWarmEject,
  StorPowerActionNone = 0, StorPowerActionReserved, StorPowerActionSleep, StorPowerActionHibernate,
  StorPowerActionShutdown, StorPowerActionShutdownReset, StorPowerActionShutdownOff, StorPowerActionWarmEject
}
 
enum  _STOR_PNP_ACTION {
  StorStartDevice = 0x0, StorRemoveDevice = 0x2, StorStopDevice = 0x4, StorQueryCapabilities = 0x9,
  StorQueryResourceRequirements = 0xB, StorFilterResourceRequirements = 0xD, StorSurpriseRemoval = 0x17, StorStartDevice = 0x0,
  StorRemoveDevice = 0x2, StorStopDevice = 0x4, StorQueryCapabilities = 0x9, StorQueryResourceRequirements = 0xB,
  StorFilterResourceRequirements = 0xD, StorSurpriseRemoval = 0x17
}
 
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  _STORPORT_FUNCTION_CODE {
  ExtFunctionAllocatePool, ExtFunctionFreePool, ExtFunctionAllocateMdl, ExtFunctionFreeMdl,
  ExtFunctionBuildMdlForNonPagedPool, ExtFunctionGetSystemAddress, ExtFunctionGetOriginalMdl, ExtFunctionCompleteServiceIrp,
  ExtFunctionGetDeviceObjects, ExtFunctionBuildScatterGatherList, ExtFunctionPutScatterGatherList, ExtFunctionAcquireMSISpinLock,
  ExtFunctionReleaseMSISpinLock, ExtFunctionGetMessageInterruptInformation, ExtFunctionInitializePerformanceOptimizations, ExtFunctionGetStartIoPerformanceParameters,
  ExtFunctionLogSystemEvent, ExtFunctionGetCurrentProcessorNumber, ExtFunctionGetActiveGroupCount, ExtFunctionGetGroupAffinity,
  ExtFunctionGetActiveNodeCount, ExtFunctionGetNodeAffinity, ExtFunctionGetHighestNodeNumber, ExtFunctionGetLogicalProcessorRelationship,
  ExtFunctionAllocateContiguousMemorySpecifyCacheNode, ExtFunctionFreeContiguousMemorySpecifyCache
}
 
enum  _STOR_EVENT_ASSOCIATION_ENUM { StorEventAdapterAssociation = 0, StorEventLunAssociation, StorEventTargetAssociation, StorEventInvalidAssociation }
 
enum  _GETSGSTATUS { SG_ALLOCATED = 0, SG_BUFFER_TOO_SMALL }
 

Functions

typedef BOOLEAN (NTAPI STOR_SYNCHRONIZED_ACCESS)(_In_ PVOID HwDeviceExtension
 
STORPORT_API PUCHAR NTAPI StorPortAllocateRegistryBuffer (_In_ PVOID HwDeviceExtension, _In_ PULONG Length)
 
STORPORT_API BOOLEAN NTAPI StorPortBusy (_In_ PVOID HwDeviceExtension, _In_ ULONG RequestsToComplete)
 
STORPORT_API VOID NTAPI StorPortCompleteRequest (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ UCHAR SrbStatus)
 
STORPORT_API ULONG64 NTAPI StorPortConvertPhysicalAddressToUlong64 (_In_ STOR_PHYSICAL_ADDRESS Address)
 
STORPORT_API STOR_PHYSICAL_ADDRESS NTAPI StorPortConvertUlong64ToPhysicalAddress (_In_ ULONG64 UlongAddress)
 
STORPORT_API VOID __cdecl StorPortDebugPrint (_In_ ULONG DebugPrintLevel, _In_ PCCHAR DebugMessage,...)
 
STORPORT_API BOOLEAN NTAPI StorPortDeviceBusy (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ ULONG RequestsToComplete)
 
STORPORT_API BOOLEAN NTAPI StorPortDeviceReady (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun)
 
STORPORT_API VOID NTAPI StorPortFreeDeviceBase (_In_ PVOID HwDeviceExtension, _In_ PVOID MappedAddress)
 
STORPORT_API VOID NTAPI StorPortFreeRegistryBuffer (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Buffer)
 
STORPORT_API ULONG NTAPI StorPortGetBusData (_In_ PVOID DeviceExtension, _In_ ULONG BusDataType, _In_ ULONG SystemIoBusNumber, _In_ ULONG SlotNumber, _Out_ _When_(Length !=0, _Out_writes_bytes_(Length)) PVOID Buffer, _In_ ULONG Length)
 
STORPORT_API PVOID NTAPI StorPortGetDeviceBase (_In_ PVOID HwDeviceExtension, _In_ INTERFACE_TYPE BusType, _In_ ULONG SystemIoBusNumber, _In_ STOR_PHYSICAL_ADDRESS IoAddress, _In_ ULONG NumberOfBytes, _In_ BOOLEAN InIoSpace)
 
STORPORT_API PVOID NTAPI StorPortGetLogicalUnit (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun)
 
STORPORT_API STOR_PHYSICAL_ADDRESS NTAPI StorPortGetPhysicalAddress (_In_ PVOID HwDeviceExtension, _In_opt_ PSCSI_REQUEST_BLOCK Srb, _In_ PVOID VirtualAddress, _Out_ ULONG *Length)
 
STORPORT_API PSTOR_SCATTER_GATHER_LIST NTAPI StorPortGetScatterGatherList (_In_ PVOID DeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb)
 
STORPORT_API PSCSI_REQUEST_BLOCK NTAPI StorPortGetSrb (_In_ PVOID DeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ LONG QueueTag)
 
STORPORT_API PVOID NTAPI StorPortGetUncachedExtension (_In_ PVOID HwDeviceExtension, _In_ PPORT_CONFIGURATION_INFORMATION ConfigInfo, _In_ ULONG NumberOfBytes)
 
STORPORT_API PVOID NTAPI StorPortGetVirtualAddress (_In_ PVOID HwDeviceExtension, _In_ STOR_PHYSICAL_ADDRESS PhysicalAddress)
 
STORPORT_API ULONG NTAPI StorPortInitialize (_In_ PVOID Argument1, _In_ PVOID Argument2, _In_ PHW_INITIALIZATION_DATA HwInitializationData, _In_opt_ PVOID Unused)
 
STORPORT_API VOID NTAPI StorPortLogError (_In_ PVOID HwDeviceExtension, _In_opt_ PSCSI_REQUEST_BLOCK Srb, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ ULONG ErrorCode, _In_ ULONG UniqueId)
 
STORPORT_API VOID NTAPI StorPortMoveMemory (_Out_writes_bytes_(Length) PVOID WriteBuffer, _In_reads_bytes_(Length) PVOID ReadBuffer, _In_ ULONG Length)
 
STORPORT_API VOID __cdecl StorPortNotification (_In_ SCSI_NOTIFICATION_TYPE NotificationType, _In_ PVOID HwDeviceExtension,...)
 
STORPORT_API VOID NTAPI StorPortQuerySystemTime (_Out_ PLARGE_INTEGER CurrentTime)
 
STORPORT_API BOOLEAN NTAPI StorPortPause (_In_ PVOID HwDeviceExtension, _In_ ULONG TimeOut)
 
STORPORT_API BOOLEAN NTAPI StorPortPauseDevice (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ ULONG TimeOut)
 
STORPORT_API VOID NTAPI StorPortReadPortBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadPortBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadPortBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API UCHAR NTAPI StorPortReadPortUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port)
 
STORPORT_API ULONG NTAPI StorPortReadPortUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port)
 
STORPORT_API USHORT NTAPI StorPortReadPortUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port)
 
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API UCHAR NTAPI StorPortReadRegisterUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register)
 
STORPORT_API ULONG NTAPI StorPortReadRegisterUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register)
 
STORPORT_API USHORT NTAPI StorPortReadRegisterUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register)
 
STORPORT_API BOOLEAN NTAPI StorPortReady (_In_ PVOID HwDeviceExtension)
 
STORPORT_API BOOLEAN NTAPI StorPortRegistryRead (_In_ PVOID HwDeviceExtension, _In_ PUCHAR ValueName, _In_ ULONG Global, _In_ ULONG Type, _In_ PUCHAR Buffer, _In_ PULONG BufferLength)
 
STORPORT_API BOOLEAN NTAPI StorPortRegistryWrite (_In_ PVOID HwDeviceExtension, _In_ PUCHAR ValueName, _In_ ULONG Global, _In_ ULONG Type, _In_ PUCHAR Buffer, _In_ ULONG BufferLength)
 
STORPORT_API BOOLEAN NTAPI StorPortResume (_In_ PVOID HwDeviceExtension)
 
STORPORT_API BOOLEAN NTAPI StorPortResumeDevice (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun)
 
STORPORT_API ULONG NTAPI StorPortSetBusDataByOffset (_In_ PVOID DeviceExtension, _In_ ULONG BusDataType, _In_ ULONG SystemIoBusNumber, _In_ ULONG SlotNumber, _In_reads_bytes_(Length) PVOID Buffer, _In_ ULONG Offset, _In_ ULONG Length)
 
STORPORT_API BOOLEAN NTAPI StorPortSetDeviceQueueDepth (_In_ PVOID HwDeviceExtension, _In_ UCHAR PathId, _In_ UCHAR TargetId, _In_ UCHAR Lun, _In_ ULONG Depth)
 
STORPORT_API VOID NTAPI StorPortStallExecution (_In_ ULONG Delay)
 
STORPORT_API VOID NTAPI StorPortSynchronizeAccess (_In_ PVOID HwDeviceExtension, _In_ PSTOR_SYNCHRONIZED_ACCESS SynchronizedAccessRoutine, _In_opt_ PVOID Context)
 
STORPORT_API BOOLEAN NTAPI StorPortValidateRange (_In_ PVOID HwDeviceExtension, _In_ INTERFACE_TYPE BusType, _In_ ULONG SystemIoBusNumber, _In_ STOR_PHYSICAL_ADDRESS IoAddress, _In_ ULONG NumberOfBytes, _In_ BOOLEAN InIoSpace)
 
STORPORT_API VOID NTAPI StorPortWritePortBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWritePortBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWritePortBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWritePortUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ UCHAR Value)
 
STORPORT_API VOID NTAPI StorPortWritePortUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ ULONG Value)
 
STORPORT_API VOID NTAPI StorPortWritePortUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ USHORT Value)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ UCHAR Value)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ ULONG Value)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ USHORT Value)
 
FORCEINLINE BOOLEAN StorPortEnablePassiveInitialization (_In_ PVOID DeviceExtension, _In_ PHW_PASSIVE_INITIALIZE_ROUTINE HwPassiveInitializeRoutine)
 
FORCEINLINE VOID StorPortInitializeDpc (_In_ PVOID DeviceExtension, _Out_ PSTOR_DPC Dpc, _In_ PHW_DPC_ROUTINE HwDpcRoutine)
 
FORCEINLINE BOOLEAN StorPortIssueDpc (_In_ PVOID DeviceExtension, _In_ PSTOR_DPC Dpc, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2)
 
FORCEINLINE VOID StorPortAcquireSpinLock (_In_ PVOID DeviceExtension, _In_ STOR_SPINLOCK SpinLock, _In_ PVOID LockContext, _Inout_ PSTOR_LOCK_HANDLE LockHandle)
 
FORCEINLINE VOID StorPortReleaseSpinLock (_In_ PVOID DeviceExtension, _Inout_ PSTOR_LOCK_HANDLE LockHandle)
 
STORPORT_API ULONG StorPortExtendedFunction (_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
 
FORCEINLINE ULONG StorPortAllocatePool (_In_ PVOID HwDeviceExtension, _In_ ULONG NumberOfBytes, _In_ ULONG Tag, _Out_ PVOID *BufferPointer)
 
FORCEINLINE ULONG StorPortFreePool (_In_ PVOID HwDeviceExtension, _In_ PVOID BufferPointer)
 
FORCEINLINE ULONG StorPortAllocateMdl (_In_ PVOID HwDeviceExtension, _In_ PVOID BufferPointer, _In_ ULONG NumberOfBytes, _Out_ PVOID *Mdl)
 
FORCEINLINE ULONG StorPortFreeMdl (_In_ PVOID HwDeviceExtension, _In_ PVOID Mdl)
 
FORCEINLINE ULONG StorPortBuildMdlForNonPagedPool (_In_ PVOID HwDeviceExtension, _Inout_ PVOID Mdl)
 
FORCEINLINE ULONG StorPortGetSystemAddress (_In_ PVOID HwDeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb, _Out_ PVOID *SystemAddress)
 
FORCEINLINE ULONG StorPortGetOriginalMdl (_In_ PVOID HwDeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb, _Out_ PVOID *Mdl)
 
FORCEINLINE ULONG StorPortCompleteServiceIrp (_In_ PVOID HwDeviceExtension, _In_ PVOID Irp)
 
FORCEINLINE ULONG StorPortGetDeviceObjects (_In_ PVOID HwDeviceExtension, _Out_ PVOID *AdapterDeviceObject, _Out_ PVOID *PhysicalDeviceObject, _Out_ PVOID *LowerDeviceObject)
 
FORCEINLINE ULONG StorPortBuildScatterGatherList (_In_ PVOID HwDeviceExtension, _In_ PVOID Mdl, _In_ PVOID CurrentVa, _In_ ULONG Length, _In_ PpostScaterGatherExecute ExecutionRoutine, _In_ PVOID Context, _In_ BOOLEAN WriteToDevice, _Inout_ PVOID ScatterGatherBuffer, _In_ ULONG ScatterGatherBufferLength)
 
FORCEINLINE ULONG StorPortPutScatterGatherList (_In_ PVOID HwDeviceExtension, _In_ PSTOR_SCATTER_GATHER_LIST ScatterGatherList, _In_ BOOLEAN WriteToDevice)
 
FORCEINLINE ULONG StorPortAcquireMSISpinLock (_In_ PVOID HwDeviceExtension, _In_ ULONG MessageId, _In_ PULONG OldIrql)
 
FORCEINLINE ULONG StorPortReleaseMSISpinLock (_In_ PVOID HwDeviceExtension, _In_ ULONG MessageId, _In_ ULONG OldIrql)
 
FORCEINLINE ULONG StorPortGetMSIInfo (_In_ PVOID HwDeviceExtension, _In_ ULONG MessageId, _Out_ PMESSAGE_INTERRUPT_INFORMATION InterruptInfo)
 
FORCEINLINE ULONG StorPortInitializePerfOpts (_In_ PVOID HwDeviceExtension, _In_ BOOLEAN Query, _Inout_ PPERF_CONFIGURATION_DATA PerfConfigData)
 
FORCEINLINE ULONG StorPortGetStartIoPerfParams (_In_ PVOID HwDeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb, _Inout_ PSTARTIO_PERFORMANCE_PARAMETERS StartIoPerfParams)
 
FORCEINLINE ULONG StorPortLogSystemEvent (_In_ PVOID HwDeviceExtension, _Inout_ PSTOR_LOG_EVENT_DETAILS LogDetails, _Inout_ PULONG MaximumSize)
 

Macro Definition Documentation

◆ ARRAY_CONTROLLER_DEVICE

#define ARRAY_CONTROLLER_DEVICE   0x0C

Definition at line 46 of file storport.h.

◆ BRIDGE_CONTROLLER_DEVICE

#define BRIDGE_CONTROLLER_DEVICE   0x10

Definition at line 50 of file storport.h.

◆ CDB10GENERIC_LENGTH

#define CDB10GENERIC_LENGTH   10

Definition at line 57 of file storport.h.

◆ CDB12GENERIC_LENGTH

#define CDB12GENERIC_LENGTH   12

Definition at line 58 of file storport.h.

◆ CDB6GENERIC_LENGTH

#define CDB6GENERIC_LENGTH   6

Definition at line 56 of file storport.h.

◆ COMMUNICATION_DEVICE

#define COMMUNICATION_DEVICE   0x09

Definition at line 45 of file storport.h.

◆ DebugPrint

#define DebugPrint (   x)

Definition at line 3170 of file storport.h.

◆ DEVICE_CONNECTED

#define DEVICE_CONNECTED   0x00

Definition at line 54 of file storport.h.

◆ DIRECT_ACCESS_DEVICE

#define DIRECT_ACCESS_DEVICE   0x00

Definition at line 36 of file storport.h.

◆ FILE_DEVICE_SCSI

#define FILE_DEVICE_SCSI   0x0000001b

Definition at line 64 of file storport.h.

◆ INQUIRYDATABUFFERSIZE

#define INQUIRYDATABUFFERSIZE   36

Definition at line 60 of file storport.h.

◆ IOCTL_SCSI_EXECUTE_IN

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

Definition at line 65 of file storport.h.

◆ IOCTL_SCSI_EXECUTE_NONE

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

Definition at line 67 of file storport.h.

◆ IOCTL_SCSI_EXECUTE_OUT

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

Definition at line 66 of file storport.h.

◆ LOGICAL_UNIT_NOT_PRESENT_DEVICE

#define LOGICAL_UNIT_NOT_PRESENT_DEVICE   0x7F

Definition at line 52 of file storport.h.

◆ MAX_SENSE_BUFFER_SIZE

#define MAX_SENSE_BUFFER_SIZE   255

Definition at line 62 of file storport.h.

◆ MEDIUM_CHANGER

#define MEDIUM_CHANGER   0x08

Definition at line 44 of file storport.h.

◆ MODE_PAGE_CACHING

#define MODE_PAGE_CACHING   0x08

Definition at line 78 of file storport.h.

◆ MODE_PAGE_CAPABILITIES

#define MODE_PAGE_CAPABILITIES   0x2A

Definition at line 101 of file storport.h.

◆ MODE_PAGE_CD_AUDIO_CONTROL

#define MODE_PAGE_CD_AUDIO_CONTROL   0x0E

Definition at line 83 of file storport.h.

◆ MODE_PAGE_CDVD_FEATURE_SET

#define MODE_PAGE_CDVD_FEATURE_SET   0x18

Definition at line 91 of file storport.h.

◆ MODE_PAGE_CDVD_INACTIVITY

#define MODE_PAGE_CDVD_INACTIVITY   0x1D

Definition at line 97 of file storport.h.

◆ MODE_PAGE_CONTROL

#define MODE_PAGE_CONTROL   0x0A

Definition at line 80 of file storport.h.

◆ MODE_PAGE_DATA_COMPRESS

#define MODE_PAGE_DATA_COMPRESS   0x0F

Definition at line 84 of file storport.h.

◆ MODE_PAGE_DEVICE_CAPABILITIES

#define MODE_PAGE_DEVICE_CAPABILITIES   0x1F

Definition at line 100 of file storport.h.

◆ MODE_PAGE_DEVICE_CONFIG

#define MODE_PAGE_DEVICE_CONFIG   0x10

Definition at line 85 of file storport.h.

◆ MODE_PAGE_DISCONNECT

#define MODE_PAGE_DISCONNECT   0x02

Definition at line 71 of file storport.h.

◆ MODE_PAGE_ELEMENT_ADDRESS

#define MODE_PAGE_ELEMENT_ADDRESS   0x1D

Definition at line 98 of file storport.h.

◆ MODE_PAGE_ENCLOSURE_SERVICES_MANAGEMENT

#define MODE_PAGE_ENCLOSURE_SERVICES_MANAGEMENT   0x14

Definition at line 88 of file storport.h.

◆ MODE_PAGE_ERROR_RECOVERY

#define MODE_PAGE_ERROR_RECOVERY   0x01

Definition at line 70 of file storport.h.

◆ MODE_PAGE_EXTENDED

#define MODE_PAGE_EXTENDED   0x15

Definition at line 89 of file storport.h.

◆ MODE_PAGE_EXTENDED_DEVICE_SPECIFIC

#define MODE_PAGE_EXTENDED_DEVICE_SPECIFIC   0x16

Definition at line 90 of file storport.h.

◆ MODE_PAGE_FAULT_REPORTING

#define MODE_PAGE_FAULT_REPORTING   0x1C

Definition at line 96 of file storport.h.

◆ MODE_PAGE_FLEXIBILE

#define MODE_PAGE_FLEXIBILE   0x05

Definition at line 75 of file storport.h.

◆ MODE_PAGE_FORMAT_DEVICE

#define MODE_PAGE_FORMAT_DEVICE   0x03

Definition at line 72 of file storport.h.

◆ MODE_PAGE_LUN_MAPPING

#define MODE_PAGE_LUN_MAPPING   0x1B

Definition at line 95 of file storport.h.

◆ MODE_PAGE_MEDIUM_PARTITION

#define MODE_PAGE_MEDIUM_PARTITION   0x11

Definition at line 87 of file storport.h.

◆ MODE_PAGE_MEDIUM_TYPES

#define MODE_PAGE_MEDIUM_TYPES   0x0B

Definition at line 81 of file storport.h.

◆ MODE_PAGE_MRW

#define MODE_PAGE_MRW   0x03

Definition at line 73 of file storport.h.

◆ MODE_PAGE_NOTCH_PARTITION

#define MODE_PAGE_NOTCH_PARTITION   0x0C

Definition at line 82 of file storport.h.

◆ MODE_PAGE_PERIPHERAL

#define MODE_PAGE_PERIPHERAL   0x09

Definition at line 79 of file storport.h.

◆ MODE_PAGE_POWER_CONDITION

#define MODE_PAGE_POWER_CONDITION   0x1A

Definition at line 94 of file storport.h.

◆ MODE_PAGE_PROTOCOL_SPECIFIC_LUN

#define MODE_PAGE_PROTOCOL_SPECIFIC_LUN   0x18

Definition at line 92 of file storport.h.

◆ MODE_PAGE_PROTOCOL_SPECIFIC_PORT

#define MODE_PAGE_PROTOCOL_SPECIFIC_PORT   0x19

Definition at line 93 of file storport.h.

◆ MODE_PAGE_RIGID_GEOMETRY

#define MODE_PAGE_RIGID_GEOMETRY   0x04

Definition at line 74 of file storport.h.

◆ MODE_PAGE_TRANSPORT_GEOMETRY

#define MODE_PAGE_TRANSPORT_GEOMETRY   0x1E

Definition at line 99 of file storport.h.

◆ MODE_PAGE_VENDOR_SPECIFIC

#define MODE_PAGE_VENDOR_SPECIFIC   0x00

Definition at line 69 of file storport.h.

◆ MODE_PAGE_VERIFY_ERROR

#define MODE_PAGE_VERIFY_ERROR   0x07

Definition at line 77 of file storport.h.

◆ MODE_PAGE_WRITE_PARAMETERS

#define MODE_PAGE_WRITE_PARAMETERS   0x05

Definition at line 76 of file storport.h.

◆ MODE_PAGE_XOR_CONTROL

#define MODE_PAGE_XOR_CONTROL   0x10

Definition at line 86 of file storport.h.

◆ MODE_SENSE_CHANGEABLE_VALUES

#define MODE_SENSE_CHANGEABLE_VALUES   0x40

Definition at line 105 of file storport.h.

◆ MODE_SENSE_CURRENT_VALUES

#define MODE_SENSE_CURRENT_VALUES   0x00

Definition at line 104 of file storport.h.

◆ MODE_SENSE_DEFAULT_VAULES

#define MODE_SENSE_DEFAULT_VAULES   0x80

Definition at line 106 of file storport.h.

◆ MODE_SENSE_RETURN_ALL

#define MODE_SENSE_RETURN_ALL   0x3F

Definition at line 102 of file storport.h.

◆ MODE_SENSE_SAVED_VALUES

#define MODE_SENSE_SAVED_VALUES   0xc0

Definition at line 107 of file storport.h.

◆ OBJECT_BASED_STORAGE_DEVICE

#define OBJECT_BASED_STORAGE_DEVICE   0x11

Definition at line 51 of file storport.h.

◆ OPTICAL_CARD_READER_WRITER_DEVICE

#define OPTICAL_CARD_READER_WRITER_DEVICE   0x0F

Definition at line 49 of file storport.h.

◆ OPTICAL_DEVICE

#define OPTICAL_DEVICE   0x07

Definition at line 43 of file storport.h.

◆ PRINTER_DEVICE

#define PRINTER_DEVICE   0x02

Definition at line 38 of file storport.h.

◆ PROCESSOR_DEVICE

#define PROCESSOR_DEVICE   0x03

Definition at line 39 of file storport.h.

◆ READ_ONLY_DIRECT_ACCESS_DEVICE

#define READ_ONLY_DIRECT_ACCESS_DEVICE   0x05

Definition at line 41 of file storport.h.

◆ REDUCED_BLOCK_DEVICE

#define REDUCED_BLOCK_DEVICE   0x0E

Definition at line 48 of file storport.h.

◆ REVERSE_BYTES

#define REVERSE_BYTES (   Destination,
  Source 
)
Value:
{ \
PFOUR_BYTE d = (PFOUR_BYTE)(Destination); \
PFOUR_BYTE s = (PFOUR_BYTE)(Source); \
d->Byte3 = s->Byte0; \
d->Byte2 = s->Byte1; \
d->Byte1 = s->Byte2; \
d->Byte0 = s->Byte3; \
}
#define d
Definition: ke_i.h:81
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2891
GLdouble s
Definition: gl.h:2039
union _FOUR_BYTE * PFOUR_BYTE
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

Definition at line 2339 of file storport.h.

◆ REVERSE_BYTES_QUAD

#define REVERSE_BYTES_QUAD (   Destination,
  Source 
)
Value:
{ \
PEIGHT_BYTE d = (PEIGHT_BYTE)(Destination); \
PEIGHT_BYTE s = (PEIGHT_BYTE)(Source); \
d->Byte7 = s->Byte0; \
d->Byte6 = s->Byte1; \
d->Byte5 = s->Byte2; \
d->Byte4 = s->Byte3; \
d->Byte3 = s->Byte4; \
d->Byte2 = s->Byte5; \
d->Byte1 = s->Byte6; \
d->Byte0 = s->Byte7; \
}
#define d
Definition: ke_i.h:81
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2891
GLdouble s
Definition: gl.h:2039
union _EIGHT_BYTE * PEIGHT_BYTE
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

Definition at line 2326 of file storport.h.

◆ REVERSE_BYTES_SHORT

#define REVERSE_BYTES_SHORT (   Destination,
  Source 
)
Value:
{ \
PTWO_BYTE d = (PTWO_BYTE)(Destination); \
PTWO_BYTE s = (PTWO_BYTE)(Source); \
d->Byte1 = s->Byte0; \
d->Byte0 = s->Byte1; \
}
#define d
Definition: ke_i.h:81
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2891
GLdouble s
Definition: gl.h:2039
union _TWO_BYTE * PTWO_BYTE
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

Definition at line 2348 of file storport.h.

◆ SCANNER_DEVICE

#define SCANNER_DEVICE   0x06

Definition at line 42 of file storport.h.

◆ SCSI_ENCLOSURE_DEVICE

#define SCSI_ENCLOSURE_DEVICE   0x0D

Definition at line 47 of file storport.h.

◆ SCSI_SENSE_ABORTED_COMMAND

#define SCSI_SENSE_ABORTED_COMMAND   0x0B

Definition at line 418 of file storport.h.

◆ SCSI_SENSE_BLANK_CHECK

#define SCSI_SENSE_BLANK_CHECK   0x08

Definition at line 415 of file storport.h.

◆ SCSI_SENSE_COPY_ABORTED

#define SCSI_SENSE_COPY_ABORTED   0x0A

Definition at line 417 of file storport.h.

◆ SCSI_SENSE_DATA_PROTECT

#define SCSI_SENSE_DATA_PROTECT   0x07

Definition at line 414 of file storport.h.

◆ SCSI_SENSE_EQUAL

#define SCSI_SENSE_EQUAL   0x0C

Definition at line 419 of file storport.h.

◆ SCSI_SENSE_HARDWARE_ERROR

#define SCSI_SENSE_HARDWARE_ERROR   0x04

Definition at line 411 of file storport.h.

◆ SCSI_SENSE_ILLEGAL_REQUEST

#define SCSI_SENSE_ILLEGAL_REQUEST   0x05

Definition at line 412 of file storport.h.

◆ SCSI_SENSE_MEDIUM_ERROR

#define SCSI_SENSE_MEDIUM_ERROR   0x03

Definition at line 410 of file storport.h.

◆ SCSI_SENSE_MISCOMPARE

#define SCSI_SENSE_MISCOMPARE   0x0E

Definition at line 421 of file storport.h.

◆ SCSI_SENSE_NO_SENSE

#define SCSI_SENSE_NO_SENSE   0x00

Definition at line 407 of file storport.h.

◆ SCSI_SENSE_NOT_READY

#define SCSI_SENSE_NOT_READY   0x02

Definition at line 409 of file storport.h.

◆ SCSI_SENSE_RECOVERED_ERROR

#define SCSI_SENSE_RECOVERED_ERROR   0x01

Definition at line 408 of file storport.h.

◆ SCSI_SENSE_RESERVED

#define SCSI_SENSE_RESERVED   0x0F

Definition at line 422 of file storport.h.

◆ SCSI_SENSE_UNIQUE

#define SCSI_SENSE_UNIQUE   0x09

Definition at line 416 of file storport.h.

◆ SCSI_SENSE_UNIT_ATTENTION

#define SCSI_SENSE_UNIT_ATTENTION   0x06

Definition at line 413 of file storport.h.

◆ SCSI_SENSE_VOL_OVERFLOW

#define SCSI_SENSE_VOL_OVERFLOW   0x0D

Definition at line 420 of file storport.h.

◆ SCSIOP_ACCESS_CONTROL_IN

#define SCSIOP_ACCESS_CONTROL_IN   0x86

Definition at line 212 of file storport.h.

◆ SCSIOP_ACCESS_CONTROL_OUT

#define SCSIOP_ACCESS_CONTROL_OUT   0x87

Definition at line 213 of file storport.h.

◆ SCSIOP_ATA_PASSTHROUGH12

#define SCSIOP_ATA_PASSTHROUGH12   0xA1

Definition at line 232 of file storport.h.

◆ SCSIOP_ATA_PASSTHROUGH16

#define SCSIOP_ATA_PASSTHROUGH16   0x85

Definition at line 211 of file storport.h.

◆ SCSIOP_BLANK

#define SCSIOP_BLANK   0xA1

Definition at line 231 of file storport.h.

◆ SCSIOP_CHANGE_DEFINITION

#define SCSIOP_CHANGE_DEFINITION   0x40

Definition at line 168 of file storport.h.

◆ SCSIOP_CLOSE_TRACK_SESSION

#define SCSIOP_CLOSE_TRACK_SESSION   0x5B

Definition at line 199 of file storport.h.

◆ SCSIOP_COMPARE

#define SCSIOP_COMPARE   0x39

Definition at line 163 of file storport.h.

◆ SCSIOP_COPY

#define SCSIOP_COPY   0x18

Definition at line 139 of file storport.h.

◆ SCSIOP_COPY_COMPARE

#define SCSIOP_COPY_COMPARE   0x3A

Definition at line 164 of file storport.h.

◆ SCSIOP_ERASE

#define SCSIOP_ERASE   0x19

Definition at line 140 of file storport.h.

◆ SCSIOP_ERASE16

#define SCSIOP_ERASE16   0x93

Definition at line 226 of file storport.h.

◆ SCSIOP_EXCHANGE_MEDIUM

#define SCSIOP_EXCHANGE_MEDIUM   0xA6

Definition at line 240 of file storport.h.

◆ SCSIOP_EXTENDED_COPY

#define SCSIOP_EXTENDED_COPY   0x83

Definition at line 209 of file storport.h.

◆ SCSIOP_FLUSH_BUFFER

#define SCSIOP_FLUSH_BUFFER   0x10

Definition at line 131 of file storport.h.

◆ SCSIOP_FORMAT_UNIT

#define SCSIOP_FORMAT_UNIT   0x04

Definition at line 114 of file storport.h.

◆ SCSIOP_GET_CONFIGURATION

#define SCSIOP_GET_CONFIGURATION   0x46

Definition at line 175 of file storport.h.

◆ SCSIOP_GET_EVENT_STATUS

#define SCSIOP_GET_EVENT_STATUS   0x4A

Definition at line 179 of file storport.h.

◆ SCSIOP_GET_MESSAGE

#define SCSIOP_GET_MESSAGE   0xA8

Definition at line 244 of file storport.h.

◆ SCSIOP_GET_PERFORMANCE

#define SCSIOP_GET_PERFORMANCE   0xAC

Definition at line 249 of file storport.h.

◆ SCSIOP_INIT_ELEMENT_RANGE

#define SCSIOP_INIT_ELEMENT_RANGE   0xE7

Definition at line 276 of file storport.h.

◆ SCSIOP_INIT_ELEMENT_STATUS

#define SCSIOP_INIT_ELEMENT_STATUS   0x07

Definition at line 117 of file storport.h.

◆ SCSIOP_INQUIRY

#define SCSIOP_INQUIRY   0x12

Definition at line 133 of file storport.h.

◆ SCSIOP_LOAD_UNLOAD

#define SCSIOP_LOAD_UNLOAD   0x1B

Definition at line 144 of file storport.h.

◆ SCSIOP_LOAD_UNLOAD_SLOT

#define SCSIOP_LOAD_UNLOAD_SLOT   0xA6

Definition at line 239 of file storport.h.

◆ SCSIOP_LOCATE

#define SCSIOP_LOCATE   0x2B

Definition at line 153 of file storport.h.

◆ SCSIOP_LOCATE16

#define SCSIOP_LOCATE16   0x92

Definition at line 224 of file storport.h.

◆ SCSIOP_LOCK_UNLOCK_CACHE16

#define SCSIOP_LOCK_UNLOCK_CACHE16   0x92

Definition at line 223 of file storport.h.

◆ SCSIOP_LOG_SELECT

#define SCSIOP_LOG_SELECT   0x4C

Definition at line 181 of file storport.h.

◆ SCSIOP_LOG_SENSE

#define SCSIOP_LOG_SENSE   0x4D

Definition at line 182 of file storport.h.

◆ SCSIOP_MAINTENANCE_IN

#define SCSIOP_MAINTENANCE_IN   0xA3

Definition at line 235 of file storport.h.

◆ SCSIOP_MAINTENANCE_OUT

#define SCSIOP_MAINTENANCE_OUT   0xA4

Definition at line 237 of file storport.h.

◆ SCSIOP_MECHANISM_STATUS

#define SCSIOP_MECHANISM_STATUS   0xBD

Definition at line 270 of file storport.h.

◆ SCSIOP_MEDIUM_REMOVAL

#define SCSIOP_MEDIUM_REMOVAL   0x1E

Definition at line 147 of file storport.h.

◆ SCSIOP_MODE_SELECT

#define SCSIOP_MODE_SELECT   0x15

Definition at line 136 of file storport.h.

◆ SCSIOP_MODE_SELECT10

#define SCSIOP_MODE_SELECT10   0x55

Definition at line 192 of file storport.h.

◆ SCSIOP_MODE_SENSE

#define SCSIOP_MODE_SENSE   0x1A

Definition at line 141 of file storport.h.

◆ SCSIOP_MODE_SENSE10

#define SCSIOP_MODE_SENSE10   0x5A

Definition at line 198 of file storport.h.

◆ SCSIOP_MOVE_MEDIUM

#define SCSIOP_MOVE_MEDIUM   0xA5

Definition at line 238 of file storport.h.

◆ SCSIOP_MOVE_MEDIUM_ATTACHED

#define SCSIOP_MOVE_MEDIUM_ATTACHED   0xA7

Definition at line 242 of file storport.h.

◆ SCSIOP_PARTITION

#define SCSIOP_PARTITION   0x0D

Definition at line 128 of file storport.h.

◆ SCSIOP_PAUSE_RESUME

#define SCSIOP_PAUSE_RESUME   0x4B

Definition at line 180 of file storport.h.

◆ SCSIOP_PERSISTENT_RESERVE_IN

#define SCSIOP_PERSISTENT_RESERVE_IN   0x5E

Definition at line 202 of file storport.h.

◆ SCSIOP_PERSISTENT_RESERVE_OUT

#define SCSIOP_PERSISTENT_RESERVE_OUT   0x5F

Definition at line 203 of file storport.h.

◆ SCSIOP_PLAY_AUDIO

#define SCSIOP_PLAY_AUDIO   0x45

Definition at line 174 of file storport.h.

◆ SCSIOP_PLAY_AUDIO_MSF

#define SCSIOP_PLAY_AUDIO_MSF   0x47

Definition at line 176 of file storport.h.

◆ SCSIOP_PLAY_CD

#define SCSIOP_PLAY_CD   0xBC

Definition at line 268 of file storport.h.

◆ SCSIOP_PLAY_TRACK_INDEX

#define SCSIOP_PLAY_TRACK_INDEX   0x48

Definition at line 177 of file storport.h.

◆ SCSIOP_PLAY_TRACK_RELATIVE

#define SCSIOP_PLAY_TRACK_RELATIVE   0x49

Definition at line 178 of file storport.h.

◆ SCSIOP_POSITION_TO_ELEMENT

#define SCSIOP_POSITION_TO_ELEMENT   0x2B

Definition at line 154 of file storport.h.

◆ SCSIOP_PREFETCH16

#define SCSIOP_PREFETCH16   0x90

Definition at line 220 of file storport.h.

◆ SCSIOP_PRINT

#define SCSIOP_PRINT   0x0A

Definition at line 121 of file storport.h.

◆ SCSIOP_READ

#define SCSIOP_READ   0x28

Definition at line 150 of file storport.h.

◆ SCSIOP_READ12

#define SCSIOP_READ12   0xA8

Definition at line 243 of file storport.h.

◆ SCSIOP_READ16

#define SCSIOP_READ16   0x88

Definition at line 214 of file storport.h.

◆ SCSIOP_READ6

#define SCSIOP_READ6   0x08

Definition at line 118 of file storport.h.

◆ SCSIOP_READ_ATTRIBUTES

#define SCSIOP_READ_ATTRIBUTES   0x8C

Definition at line 216 of file storport.h.

◆ SCSIOP_READ_BLOCK_LIMITS

#define SCSIOP_READ_BLOCK_LIMITS   0x05

Definition at line 115 of file storport.h.

◆ SCSIOP_READ_BUFFER_CAPACITY

#define SCSIOP_READ_BUFFER_CAPACITY   0x5C

Definition at line 200 of file storport.h.

◆ SCSIOP_READ_CAPACITY

#define SCSIOP_READ_CAPACITY   0x25

Definition at line 149 of file storport.h.

◆ SCSIOP_READ_CAPACITY16

#define SCSIOP_READ_CAPACITY16   0x9E

Definition at line 227 of file storport.h.

◆ SCSIOP_READ_CD

#define SCSIOP_READ_CD   0xBE

Definition at line 272 of file storport.h.

◆ SCSIOP_READ_CD_MSF

#define SCSIOP_READ_CD_MSF   0xB9

Definition at line 263 of file storport.h.

◆ SCSIOP_READ_DATA_BUFF

#define SCSIOP_READ_DATA_BUFF   0x3C

Definition at line 166 of file storport.h.

◆ SCSIOP_READ_DEFECT_DATA

#define SCSIOP_READ_DEFECT_DATA   0xB7

Definition at line 261 of file storport.h.

◆ SCSIOP_READ_DISC_INFORMATION

#define SCSIOP_READ_DISC_INFORMATION   0x51

Definition at line 187 of file storport.h.

◆ SCSIOP_READ_DISK_INFORMATION

#define SCSIOP_READ_DISK_INFORMATION   0x51

Definition at line 186 of file storport.h.

◆ SCSIOP_READ_DVD_STRUCTURE

#define SCSIOP_READ_DVD_STRUCTURE   0xAD

Definition at line 250 of file storport.h.

◆ SCSIOP_READ_ELEMENT_STATUS

#define SCSIOP_READ_ELEMENT_STATUS   0xB8

Definition at line 262 of file storport.h.

◆ SCSIOP_READ_ELEMENT_STATUS_ATTACHED

#define SCSIOP_READ_ELEMENT_STATUS_ATTACHED   0xB4

Definition at line 257 of file storport.h.

◆ SCSIOP_READ_FORMATTED_CAPACITY

#define SCSIOP_READ_FORMATTED_CAPACITY   0x23

Definition at line 148 of file storport.h.

◆ SCSIOP_READ_HEADER

#define SCSIOP_READ_HEADER   0x44

Definition at line 172 of file storport.h.

◆ SCSIOP_READ_POSITION

#define SCSIOP_READ_POSITION   0x34

Definition at line 161 of file storport.h.

◆ SCSIOP_READ_REVERSE

#define SCSIOP_READ_REVERSE   0x0F

Definition at line 129 of file storport.h.

◆ SCSIOP_READ_REVERSE16

#define SCSIOP_READ_REVERSE16   0x81

Definition at line 207 of file storport.h.

◆ SCSIOP_READ_SUB_CHANNEL

#define SCSIOP_READ_SUB_CHANNEL   0x42

Definition at line 170 of file storport.h.

◆ SCSIOP_READ_TOC

#define SCSIOP_READ_TOC   0x43

Definition at line 171 of file storport.h.

◆ SCSIOP_READ_TRACK_INFORMATION

#define SCSIOP_READ_TRACK_INFORMATION   0x52

Definition at line 188 of file storport.h.

◆ SCSIOP_REASSIGN_BLOCKS

#define SCSIOP_REASSIGN_BLOCKS   0x07

Definition at line 116 of file storport.h.

◆ SCSIOP_REBUILD16

#define SCSIOP_REBUILD16   0x81

Definition at line 206 of file storport.h.

◆ SCSIOP_RECEIVE

#define SCSIOP_RECEIVE   0x08

Definition at line 119 of file storport.h.

◆ SCSIOP_RECEIVE_COPY_RESULTS

#define SCSIOP_RECEIVE_COPY_RESULTS   0x84

Definition at line 210 of file storport.h.

◆ SCSIOP_RECEIVE_DIAGNOSTIC

#define SCSIOP_RECEIVE_DIAGNOSTIC   0x1C

Definition at line 145 of file storport.h.

◆ SCSIOP_RECOVER_BUF_DATA

#define SCSIOP_RECOVER_BUF_DATA   0x14

Definition at line 135 of file storport.h.

◆ SCSIOP_REDUNDANCY_GROUP_IN

#define SCSIOP_REDUNDANCY_GROUP_IN   0xBA

Definition at line 265 of file storport.h.

◆ SCSIOP_REDUNDANCY_GROUP_OUT

#define SCSIOP_REDUNDANCY_GROUP_OUT   0xBB

Definition at line 267 of file storport.h.

◆ SCSIOP_REGENERATE16

#define SCSIOP_REGENERATE16   0x82

Definition at line 208 of file storport.h.

◆ SCSIOP_RELEASE_ELEMENT

#define SCSIOP_RELEASE_ELEMENT   0x57

Definition at line 196 of file storport.h.

◆ SCSIOP_RELEASE_UNIT

#define SCSIOP_RELEASE_UNIT   0x17

Definition at line 138 of file storport.h.

◆ SCSIOP_RELEASE_UNIT10

#define SCSIOP_RELEASE_UNIT10   0x57

Definition at line 195 of file storport.h.

◆ SCSIOP_REPAIR_TRACK

#define SCSIOP_REPAIR_TRACK   0x58

Definition at line 197 of file storport.h.

◆ SCSIOP_REPORT_DENSITY_SUPPORT

#define SCSIOP_REPORT_DENSITY_SUPPORT   0x44

Definition at line 173 of file storport.h.

◆ SCSIOP_REPORT_KEY

#define SCSIOP_REPORT_KEY   0xA4

Definition at line 236 of file storport.h.

◆ SCSIOP_REPORT_LUNS

#define SCSIOP_REPORT_LUNS   0xA0

Definition at line 230 of file storport.h.

◆ SCSIOP_REQUEST_BLOCK_ADDR

#define SCSIOP_REQUEST_BLOCK_ADDR   0x02

Definition at line 112 of file storport.h.

◆ SCSIOP_REQUEST_SENSE

#define SCSIOP_REQUEST_SENSE   0x03

Definition at line 113 of file storport.h.

◆ SCSIOP_REQUEST_VOL_ELEMENT

#define SCSIOP_REQUEST_VOL_ELEMENT   0xB5

Definition at line 258 of file storport.h.

◆ SCSIOP_RESERVE_ELEMENT

#define SCSIOP_RESERVE_ELEMENT   0x56

Definition at line 194 of file storport.h.

◆ SCSIOP_RESERVE_TRACK_RZONE

#define SCSIOP_RESERVE_TRACK_RZONE   0x53

Definition at line 190 of file storport.h.

◆ SCSIOP_RESERVE_UNIT

#define SCSIOP_RESERVE_UNIT   0x16

Definition at line 137 of file storport.h.

◆ SCSIOP_RESERVE_UNIT10

#define SCSIOP_RESERVE_UNIT10   0x56

Definition at line 193 of file storport.h.

◆ SCSIOP_REWIND

#define SCSIOP_REWIND   0x01

Definition at line 111 of file storport.h.

◆ SCSIOP_REZERO_UNIT

#define SCSIOP_REZERO_UNIT   0x01

Definition at line 110 of file storport.h.

◆ SCSIOP_SCAN_CD

#define SCSIOP_SCAN_CD   0xBA

Definition at line 264 of file storport.h.

◆ SCSIOP_SEARCH_DATA_EQUAL

#define SCSIOP_SEARCH_DATA_EQUAL   0x31

Definition at line 158 of file storport.h.

◆ SCSIOP_SEARCH_DATA_EQUAL12

#define SCSIOP_SEARCH_DATA_EQUAL12   0xB1

Definition at line 254 of file storport.h.

◆ SCSIOP_SEARCH_DATA_HIGH

#define SCSIOP_SEARCH_DATA_HIGH   0x30

Definition at line 157 of file storport.h.

◆ SCSIOP_SEARCH_DATA_HIGH12

#define SCSIOP_SEARCH_DATA_HIGH12   0xB0

Definition at line 253 of file storport.h.

◆ SCSIOP_SEARCH_DATA_LOW

#define SCSIOP_SEARCH_DATA_LOW   0x32

Definition at line 159 of file storport.h.

◆ SCSIOP_SEARCH_DATA_LOW12

#define SCSIOP_SEARCH_DATA_LOW12   0xB2

Definition at line 255 of file storport.h.

◆ SCSIOP_SEEK

#define SCSIOP_SEEK   0x2B

Definition at line 152 of file storport.h.

◆ SCSIOP_SEEK6

#define SCSIOP_SEEK6   0x0B

Definition at line 123 of file storport.h.

◆ SCSIOP_SEEK_BLOCK

#define SCSIOP_SEEK_BLOCK   0x0C

Definition at line 127 of file storport.h.

◆ SCSIOP_SEND

#define SCSIOP_SEND   0x0A

Definition at line 122 of file storport.h.

◆ SCSIOP_SEND_CUE_SHEET

#define SCSIOP_SEND_CUE_SHEET   0x5D

Definition at line 201 of file storport.h.

◆ SCSIOP_SEND_DIAGNOSTIC

#define SCSIOP_SEND_DIAGNOSTIC   0x1D

Definition at line 146 of file storport.h.

◆ SCSIOP_SEND_DVD_STRUCTURE

#define SCSIOP_SEND_DVD_STRUCTURE   0xBF

Definition at line 274 of file storport.h.

◆ SCSIOP_SEND_EVENT

#define SCSIOP_SEND_EVENT   0xA2

Definition at line 233 of file storport.h.

◆ SCSIOP_SEND_KEY

#define SCSIOP_SEND_KEY   0xA3

Definition at line 234 of file storport.h.

◆ SCSIOP_SEND_MESSAGE

#define SCSIOP_SEND_MESSAGE   0xAB

Definition at line 247 of file storport.h.

◆ SCSIOP_SEND_OPC_INFORMATION

#define SCSIOP_SEND_OPC_INFORMATION   0x54

Definition at line 191 of file storport.h.

◆ SCSIOP_SEND_VOLUME_TAG

#define SCSIOP_SEND_VOLUME_TAG   0xB6

Definition at line 259 of file storport.h.

◆ SCSIOP_SERVICE_ACTION_IN12

#define SCSIOP_SERVICE_ACTION_IN12   0xAB

Definition at line 248 of file storport.h.

◆ SCSIOP_SERVICE_ACTION_IN16

#define SCSIOP_SERVICE_ACTION_IN16   0x9E

Definition at line 228 of file storport.h.

◆ SCSIOP_SERVICE_ACTION_OUT12

#define SCSIOP_SERVICE_ACTION_OUT12   0xA9

Definition at line 245 of file storport.h.

◆ SCSIOP_SERVICE_ACTION_OUT16

#define SCSIOP_SERVICE_ACTION_OUT16   0x9F

Definition at line 229 of file storport.h.

◆ SCSIOP_SET_CAPACITY

#define SCSIOP_SET_CAPACITY   0x0B

Definition at line 126 of file storport.h.

◆ SCSIOP_SET_CD_SPEED

#define SCSIOP_SET_CD_SPEED   0xBB

Definition at line 266 of file storport.h.

◆ SCSIOP_SET_LIMITS

#define SCSIOP_SET_LIMITS   0x33

Definition at line 160 of file storport.h.

◆ SCSIOP_SET_LIMITS12

#define SCSIOP_SET_LIMITS12   0xB3

Definition at line 256 of file storport.h.

◆ SCSIOP_SET_READ_AHEAD

#define SCSIOP_SET_READ_AHEAD   0xA7

Definition at line 241 of file storport.h.

◆ SCSIOP_SET_STREAMING

#define SCSIOP_SET_STREAMING   0xB6

Definition at line 260 of file storport.h.

◆ SCSIOP_SLEW_PRINT

#define SCSIOP_SLEW_PRINT   0x0B

Definition at line 125 of file storport.h.

◆ SCSIOP_SPACE

#define SCSIOP_SPACE   0x11

Definition at line 132 of file storport.h.

◆ SCSIOP_SPACE16

#define SCSIOP_SPACE16   0x91

Definition at line 222 of file storport.h.

◆ SCSIOP_SPARE_IN

#define SCSIOP_SPARE_IN   0xBC

Definition at line 269 of file storport.h.

◆ SCSIOP_SPARE_OUT

#define SCSIOP_SPARE_OUT   0xBD

Definition at line 271 of file storport.h.

◆ SCSIOP_START_STOP_UNIT

#define SCSIOP_START_STOP_UNIT   0x1B

Definition at line 142 of file storport.h.

◆ SCSIOP_STOP_PLAY_SCAN

#define SCSIOP_STOP_PLAY_SCAN   0x4E

Definition at line 183 of file storport.h.

◆ SCSIOP_STOP_PRINT

#define SCSIOP_STOP_PRINT   0x1B

Definition at line 143 of file storport.h.

◆ SCSIOP_SYNCHRONIZE_CACHE

#define SCSIOP_SYNCHRONIZE_CACHE   0x35

Definition at line 162 of file storport.h.

◆ SCSIOP_SYNCHRONIZE_CACHE16

#define SCSIOP_SYNCHRONIZE_CACHE16   0x91

Definition at line 221 of file storport.h.

◆ SCSIOP_TEST_UNIT_READY

#define SCSIOP_TEST_UNIT_READY   0x00

Definition at line 109 of file storport.h.

◆ SCSIOP_TRACK_SELECT

#define SCSIOP_TRACK_SELECT   0x0B

Definition at line 124 of file storport.h.

◆ SCSIOP_VERIFY

#define SCSIOP_VERIFY   0x2F

Definition at line 156 of file storport.h.

◆ SCSIOP_VERIFY12

#define SCSIOP_VERIFY12   0xAF

Definition at line 252 of file storport.h.

◆ SCSIOP_VERIFY16

#define SCSIOP_VERIFY16   0x8F

Definition at line 219 of file storport.h.

◆ SCSIOP_VERIFY6

#define SCSIOP_VERIFY6   0x13

Definition at line 134 of file storport.h.

◆ SCSIOP_VOLUME_SET_IN

#define SCSIOP_VOLUME_SET_IN   0xBE

Definition at line 273 of file storport.h.

◆ SCSIOP_VOLUME_SET_OUT

#define SCSIOP_VOLUME_SET_OUT   0xBF

Definition at line 275 of file storport.h.

◆ SCSIOP_WRITE

#define SCSIOP_WRITE   0x2A

Definition at line 151 of file storport.h.

◆ SCSIOP_WRITE12

#define SCSIOP_WRITE12   0xAA

Definition at line 246 of file storport.h.

◆ SCSIOP_WRITE16

#define SCSIOP_WRITE16   0x8A

Definition at line 215 of file storport.h.

◆ SCSIOP_WRITE6

#define SCSIOP_WRITE6   0x0A

Definition at line 120 of file storport.h.

◆ SCSIOP_WRITE_ATTRIBUTES

#define SCSIOP_WRITE_ATTRIBUTES   0x8D

Definition at line 217 of file storport.h.

◆ SCSIOP_WRITE_DATA_BUFF

#define SCSIOP_WRITE_DATA_BUFF   0x3B

Definition at line 165 of file storport.h.

◆ SCSIOP_WRITE_FILEMARKS

#define SCSIOP_WRITE_FILEMARKS   0x10

Definition at line 130 of file storport.h.

◆ SCSIOP_WRITE_FILEMARKS16

#define SCSIOP_WRITE_FILEMARKS16   0x80

Definition at line 205 of file storport.h.

◆ SCSIOP_WRITE_LONG

#define SCSIOP_WRITE_LONG   0x3F

Definition at line 167 of file storport.h.

◆ SCSIOP_WRITE_SAME

#define SCSIOP_WRITE_SAME   0x41

Definition at line 169 of file storport.h.

◆ SCSIOP_WRITE_SAME16

#define SCSIOP_WRITE_SAME16   0x93

Definition at line 225 of file storport.h.

◆ SCSIOP_WRITE_VERIFY

#define SCSIOP_WRITE_VERIFY   0x2E

Definition at line 155 of file storport.h.

◆ SCSIOP_WRITE_VERIFY12

#define SCSIOP_WRITE_VERIFY12   0xAE

Definition at line 251 of file storport.h.

◆ SCSIOP_WRITE_VERIFY16

#define SCSIOP_WRITE_VERIFY16   0x8E

Definition at line 218 of file storport.h.

◆ SCSIOP_XDWRITE

#define SCSIOP_XDWRITE   0x50

Definition at line 184 of file storport.h.

◆ SCSIOP_XDWRITE_EXTENDED16

#define SCSIOP_XDWRITE_EXTENDED16   0x80

Definition at line 204 of file storport.h.

◆ SCSIOP_XDWRITE_READ

#define SCSIOP_XDWRITE_READ   0x53

Definition at line 189 of file storport.h.

◆ SCSIOP_XPWRITE

#define SCSIOP_XPWRITE   0x51

Definition at line 185 of file storport.h.

◆ SCSISTAT_BUSY

#define SCSISTAT_BUSY   0x08

Definition at line 281 of file storport.h.

◆ SCSISTAT_CHECK_CONDITION

#define SCSISTAT_CHECK_CONDITION   0x02

Definition at line 279 of file storport.h.

◆ SCSISTAT_COMMAND_TERMINATED

#define SCSISTAT_COMMAND_TERMINATED   0x22

Definition at line 285 of file storport.h.

◆ SCSISTAT_CONDITION_MET

#define SCSISTAT_CONDITION_MET   0x04

Definition at line 280 of file storport.h.

◆ SCSISTAT_GOOD

#define SCSISTAT_GOOD   0x00

Definition at line 278 of file storport.h.

◆ SCSISTAT_INTERMEDIATE

#define SCSISTAT_INTERMEDIATE   0x10

Definition at line 282 of file storport.h.

◆ SCSISTAT_INTERMEDIATE_COND_MET

#define SCSISTAT_INTERMEDIATE_COND_MET   0x14

Definition at line 283 of file storport.h.

◆ SCSISTAT_QUEUE_FULL

#define SCSISTAT_QUEUE_FULL   0x28

Definition at line 286 of file storport.h.

◆ SCSISTAT_RESERVATION_CONFLICT

#define SCSISTAT_RESERVATION_CONFLICT   0x18

Definition at line 284 of file storport.h.

◆ SENSE_BUFFER_SIZE

#define SENSE_BUFFER_SIZE   18

Definition at line 61 of file storport.h.

◆ SEQUENTIAL_ACCESS_DEVICE

#define SEQUENTIAL_ACCESS_DEVICE   0x01

Definition at line 37 of file storport.h.

◆ SETBITOFF

#define SETBITOFF   0

Definition at line 289 of file storport.h.

◆ SETBITON

#define SETBITON   1

Definition at line 288 of file storport.h.

◆ SP_RETURN_BAD_CONFIG

#define SP_RETURN_BAD_CONFIG   3

Definition at line 294 of file storport.h.

◆ SP_RETURN_ERROR

#define SP_RETURN_ERROR   2

Definition at line 293 of file storport.h.

◆ SP_RETURN_FOUND

#define SP_RETURN_FOUND   1

Definition at line 292 of file storport.h.

◆ SP_RETURN_NOT_FOUND

#define SP_RETURN_NOT_FOUND   0

Definition at line 291 of file storport.h.

◆ SRB_FLAGS_ADAPTER_CACHE_ENABLE

#define SRB_FLAGS_ADAPTER_CACHE_ENABLE   0x00000200

Definition at line 368 of file storport.h.

◆ SRB_FLAGS_ALLOCATED_FROM_ZONE

#define SRB_FLAGS_ALLOCATED_FROM_ZONE   0x00020000

Definition at line 372 of file storport.h.

◆ SRB_FLAGS_BYPASS_FROZEN_QUEUE

#define SRB_FLAGS_BYPASS_FROZEN_QUEUE   0x00000010

Definition at line 360 of file storport.h.

◆ SRB_FLAGS_BYPASS_LOCKED_QUEUE

#define SRB_FLAGS_BYPASS_LOCKED_QUEUE   0x00080000

Definition at line 374 of file storport.h.

◆ SRB_FLAGS_CLASS_DRIVER_RESERVED

#define SRB_FLAGS_CLASS_DRIVER_RESERVED   0xF0000000

Definition at line 383 of file storport.h.

◆ SRB_FLAGS_DATA_IN

#define SRB_FLAGS_DATA_IN   0x00000040

Definition at line 362 of file storport.h.

◆ SRB_FLAGS_DATA_OUT

#define SRB_FLAGS_DATA_OUT   0x00000080

Definition at line 363 of file storport.h.

◆ SRB_FLAGS_DISABLE_AUTOSENSE

#define SRB_FLAGS_DISABLE_AUTOSENSE   0x00000020

Definition at line 361 of file storport.h.

◆ SRB_FLAGS_DISABLE_DISCONNECT

#define SRB_FLAGS_DISABLE_DISCONNECT   0x00000004

Definition at line 357 of file storport.h.

◆ SRB_FLAGS_DISABLE_SYNCH_TRANSFER

#define SRB_FLAGS_DISABLE_SYNCH_TRANSFER   0x00000008

Definition at line 358 of file storport.h.

◆ SRB_FLAGS_DONT_START_NEXT_PACKET

#define SRB_FLAGS_DONT_START_NEXT_PACKET   0x00800000

Definition at line 380 of file storport.h.

◆ SRB_FLAGS_FREE_SENSE_BUFFER

#define SRB_FLAGS_FREE_SENSE_BUFFER   0x00000400

Definition at line 369 of file storport.h.

◆ SRB_FLAGS_IS_ACTIVE

#define SRB_FLAGS_IS_ACTIVE   0x00010000

Definition at line 371 of file storport.h.

◆ SRB_FLAGS_NO_DATA_TRANSFER

#define SRB_FLAGS_NO_DATA_TRANSFER   0x00000000

Definition at line 364 of file storport.h.

◆ SRB_FLAGS_NO_KEEP_AWAKE

#define SRB_FLAGS_NO_KEEP_AWAKE   0x00100000

Definition at line 376 of file storport.h.

◆ SRB_FLAGS_NO_QUEUE_FREEZE

#define SRB_FLAGS_NO_QUEUE_FREEZE   0x00000100

Definition at line 367 of file storport.h.

◆ SRB_FLAGS_PORT_DRIVER_ALLOCSENSE

#define SRB_FLAGS_PORT_DRIVER_ALLOCSENSE   0x00200000

Definition at line 377 of file storport.h.

◆ SRB_FLAGS_PORT_DRIVER_RESERVED

#define SRB_FLAGS_PORT_DRIVER_RESERVED   0x0F000000

Definition at line 382 of file storport.h.

◆ SRB_FLAGS_PORT_DRIVER_SENSEHASPORT

#define SRB_FLAGS_PORT_DRIVER_SENSEHASPORT   0x00400000

Definition at line 379 of file storport.h.

◆ SRB_FLAGS_QUEUE_ACTION_ENABLE

#define SRB_FLAGS_QUEUE_ACTION_ENABLE   0x00000002

Definition at line 356 of file storport.h.

◆ SRB_FLAGS_SGLIST_FROM_POOL

#define SRB_FLAGS_SGLIST_FROM_POOL   0x00040000

Definition at line 373 of file storport.h.

◆ SRB_FLAGS_UNSPECIFIED_DIRECTION

#define SRB_FLAGS_UNSPECIFIED_DIRECTION   (SRB_FLAGS_DATA_IN | SRB_FLAGS_DATA_OUT)

Definition at line 365 of file storport.h.

◆ SRB_FUNCTION_ABORT_COMMAND

#define SRB_FUNCTION_ABORT_COMMAND   0x10

Definition at line 305 of file storport.h.

◆ SRB_FUNCTION_ATTACH_DEVICE

#define SRB_FUNCTION_ATTACH_DEVICE   0x05

Definition at line 301 of file storport.h.

◆ SRB_FUNCTION_CLAIM_DEVICE

#define SRB_FUNCTION_CLAIM_DEVICE   0x01

Definition at line 297 of file storport.h.

◆ SRB_FUNCTION_DUMP_POINTERS

#define SRB_FUNCTION_DUMP_POINTERS   0x26

Definition at line 321 of file storport.h.

◆ SRB_FUNCTION_EXECUTE_SCSI

#define SRB_FUNCTION_EXECUTE_SCSI   0x00

Definition at line 296 of file storport.h.

◆ SRB_FUNCTION_FLUSH

#define SRB_FUNCTION_FLUSH   0x08

Definition at line 304 of file storport.h.

◆ SRB_FUNCTION_FLUSH_QUEUE

#define SRB_FUNCTION_FLUSH_QUEUE   0x15

Definition at line 310 of file storport.h.

◆ SRB_FUNCTION_IO_CONTROL

#define SRB_FUNCTION_IO_CONTROL   0x02

Definition at line 298 of file storport.h.

◆ SRB_FUNCTION_LINK_TIMEOUT_COMPLETE

#define SRB_FUNCTION_LINK_TIMEOUT_COMPLETE   0x23

Definition at line 318 of file storport.h.

◆ SRB_FUNCTION_LINK_TIMEOUT_OCCURRED

#define SRB_FUNCTION_LINK_TIMEOUT_OCCURRED   0x22

Definition at line 317 of file storport.h.

◆ SRB_FUNCTION_LOCK_QUEUE

#define SRB_FUNCTION_LOCK_QUEUE   0x18

Definition at line 313 of file storport.h.

◆ SRB_FUNCTION_PNP

#define SRB_FUNCTION_PNP   0x25

Definition at line 320 of file storport.h.

◆ SRB_FUNCTION_POWER

#define SRB_FUNCTION_POWER   0x24

Definition at line 319 of file storport.h.

◆ SRB_FUNCTION_RECEIVE_EVENT

#define SRB_FUNCTION_RECEIVE_EVENT   0x03

Definition at line 299 of file storport.h.

◆ SRB_FUNCTION_RELEASE_DEVICE

#define SRB_FUNCTION_RELEASE_DEVICE   0x06

Definition at line 302 of file storport.h.

◆ SRB_FUNCTION_RELEASE_QUEUE

#define SRB_FUNCTION_RELEASE_QUEUE   0x04

Definition at line 300 of file storport.h.

◆ SRB_FUNCTION_RELEASE_RECOVERY

#define SRB_FUNCTION_RELEASE_RECOVERY   0x11

Definition at line 306 of file storport.h.

◆ SRB_FUNCTION_REMOVE_DEVICE

#define SRB_FUNCTION_REMOVE_DEVICE   0x16

Definition at line 311 of file storport.h.

◆ SRB_FUNCTION_RESET_BUS

#define SRB_FUNCTION_RESET_BUS   0x12

Definition at line 307 of file storport.h.

◆ SRB_FUNCTION_RESET_DEVICE

#define SRB_FUNCTION_RESET_DEVICE   0x13

Definition at line 308 of file storport.h.

◆ SRB_FUNCTION_RESET_LOGICAL_UNIT

#define SRB_FUNCTION_RESET_LOGICAL_UNIT   0x20

Definition at line 315 of file storport.h.

◆ SRB_FUNCTION_SET_LINK_TIMEOUT

#define SRB_FUNCTION_SET_LINK_TIMEOUT   0x21

Definition at line 316 of file storport.h.

◆ SRB_FUNCTION_SHUTDOWN

#define SRB_FUNCTION_SHUTDOWN   0x07

Definition at line 303 of file storport.h.

◆ SRB_FUNCTION_TERMINATE_IO

#define SRB_FUNCTION_TERMINATE_IO   0x14

Definition at line 309 of file storport.h.

◆ SRB_FUNCTION_UNLOCK_QUEUE

#define SRB_FUNCTION_UNLOCK_QUEUE   0x19

Definition at line 314 of file storport.h.

◆ SRB_FUNCTION_WMI

#define SRB_FUNCTION_WMI   0x17

Definition at line 312 of file storport.h.

◆ SRB_HEAD_OF_QUEUE_TAG_REQUEST

#define SRB_HEAD_OF_QUEUE_TAG_REQUEST   0x21

Definition at line 386 of file storport.h.

◆ SRB_ORDERED_QUEUE_TAG_REQUEST

#define SRB_ORDERED_QUEUE_TAG_REQUEST   0x22

Definition at line 387 of file storport.h.

◆ SRB_PNP_FLAGS_ADAPTER_REQUEST

#define SRB_PNP_FLAGS_ADAPTER_REQUEST   0x01

Definition at line 391 of file storport.h.

◆ SRB_POWER_FLAGS_ADAPTER_REQUEST

#define SRB_POWER_FLAGS_ADAPTER_REQUEST   0x01

Definition at line 390 of file storport.h.

◆ SRB_SIMPLE_TAG_REQUEST

#define SRB_SIMPLE_TAG_REQUEST   0x20

Definition at line 385 of file storport.h.

◆ SRB_STATUS

Definition at line 354 of file storport.h.

◆ SRB_STATUS_ABORT_FAILED

#define SRB_STATUS_ABORT_FAILED   0x03

Definition at line 326 of file storport.h.

◆ SRB_STATUS_ABORTED

#define SRB_STATUS_ABORTED   0x02

Definition at line 325 of file storport.h.

◆ SRB_STATUS_AUTOSENSE_VALID

#define SRB_STATUS_AUTOSENSE_VALID   0x80

Definition at line 353 of file storport.h.

◆ SRB_STATUS_BAD_FUNCTION

#define SRB_STATUS_BAD_FUNCTION   0x22

Definition at line 347 of file storport.h.

◆ SRB_STATUS_BAD_SRB_BLOCK_LENGTH

#define SRB_STATUS_BAD_SRB_BLOCK_LENGTH   0x15

Definition at line 343 of file storport.h.

◆ SRB_STATUS_BUS_RESET

#define SRB_STATUS_BUS_RESET   0x0E

Definition at line 336 of file storport.h.

◆ SRB_STATUS_BUSY

#define SRB_STATUS_BUSY   0x05

Definition at line 328 of file storport.h.

◆ SRB_STATUS_COMMAND_TIMEOUT

#define SRB_STATUS_COMMAND_TIMEOUT   0x0B

Definition at line 334 of file storport.h.

◆ SRB_STATUS_DATA_OVERRUN

#define SRB_STATUS_DATA_OVERRUN   0x12

Definition at line 340 of file storport.h.

◆ SRB_STATUS_ERROR

#define SRB_STATUS_ERROR   0x04

Definition at line 327 of file storport.h.

◆ SRB_STATUS_ERROR_RECOVERY

#define SRB_STATUS_ERROR_RECOVERY   0x23

Definition at line 348 of file storport.h.

◆ SRB_STATUS_INTERNAL_ERROR

#define SRB_STATUS_INTERNAL_ERROR   0x30

Definition at line 351 of file storport.h.

◆ SRB_STATUS_INVALID_LUN

#define SRB_STATUS_INVALID_LUN   0x20

Definition at line 345 of file storport.h.

◆ SRB_STATUS_INVALID_PATH_ID

#define SRB_STATUS_INVALID_PATH_ID   0x07

Definition at line 330 of file storport.h.

◆ SRB_STATUS_INVALID_REQUEST

#define SRB_STATUS_INVALID_REQUEST   0x06

Definition at line 329 of file storport.h.

◆ SRB_STATUS_INVALID_TARGET_ID

#define SRB_STATUS_INVALID_TARGET_ID   0x21

Definition at line 346 of file storport.h.

◆ SRB_STATUS_LINK_DOWN

#define SRB_STATUS_LINK_DOWN   0x25

Definition at line 350 of file storport.h.

◆ SRB_STATUS_MESSAGE_REJECTED

#define SRB_STATUS_MESSAGE_REJECTED   0x0D

Definition at line 335 of file storport.h.

◆ SRB_STATUS_NO_DEVICE

#define SRB_STATUS_NO_DEVICE   0x08

Definition at line 331 of file storport.h.

◆ SRB_STATUS_NO_HBA

#define SRB_STATUS_NO_HBA   0x11

Definition at line 339 of file storport.h.

◆ SRB_STATUS_NOT_POWERED

#define SRB_STATUS_NOT_POWERED   0x24

Definition at line 349 of file storport.h.

◆ SRB_STATUS_PARITY_ERROR

#define SRB_STATUS_PARITY_ERROR   0x0F

Definition at line 337 of file storport.h.

◆ SRB_STATUS_PENDING

#define SRB_STATUS_PENDING   0x00

Definition at line 323 of file storport.h.

◆ SRB_STATUS_PHASE_SEQUENCE_FAILURE

#define SRB_STATUS_PHASE_SEQUENCE_FAILURE   0x14

Definition at line 342 of file storport.h.

◆ SRB_STATUS_QUEUE_FROZEN

#define SRB_STATUS_QUEUE_FROZEN   0x40

Definition at line 352 of file storport.h.

◆ SRB_STATUS_REQUEST_FLUSHED

#define SRB_STATUS_REQUEST_FLUSHED   0x16

Definition at line 344 of file storport.h.

◆ SRB_STATUS_REQUEST_SENSE_FAILED

#define SRB_STATUS_REQUEST_SENSE_FAILED   0x10

Definition at line 338 of file storport.h.

◆ SRB_STATUS_SELECTION_TIMEOUT

#define SRB_STATUS_SELECTION_TIMEOUT   0x0A

Definition at line 333 of file storport.h.

◆ SRB_STATUS_SUCCESS

#define SRB_STATUS_SUCCESS   0x01

Definition at line 324 of file storport.h.

◆ SRB_STATUS_TIMEOUT

#define SRB_STATUS_TIMEOUT   0x09

Definition at line 332 of file storport.h.

◆ SRB_STATUS_UNEXPECTED_BUS_FREE

#define SRB_STATUS_UNEXPECTED_BUS_FREE   0x13

Definition at line 341 of file storport.h.

◆ SRB_WMI_FLAGS_ADAPTER_REQUEST

#define SRB_WMI_FLAGS_ADAPTER_REQUEST   0x01

Definition at line 389 of file storport.h.

◆ STOR_MAP_ALL_BUFFERS

#define STOR_MAP_ALL_BUFFERS   (1)

Definition at line 394 of file storport.h.

◆ STOR_MAP_NO_BUFFERS

#define STOR_MAP_NO_BUFFERS   (0)

Definition at line 393 of file storport.h.

◆ STOR_MAP_NON_READ_WRITE_BUFFERS

#define STOR_MAP_NON_READ_WRITE_BUFFERS   (2)

Definition at line 395 of file storport.h.

◆ STORPORT_API

#define STORPORT_API   DECLSPEC_IMPORT

Definition at line 33 of file storport.h.

◆ StorPortCopyMemory

#define StorPortCopyMemory (   Destination,
  Source,
  Length 
)    memcpy((Destination),(Source),(Length))

Definition at line 2355 of file storport.h.

◆ VPD_DEVICE_IDENTIFIERS

#define VPD_DEVICE_IDENTIFIERS   0x83

Definition at line 399 of file storport.h.

◆ VPD_EXTENDED_INQUIRY_DATA

#define VPD_EXTENDED_INQUIRY_DATA   0x86

Definition at line 403 of file storport.h.

◆ VPD_MEDIA_SERIAL_NUMBER

#define VPD_MEDIA_SERIAL_NUMBER   0x84

Definition at line 400 of file storport.h.

◆ VPD_MODE_PAGE_POLICY

#define VPD_MODE_PAGE_POLICY   0x87

Definition at line 404 of file storport.h.

◆ VPD_NETWORK_MANAGEMENT_ADDRESSES

#define VPD_NETWORK_MANAGEMENT_ADDRESSES   0x85

Definition at line 402 of file storport.h.

◆ VPD_SCSI_PORTS

#define VPD_SCSI_PORTS   0x88

Definition at line 405 of file storport.h.

◆ VPD_SERIAL_NUMBER

#define VPD_SERIAL_NUMBER   0x80

Definition at line 398 of file storport.h.

◆ VPD_SOFTWARE_INTERFACE_IDENTIFIERS

#define VPD_SOFTWARE_INTERFACE_IDENTIFIERS   0x84

Definition at line 401 of file storport.h.

◆ VPD_SUPPORTED_PAGES

#define VPD_SUPPORTED_PAGES   0x00

Definition at line 397 of file storport.h.

◆ WRITE_ONCE_READ_MULTIPLE_DEVICE

#define WRITE_ONCE_READ_MULTIPLE_DEVICE   0x04

Definition at line 40 of file storport.h.

Typedef Documentation

◆ ACCESS_RANGE

◆ CDB

typedef union _CDB CDB

◆ Context

typedef _In_ PVOID Context

Definition at line 2223 of file storport.h.

◆ DPC_BUFFER

◆ EIGHT_BYTE

typedef union _EIGHT_BYTE EIGHT_BYTE

◆ FOUR_BYTE

typedef union _FOUR_BYTE FOUR_BYTE

◆ GETSGSTATUS

◆ HW_INITIALIZATION_DATA

◆ INQUIRYDATA

◆ LUN_LIST

◆ MEMORY_REGION

◆ MESSAGE_INTERRUPT_INFORMATION

◆ MODE_PARAMETER_BLOCK

◆ MODE_PARAMETER_HEADER

◆ MODE_PARAMETER_HEADER10

◆ PACCESS_RANGE

◆ PCDB

typedef union _CDB * PCDB

◆ PEIGHT_BYTE

typedef union _EIGHT_BYTE * PEIGHT_BYTE

◆ PERF_CONFIGURATION_DATA

◆ PFOUR_BYTE

typedef union _FOUR_BYTE * PFOUR_BYTE

◆ PGETSGSTATUS

◆ PHW_ADAPTER_CONTROL

typedef SCSI_ADAPTER_CONTROL_STATUS(NTAPI * PHW_ADAPTER_CONTROL) (IN PVOID DeviceExtension, IN SCSI_ADAPTER_CONTROL_TYPE ControlType, IN PVOID Parameters)

Definition at line 2201 of file storport.h.

◆ PHW_ADAPTER_STATE

typedef BOOLEAN(NTAPI * PHW_ADAPTER_STATE) (IN PVOID DeviceExtension, IN PVOID Context, IN BOOLEAN SaveState)

Definition at line 2194 of file storport.h.

◆ PHW_BUILDIO

typedef BOOLEAN(NTAPI * PHW_BUILDIO) (_In_ PVOID DeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb)

Definition at line 2151 of file storport.h.

◆ PHW_DMA_STARTED

typedef VOID(NTAPI * PHW_DMA_STARTED) (_In_ PVOID DeviceExtension)

Definition at line 2173 of file storport.h.

◆ PHW_DPC_ROUTINE

typedef VOID(* PHW_DPC_ROUTINE) (_In_ PSTOR_DPC Dpc, _In_ PVOID HwDeviceExtension, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2)

Definition at line 2213 of file storport.h.

◆ PHW_FIND_ADAPTER

typedef ULONG(NTAPI * PHW_FIND_ADAPTER) (IN PVOID DeviceExtension, IN PVOID HwContext, IN PVOID BusInformation, IN PCHAR ArgumentString, IN OUT PPORT_CONFIGURATION_INFORMATION ConfigInfo, OUT PBOOLEAN Again)

Definition at line 2178 of file storport.h.

◆ PHW_INITIALIZATION_DATA

◆ PHW_INITIALIZE

typedef BOOLEAN(NTAPI * PHW_INITIALIZE) (_In_ PVOID DeviceExtension)

Definition at line 2146 of file storport.h.

◆ PHW_INTERRUPT

typedef BOOLEAN(NTAPI * PHW_INTERRUPT) (_In_ PVOID DeviceExtension)

Definition at line 2163 of file storport.h.

◆ PHW_PASSIVE_INITIALIZE_ROUTINE

typedef BOOLEAN(* PHW_PASSIVE_INITIALIZE_ROUTINE) (_In_ PVOID DeviceExtension)

Definition at line 2208 of file storport.h.

◆ PHW_RESET_BUS

typedef BOOLEAN(NTAPI * PHW_RESET_BUS) (IN PVOID DeviceExtension, IN ULONG PathId)

Definition at line 2188 of file storport.h.

◆ PHW_STARTIO

typedef BOOLEAN(NTAPI * PHW_STARTIO) (_In_ PVOID DeviceExtension, _In_ PSCSI_REQUEST_BLOCK Srb)

Definition at line 2157 of file storport.h.

◆ PHW_TIMER

typedef VOID(NTAPI * PHW_TIMER) (_In_ PVOID DeviceExtension)

Definition at line 2168 of file storport.h.

◆ PINQUIRYDATA

◆ PLUN_LIST

◆ PMEMORY_REGION

◆ PMESSAGE_INTERRUPT_INFORMATION

◆ PMODE_PARAMETER_BLOCK

◆ PMODE_PARAMETER_HEADER

◆ PMODE_PARAMETER_HEADER10

◆ PORT_CONFIGURATION_INFORMATION

◆ PPERF_CONFIGURATION_DATA

◆ PPORT_CONFIGURATION_INFORMATION

◆ PpostScaterGatherExecute

Definition at line 2229 of file storport.h.

◆ PREAD_CAPACITY_DATA

◆ PREAD_CAPACITY_DATA_EX

◆ PSCSI_ADAPTER_CONTROL_STATUS

◆ PSCSI_ADAPTER_CONTROL_TYPE

◆ PSCSI_NOTIFICATION_TYPE

◆ PSCSI_PNP_REQUEST_BLOCK

◆ PSCSI_POWER_REQUEST_BLOCK

◆ PSCSI_REQUEST_BLOCK

◆ PSCSI_WMI_REQUEST_BLOCK

◆ PSENSE_DATA

◆ PSTARTIO_PERFORMANCE_PARAMETERS

◆ PSTOR_DEVICE_CAPABILITIES

◆ PSTOR_DEVICE_POWER_STATE

◆ PSTOR_DPC

◆ PSTOR_LOCK_HANDLE

◆ PSTOR_LOG_EVENT_DETAILS

◆ PSTOR_PNP_ACTION

◆ PSTOR_POWER_ACTION

◆ PSTOR_SCATTER_GATHER_ELEMENT

◆ PSTOR_SCATTER_GATHER_LIST

◆ PSTOR_SYNCHRONIZED_ACCESS

typedef STOR_SYNCHRONIZED_ACCESS* PSTOR_SYNCHRONIZED_ACCESS

Definition at line 2225 of file storport.h.

◆ PSTORPORT_EXTENDED_FUNCTIONS

◆ PSTORPORT_FUNCTION_CODE

◆ PStorPortAllocatePool

typedef PVOID(NTAPI * PStorPortAllocatePool) (_In_ ULONG NumberOfBytes, _In_ ULONG Tag, _In_ PVOID HwDeviceExtension, _Out_ PVOID *PMdl)

Definition at line 2271 of file storport.h.

◆ PStorPortBuildScatterGatherList

typedef GETSGSTATUS(NTAPI * PStorPortBuildScatterGatherList) (_In_ PVOID HwDeviceExtension, _In_ PVOID Mdl, _In_ PVOID CurrentVa, _In_ ULONG Length, _In_ PpostScaterGatherExecute ExecutionRoutine, _In_ PVOID Context, _In_ BOOLEAN WriteToDevice, _Inout_ PVOID ScatterGatherBuffer, _In_ ULONG ScatterGatherBufferLength)

Definition at line 2251 of file storport.h.

◆ PStorPortFreePool

typedef VOID(NTAPI * PStorPortFreePool) (_In_ PVOID PMemory, _In_ PVOID HwDeviceExtension, _In_opt_ PVOID PMdl)

Definition at line 2264 of file storport.h.

◆ PStorPortGetMessageInterruptInformation

typedef BOOLEAN(NTAPI * PStorPortGetMessageInterruptInformation) (_In_ PVOID HwDeviceExtension, _In_ ULONG MessageId, _Out_ PMESSAGE_INTERRUPT_INFORMATION InterruptInfo)

Definition at line 2237 of file storport.h.

◆ PStorPortGetSystemAddress

typedef PVOID(NTAPI * PStorPortGetSystemAddress) (_In_ PSCSI_REQUEST_BLOCK Srb)

Definition at line 2279 of file storport.h.

◆ PStorPortPutScatterGatherList

typedef VOID(NTAPI * PStorPortPutScatterGatherList) (_In_ PVOID HwDeviceExtension, _In_ PSTOR_SCATTER_GATHER_LIST ScatterGatherList, _In_ BOOLEAN WriteToDevice)

Definition at line 2244 of file storport.h.

◆ PTWO_BYTE

typedef union _TWO_BYTE * PTWO_BYTE

◆ PVPD_ASSOCIATION

◆ PVPD_CODE_SET

◆ PVPD_IDENTIFICATION_DESCRIPTOR

◆ PVPD_IDENTIFICATION_PAGE

◆ PVPD_IDENTIFIER_TYPE

◆ PVPD_MEDIA_SERIAL_NUMBER_PAGE

◆ PVPD_SERIAL_NUMBER_PAGE

◆ PVPD_SUPPORTED_PAGES_PAGE

◆ READ_CAPACITY_DATA

◆ READ_CAPACITY_DATA_EX

◆ SCSI_ADAPTER_CONTROL_STATUS

◆ SCSI_ADAPTER_CONTROL_TYPE

◆ SCSI_NOTIFICATION_TYPE

◆ SCSI_PNP_REQUEST_BLOCK

◆ SCSI_POWER_REQUEST_BLOCK

◆ SCSI_REQUEST_BLOCK

◆ SCSI_WMI_REQUEST_BLOCK

◆ SENSE_DATA

◆ STARTIO_PERFORMANCE_PARAMETERS

◆ STOR_DEVICE_CAPABILITIES

◆ STOR_DEVICE_POWER_STATE

◆ STOR_DMA_WIDTH

◆ STOR_DPC

◆ STOR_EVENT_ASSOCIATION_ENUM

◆ STOR_LOCK_HANDLE

◆ STOR_LOG_EVENT_DETAILS

◆ STOR_PHYSICAL_ADDRESS

Definition at line 1973 of file storport.h.

◆ STOR_PNP_ACTION

◆ STOR_POWER_ACTION

◆ STOR_SCATTER_GATHER_ELEMENT

◆ STOR_SCATTER_GATHER_LIST

◆ STOR_SPINLOCK

◆ STOR_SYNCHRONIZATION_MODEL

◆ STORPORT_EXTENDED_FUNCTIONS

◆ STORPORT_FUNCTION_CODE

◆ TWO_BYTE

typedef union _TWO_BYTE TWO_BYTE

◆ VPD_ASSOCIATION

◆ VPD_CODE_SET

◆ VPD_IDENTIFICATION_DESCRIPTOR

◆ VPD_IDENTIFICATION_PAGE

◆ VPD_IDENTIFIER_TYPE

◆ VPD_MEDIA_SERIAL_NUMBER_PAGE

◆ VPD_SERIAL_NUMBER_PAGE

◆ VPD_SUPPORTED_PAGES_PAGE

Enumeration Type Documentation

◆ _GETSGSTATUS

Enumerator
SG_ALLOCATED 
SG_BUFFER_TOO_SMALL 

Definition at line 590 of file storport.h.

591 {
592  SG_ALLOCATED = 0,
enum _GETSGSTATUS * PGETSGSTATUS
enum _GETSGSTATUS GETSGSTATUS

◆ _SCSI_ADAPTER_CONTROL_STATUS

Enumerator
ScsiAdapterControlSuccess 
ScsiAdapterControlUnsuccessful 
ScsiAdapterControlSuccess 
ScsiAdapterControlUnsuccessful 
ScsiAdapterControlSuccess 
ScsiAdapterControlUnsuccessful 

Definition at line 456 of file storport.h.

457 {
enum _SCSI_ADAPTER_CONTROL_STATUS SCSI_ADAPTER_CONTROL_STATUS
enum _SCSI_ADAPTER_CONTROL_STATUS * PSCSI_ADAPTER_CONTROL_STATUS

◆ _SCSI_ADAPTER_CONTROL_TYPE

Enumerator
ScsiQuerySupportedControlTypes 
ScsiStopAdapter 
ScsiRestartAdapter 
ScsiSetBootConfig 
ScsiSetRunningConfig 
ScsiAdapterControlMax 
MakeAdapterControlTypeSizeOfUlong 
ScsiQuerySupportedControlTypes 
ScsiStopAdapter 
ScsiRestartAdapter 
ScsiSetBootConfig 
ScsiSetRunningConfig 
ScsiAdapterControlMax 
MakeAdapterControlTypeSizeOfUlong 
ScsiQuerySupportedControlTypes 
ScsiStopAdapter 
ScsiRestartAdapter 
ScsiSetBootConfig 
ScsiSetRunningConfig 
ScsiAdapterControlMax 
MakeAdapterControlTypeSizeOfUlong 

Definition at line 445 of file storport.h.

◆ _SCSI_NOTIFICATION_TYPE

Enumerator
RequestComplete 
NextRequest 
NextLuRequest 
ResetDetected 
CallDisableInterrupts 
CallEnableInterrupts 
RequestTimerCall 
BusChangeDetected 
WMIEvent 
WMIReregister 
RequestComplete 
NextRequest 
NextLuRequest 
ResetDetected 
CallDisableInterrupts 
CallEnableInterrupts 
RequestTimerCall 
BusChangeDetected 
WMIEvent 
WMIReregister 
LinkUp 
LinkDown 
QueryTickCount 
BufferOverrunDetected 
TraceNotification 
RequestComplete 
NextRequest 
NextLuRequest 
ResetDetected 
_obsolete1 
_obsolete2 
RequestTimerCall 
BusChangeDetected 
WMIEvent 
WMIReregister 
LinkUp 
LinkDown 
QueryTickCount 
BufferOverrunDetected 
TraceNotification 
GetExtendedFunctionTable 
EnablePassiveInitialization 
InitializeDpc 
IssueDpc 
AcquireSpinLock 
ReleaseSpinLock 

Definition at line 462 of file storport.h.

463 {
465  NextRequest,
468  _obsolete1,
469  _obsolete2,
472  WMIEvent,
474  LinkUp,
475  LinkDown,
482  IssueDpc,
enum _SCSI_NOTIFICATION_TYPE * PSCSI_NOTIFICATION_TYPE
enum _SCSI_NOTIFICATION_TYPE SCSI_NOTIFICATION_TYPE

◆ _STOR_DEVICE_POWER_STATE

Enumerator
StorPowerDeviceUnspecified 
StorPowerDeviceD0 
StorPowerDeviceD1 
StorPowerDeviceD2 
StorPowerDeviceD3 
StorPowerDeviceMaximum 
StorPowerDeviceUnspecified 
StorPowerDeviceD0 
StorPowerDeviceD1 
StorPowerDeviceD2 
StorPowerDeviceD3 
StorPowerDeviceMaximum 

Definition at line 487 of file storport.h.

◆ _STOR_DMA_WIDTH

Enumerator
DmaUnknown 
Dma32Bit 
Dma64BitScatterGather 
Dma64Bit 

Definition at line 430 of file storport.h.

431 {
432  DmaUnknown,
433  Dma32Bit,
435  Dma64Bit
enum _STOR_DMA_WIDTH STOR_DMA_WIDTH

◆ _STOR_EVENT_ASSOCIATION_ENUM

Enumerator
StorEventAdapterAssociation 
StorEventLunAssociation 
StorEventTargetAssociation 
StorEventInvalidAssociation 

Definition at line 582 of file storport.h.

◆ _STOR_PNP_ACTION

Enumerator
StorStartDevice 
StorRemoveDevice 
StorStopDevice 
StorQueryCapabilities 
StorQueryResourceRequirements 
StorFilterResourceRequirements 
StorSurpriseRemoval 
StorStartDevice 
StorRemoveDevice 
StorStopDevice 
StorQueryCapabilities 
StorQueryResourceRequirements 
StorFilterResourceRequirements 
StorSurpriseRemoval 

Definition at line 509 of file storport.h.

◆ _STOR_POWER_ACTION

Enumerator
StorPowerActionNone 
StorPowerActionReserved 
StorPowerActionSleep 
StorPowerActionHibernate 
StorPowerActionShutdown 
StorPowerActionShutdownReset 
StorPowerActionShutdownOff 
StorPowerActionWarmEject 
StorPowerActionNone 
StorPowerActionReserved 
StorPowerActionSleep 
StorPowerActionHibernate 
StorPowerActionShutdown 
StorPowerActionShutdownReset 
StorPowerActionShutdownOff 
StorPowerActionWarmEject 

Definition at line 497 of file storport.h.

◆ _STOR_SPINLOCK

Enumerator
DpcLock 
StartIoLock 
InterruptLock 

Definition at line 438 of file storport.h.

439 {
440  DpcLock = 1,
441  StartIoLock,
443 } STOR_SPINLOCK;
enum _STOR_SPINLOCK STOR_SPINLOCK

◆ _STOR_SYNCHRONIZATION_MODEL

Enumerator
StorSynchronizeHalfDuplex 
StorSynchronizeFullDuplex 

Definition at line 424 of file storport.h.

◆ _STORPORT_FUNCTION_CODE

Enumerator
ExtFunctionAllocatePool 
ExtFunctionFreePool 
ExtFunctionAllocateMdl 
ExtFunctionFreeMdl 
ExtFunctionBuildMdlForNonPagedPool 
ExtFunctionGetSystemAddress 
ExtFunctionGetOriginalMdl 
ExtFunctionCompleteServiceIrp 
ExtFunctionGetDeviceObjects 
ExtFunctionBuildScatterGatherList 
ExtFunctionPutScatterGatherList 
ExtFunctionAcquireMSISpinLock 
ExtFunctionReleaseMSISpinLock 
ExtFunctionGetMessageInterruptInformation 
ExtFunctionInitializePerformanceOptimizations 
ExtFunctionGetStartIoPerformanceParameters 
ExtFunctionLogSystemEvent 
ExtFunctionGetCurrentProcessorNumber 
ExtFunctionGetActiveGroupCount 
ExtFunctionGetGroupAffinity 
ExtFunctionGetActiveNodeCount 
ExtFunctionGetNodeAffinity 
ExtFunctionGetHighestNodeNumber 
ExtFunctionGetLogicalProcessorRelationship 
ExtFunctionAllocateContiguousMemorySpecifyCacheNode 
ExtFunctionFreeContiguousMemorySpecifyCache 

Definition at line 550 of file storport.h.

551 {
569 #if (NTDDI_VERSION >= NTDDI_WIN7)
579 #endif
enum _STORPORT_FUNCTION_CODE STORPORT_FUNCTION_CODE
enum _STORPORT_FUNCTION_CODE * PSTORPORT_FUNCTION_CODE

◆ _VPD_ASSOCIATION

Enumerator
VpdAssocDevice 
VpdAssocPort 
VpdAssocTarget 
VpdAssocReserved1 
VpdAssocReserved2 
VpdAssocDevice 
VpdAssocPort 
VpdAssocTarget 
VpdAssocReserved1 
VpdAssocReserved2 

Definition at line 528 of file storport.h.

529 {
530  VpdAssocDevice = 0,
531  VpdAssocPort = 1,
532  VpdAssocTarget = 2,
533  VpdAssocReserved1 = 3,
enum _VPD_ASSOCIATION VPD_ASSOCIATION
enum _VPD_ASSOCIATION * PVPD_ASSOCIATION

◆ _VPD_CODE_SET

Enumerator
VpdCodeSetReserved 
VpdCodeSetBinary 
VpdCodeSetAscii 
VpdCodeSetUTF8 
VpdCodeSetReserved 
VpdCodeSetBinary 
VpdCodeSetAscii 
VpdCodeSetUTF8 

Definition at line 520 of file storport.h.

521 {
522  VpdCodeSetReserved = 0,
523  VpdCodeSetBinary = 1,
524  VpdCodeSetAscii = 2,
525  VpdCodeSetUTF8 = 3
enum _VPD_CODE_SET VPD_CODE_SET
enum _VPD_CODE_SET * PVPD_CODE_SET

◆ _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 537 of file storport.h.

Function Documentation

◆ BOOLEAN()

typedef BOOLEAN ( NTAPI  STOR_SYNCHRONIZED_ACCESS)

◆ StorPortAcquireMSISpinLock()

FORCEINLINE ULONG StorPortAcquireMSISpinLock ( _In_ PVOID  HwDeviceExtension,
_In_ ULONG  MessageId,
_In_ PULONG  OldIrql 
)

Definition at line 3091 of file storport.h.

3095 {
3097  HwDeviceExtension,
3098  MessageId,
3099  OldIrql);
3100 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:803

◆ StorPortAcquireSpinLock()

FORCEINLINE VOID StorPortAcquireSpinLock ( _In_ PVOID  DeviceExtension,
_In_ STOR_SPINLOCK  SpinLock,
_In_ PVOID  LockContext,
_Inout_ PSTOR_LOCK_HANDLE  LockHandle 
)

Definition at line 2904 of file storport.h.

2909 {
2911  DeviceExtension,
2912  SpinLock,
2913  LockContext,
2914  LockHandle);
2915 }
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
STORPORT_API VOID __cdecl StorPortNotification(_In_ SCSI_NOTIFICATION_TYPE NotificationType, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:1093
*LockHandle LockHandle _Out_ PKLOCK_QUEUE_HANDLE LockHandle
Definition: kefuncs.h:742

Referenced by AhciCommandCompletionDpcRoutine(), AhciHwResetBus(), and AhciProcessIO().

◆ StorPortAllocateMdl()

FORCEINLINE ULONG StorPortAllocateMdl ( _In_ PVOID  HwDeviceExtension,
_In_ PVOID  BufferPointer,
_In_ ULONG  NumberOfBytes,
_Out_ PVOID Mdl 
)

Definition at line 2964 of file storport.h.

2969 {
2971  HwDeviceExtension,
2972  BufferPointer,
2973  NumberOfBytes,
2974  Mdl);
2975 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
Definition: iotypes.h:998

◆ StorPortAllocatePool()

FORCEINLINE ULONG StorPortAllocatePool ( _In_ PVOID  HwDeviceExtension,
_In_ ULONG  NumberOfBytes,
_In_ ULONG  Tag,
_Out_ PVOID BufferPointer 
)

Definition at line 2937 of file storport.h.

2943 {
2945  HwDeviceExtension,
2946  NumberOfBytes,
2947  Tag,
2948  BufferPointer);
2949 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609
IN ULONG IN ULONG Tag
Definition: evtlib.h:159
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
Definition: iotypes.h:998

◆ StorPortAllocateRegistryBuffer()

STORPORT_API PUCHAR NTAPI StorPortAllocateRegistryBuffer ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Length 
)

Definition at line 472 of file storport.c.

475 {
476  DPRINT1("StorPortAllocateRegistryBuffer()\n");
478  return NULL;
479 }
smooth NULL
Definition: ftsmooth.c:416
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ StorPortBuildMdlForNonPagedPool()

FORCEINLINE ULONG StorPortBuildMdlForNonPagedPool ( _In_ PVOID  HwDeviceExtension,
_Inout_ PVOID  Mdl 
)

Definition at line 2990 of file storport.h.

2993 {
2995  HwDeviceExtension,
2996  Mdl);
2997 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609

◆ StorPortBuildScatterGatherList()

FORCEINLINE ULONG StorPortBuildScatterGatherList ( _In_ PVOID  HwDeviceExtension,
_In_ PVOID  Mdl,
_In_ PVOID  CurrentVa,
_In_ ULONG  Length,
_In_ PpostScaterGatherExecute  ExecutionRoutine,
_In_ PVOID  Context,
_In_ BOOLEAN  WriteToDevice,
_Inout_ PVOID  ScatterGatherBuffer,
_In_ ULONG  ScatterGatherBufferLength 
)

Definition at line 3053 of file storport.h.

3063 {
3065  HwDeviceExtension,
3066  Mdl,
3067  CurrentVa,
3068  Length,
3070  Context,
3071  WriteToDevice,
3072  ScatterGatherBuffer,
3073  ScatterGatherBufferLength);
3074 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_In_ PDEVICE_OBJECT _In_ ULONG _In_ PDRIVER_CONTROL ExecutionRoutine
Definition: iofuncs.h:1393

◆ StorPortBusy()

STORPORT_API BOOLEAN NTAPI StorPortBusy ( _In_ PVOID  HwDeviceExtension,
_In_ ULONG  RequestsToComplete 
)

Definition at line 488 of file storport.c.

491 {
492  DPRINT1("StorPortBuzy()\n");
494  return FALSE;
495 }
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ StorPortCompleteRequest()

STORPORT_API VOID NTAPI StorPortCompleteRequest ( _In_ PVOID  HwDeviceExtension,
_In_ UCHAR  PathId,
_In_ UCHAR  TargetId,
_In_ UCHAR  Lun,
_In_ UCHAR  SrbStatus 
)

Definition at line 504 of file storport.c.

510 {
511  DPRINT1("StorPortCompleteRequest()\n");
513 }
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ StorPortCompleteServiceIrp()

FORCEINLINE ULONG StorPortCompleteServiceIrp ( _In_ PVOID  HwDeviceExtension,
_In_ PVOID  Irp 
)

Definition at line 3027 of file storport.h.

3030 {
3032  HwDeviceExtension,
3033  Irp);
3034 }
_In_ PIRP Irp
Definition: csq.h:116
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609

◆ StorPortConvertPhysicalAddressToUlong64()

STORPORT_API ULONG64 NTAPI StorPortConvertPhysicalAddressToUlong64 ( _In_ STOR_PHYSICAL_ADDRESS  Address)

◆ StorPortConvertUlong64ToPhysicalAddress()

STORPORT_API STOR_PHYSICAL_ADDRESS NTAPI StorPortConvertUlong64ToPhysicalAddress ( _In_ ULONG64  UlongAddress)

◆ StorPortDebugPrint()

STORPORT_API VOID __cdecl StorPortDebugPrint ( _In_ ULONG  DebugPrintLevel,
_In_ PCCHAR  DebugMessage,
  ... 
)

◆ StorPortDeviceBusy()

STORPORT_API BOOLEAN NTAPI StorPortDeviceBusy ( _In_ PVOID  HwDeviceExtension,
_In_ UCHAR  PathId,
_In_ UCHAR  TargetId,
_In_ UCHAR  Lun,
_In_ ULONG  RequestsToComplete 
)

Definition at line 573 of file storport.c.

579 {
580  DPRINT1("StorPortDeviceBusy()\n");
582  return FALSE;
583 }
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ StorPortDeviceReady()

STORPORT_API BOOLEAN NTAPI StorPortDeviceReady ( _In_ PVOID  HwDeviceExtension,
_In_ UCHAR  PathId,
_In_ UCHAR  TargetId,
_In_ UCHAR  Lun 
)

Definition at line 592 of file storport.c.

597 {
598  DPRINT1("StorPortDeviceReady()\n");
600  return FALSE;
601 }
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ StorPortEnablePassiveInitialization()

FORCEINLINE BOOLEAN StorPortEnablePassiveInitialization ( _In_ PVOID  DeviceExtension,
_In_ PHW_PASSIVE_INITIALIZE_ROUTINE  HwPassiveInitializeRoutine 
)

Definition at line 2857 of file storport.h.

2860 {
2861  LONG Succ;
2862  Succ = FALSE;
2864  DeviceExtension,
2865  HwPassiveInitializeRoutine,
2866  &Succ);
2867  return (BOOLEAN)Succ;
2868 }
long LONG
Definition: pedump.c:60
unsigned char BOOLEAN
STORPORT_API VOID __cdecl StorPortNotification(_In_ SCSI_NOTIFICATION_TYPE NotificationType, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:1093

Referenced by AhciHwInitialize().

◆ StorPortExtendedFunction()

◆ StorPortFreeDeviceBase()

STORPORT_API VOID NTAPI StorPortFreeDeviceBase ( _In_ PVOID  HwDeviceExtension,
_In_ PVOID  MappedAddress 
)

Definition at line 627 of file storport.c.

630 {
631  DPRINT1("StorPortFreeDeviceBase(%p %p)\n",
632  HwDeviceExtension, MappedAddress);
633 }
#define DPRINT1
Definition: precomp.h:8

◆ StorPortFreeMdl()

FORCEINLINE ULONG StorPortFreeMdl ( _In_ PVOID  HwDeviceExtension,
_In_ PVOID  Mdl 
)

Definition at line 2979 of file storport.h.

2982 {
2984  HwDeviceExtension,
2985  Mdl);
2986 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609

◆ StorPortFreePool()

FORCEINLINE ULONG StorPortFreePool ( _In_ PVOID  HwDeviceExtension,
_In_ PVOID  BufferPointer 
)

Definition at line 2953 of file storport.h.

2956 {
2958  HwDeviceExtension,
2959  BufferPointer);
2960 }
STORPORT_API ULONG StorPortExtendedFunction(_In_ STORPORT_FUNCTION_CODE FunctionCode, _In_ PVOID HwDeviceExtension,...)
Definition: storport.c:609

◆ StorPortFreeRegistryBuffer()

STORPORT_API VOID NTAPI StorPortFreeRegistryBuffer ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Buffer 
)

Definition at line 642 of file storport.c.

645 {
646  DPRINT1("StorPortFreeRegistryBuffer()\n");
648 }
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ StorPortGetBusData()

STORPORT_API ULONG NTAPI StorPortGetBusData ( _In_ PVOID  DeviceExtension,
_In_ ULONG  BusDataType,
_In_ ULONG  SystemIoBusNumber,
_In_ ULONG  SlotNumber,
_Out_ _When_(Length !=0, _Out_writes_bytes_(Length)) PVOID  Buffer,
_In_ ULONG  Length 
)

Definition at line 657 of file storport.c.

664 {
665  PMINIPORT_DEVICE_EXTENSION MiniportExtension;
668 
669  DPRINT1("StorPortGetBusData(%p %lu %lu %lu %p %lu)\n",
670  DeviceExtension, BusDataType, SystemIoBusNumber, SlotNumber, Buffer, Length);
671 
672  /* Get the miniport extension */
673  MiniportExtension = CONTAINING_RECORD(DeviceExtension,
675  HwDeviceExtension);
676  DPRINT1("DeviceExtension %p MiniportExtension %p\n",
677  DeviceExtension, MiniportExtension);
678 
679  Interface = &MiniportExtension->Miniport->DeviceExtension->BusInterface;
680 
681