ReactOS 0.4.15-dev-7958-gcd0bb1a
scsiscan.h File Reference

Go to the source code of this file.

Classes

struct  _SCSISCAN_CMD
 
struct  _SCSISCAN_INFO
 

Macros

#define IOCTL_SCSISCAN_CMD    CTL_CODE(FILE_DEVICE_SCANNER, SCSISCAN_CMD_CODE, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define IOCTL_SCSISCAN_LOCKDEVICE    CTL_CODE(FILE_DEVICE_SCANNER, SCSISCAN_LOCKDEVICE, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define IOCTL_SCSISCAN_SET_TIMEOUT    CTL_CODE(FILE_DEVICE_SCANNER, SCSISCAN_SET_TIMEOUT, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_SCSISCAN_GET_INFO    CTL_CODE(FILE_DEVICE_SCANNER, SCSISCAN_GET_INFO, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define IOCTL_SCSISCAN_UNLOCKDEVICE    CTL_CODE(FILE_DEVICE_SCANNER, SCSISCAN_UNLOCKDEVICE, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define SRB_FLAGS_DISABLE_SYNCH_TRANSFER   0x00000008
 
#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_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_QUEUE_FROZEN   0x40
 
#define SRB_STATUS_AUTOSENSE_VALID   0x80
 
#define SRB_STATUS(Status)   (Status & ~(SRB_STATUS_AUTOSENSE_VALID | SRB_STATUS_QUEUE_FROZEN))
 
#define MAX_STRING   128
 
#define SCSISCAN_RESERVED   0x000
 
#define SCSISCAN_CMD_CODE   0x004
 
#define SCSISCAN_LOCKDEVICE   0x005
 
#define SCSISCAN_UNLOCKDEVICE   0x006
 
#define SCSISCAN_SET_TIMEOUT   0x007
 
#define SCSISCAN_GET_INFO   0x008
 

Typedefs

typedef struct _SCSISCAN_CMD SCSISCAN_CMD
 
typedef struct _SCSISCAN_CMDPSCSISCAN_CMD
 
typedef struct _SCSISCAN_INFO SCSISCAN_INFO
 
typedef struct _SCSISCAN_INFOPSCSISCAN_INFO
 

Macro Definition Documentation

◆ IOCTL_SCSISCAN_CMD

Definition at line 30 of file scsiscan.h.

◆ IOCTL_SCSISCAN_GET_INFO

Definition at line 39 of file scsiscan.h.

◆ IOCTL_SCSISCAN_LOCKDEVICE

Definition at line 33 of file scsiscan.h.

◆ IOCTL_SCSISCAN_SET_TIMEOUT

Definition at line 36 of file scsiscan.h.

◆ IOCTL_SCSISCAN_UNLOCKDEVICE

Definition at line 42 of file scsiscan.h.

◆ MAX_STRING

#define MAX_STRING   128

Definition at line 99 of file scsiscan.h.

◆ SCSISCAN_CMD_CODE

#define SCSISCAN_CMD_CODE   0x004

Definition at line 103 of file scsiscan.h.

◆ SCSISCAN_GET_INFO

#define SCSISCAN_GET_INFO   0x008

Definition at line 107 of file scsiscan.h.

◆ SCSISCAN_LOCKDEVICE

#define SCSISCAN_LOCKDEVICE   0x005

Definition at line 104 of file scsiscan.h.

◆ SCSISCAN_RESERVED

#define SCSISCAN_RESERVED   0x000

Definition at line 102 of file scsiscan.h.

◆ SCSISCAN_SET_TIMEOUT

#define SCSISCAN_SET_TIMEOUT   0x007

Definition at line 106 of file scsiscan.h.

◆ SCSISCAN_UNLOCKDEVICE

#define SCSISCAN_UNLOCKDEVICE   0x006

Definition at line 105 of file scsiscan.h.

◆ SRB_FLAGS_DATA_IN

#define SRB_FLAGS_DATA_IN   0x00000040

Definition at line 49 of file scsiscan.h.

◆ SRB_FLAGS_DATA_OUT

#define SRB_FLAGS_DATA_OUT   0x00000080

Definition at line 50 of file scsiscan.h.

◆ SRB_FLAGS_DISABLE_AUTOSENSE

#define SRB_FLAGS_DISABLE_AUTOSENSE   0x00000020

Definition at line 48 of file scsiscan.h.

◆ SRB_FLAGS_DISABLE_SYNCH_TRANSFER

#define SRB_FLAGS_DISABLE_SYNCH_TRANSFER   0x00000008

Definition at line 47 of file scsiscan.h.

◆ SRB_FLAGS_NO_DATA_TRANSFER

#define SRB_FLAGS_NO_DATA_TRANSFER   0x00000000

Definition at line 51 of file scsiscan.h.

◆ SRB_STATUS

Definition at line 83 of file scsiscan.h.

◆ SRB_STATUS_ABORT_FAILED

#define SRB_STATUS_ABORT_FAILED   0x03

Definition at line 57 of file scsiscan.h.

◆ SRB_STATUS_ABORTED

#define SRB_STATUS_ABORTED   0x02

Definition at line 56 of file scsiscan.h.

◆ SRB_STATUS_AUTOSENSE_VALID

#define SRB_STATUS_AUTOSENSE_VALID   0x80

Definition at line 81 of file scsiscan.h.

◆ SRB_STATUS_BAD_FUNCTION

#define SRB_STATUS_BAD_FUNCTION   0x22

Definition at line 78 of file scsiscan.h.

◆ SRB_STATUS_BAD_SRB_BLOCK_LENGTH

#define SRB_STATUS_BAD_SRB_BLOCK_LENGTH   0x15

Definition at line 74 of file scsiscan.h.

◆ SRB_STATUS_BUS_RESET

#define SRB_STATUS_BUS_RESET   0x0E

Definition at line 67 of file scsiscan.h.

◆ SRB_STATUS_BUSY

#define SRB_STATUS_BUSY   0x05

Definition at line 59 of file scsiscan.h.

◆ SRB_STATUS_COMMAND_TIMEOUT

#define SRB_STATUS_COMMAND_TIMEOUT   0x0B

Definition at line 65 of file scsiscan.h.

◆ SRB_STATUS_DATA_OVERRUN

#define SRB_STATUS_DATA_OVERRUN   0x12

Definition at line 71 of file scsiscan.h.

◆ SRB_STATUS_ERROR

#define SRB_STATUS_ERROR   0x04

Definition at line 58 of file scsiscan.h.

◆ SRB_STATUS_ERROR_RECOVERY

#define SRB_STATUS_ERROR_RECOVERY   0x23

Definition at line 79 of file scsiscan.h.

◆ SRB_STATUS_INVALID_LUN

#define SRB_STATUS_INVALID_LUN   0x20

Definition at line 76 of file scsiscan.h.

◆ SRB_STATUS_INVALID_PATH_ID

#define SRB_STATUS_INVALID_PATH_ID   0x07

Definition at line 61 of file scsiscan.h.

◆ SRB_STATUS_INVALID_REQUEST

#define SRB_STATUS_INVALID_REQUEST   0x06

Definition at line 60 of file scsiscan.h.

◆ SRB_STATUS_INVALID_TARGET_ID

#define SRB_STATUS_INVALID_TARGET_ID   0x21

Definition at line 77 of file scsiscan.h.

◆ SRB_STATUS_MESSAGE_REJECTED

#define SRB_STATUS_MESSAGE_REJECTED   0x0D

Definition at line 66 of file scsiscan.h.

◆ SRB_STATUS_NO_DEVICE

#define SRB_STATUS_NO_DEVICE   0x08

Definition at line 62 of file scsiscan.h.

◆ SRB_STATUS_NO_HBA

#define SRB_STATUS_NO_HBA   0x11

Definition at line 70 of file scsiscan.h.

◆ SRB_STATUS_PARITY_ERROR

#define SRB_STATUS_PARITY_ERROR   0x0F

Definition at line 68 of file scsiscan.h.

◆ SRB_STATUS_PENDING

#define SRB_STATUS_PENDING   0x00

Definition at line 54 of file scsiscan.h.

◆ SRB_STATUS_PHASE_SEQUENCE_FAILURE

#define SRB_STATUS_PHASE_SEQUENCE_FAILURE   0x14

Definition at line 73 of file scsiscan.h.

◆ SRB_STATUS_QUEUE_FROZEN

#define SRB_STATUS_QUEUE_FROZEN   0x40

Definition at line 80 of file scsiscan.h.

◆ SRB_STATUS_REQUEST_FLUSHED

#define SRB_STATUS_REQUEST_FLUSHED   0x16

Definition at line 75 of file scsiscan.h.

◆ SRB_STATUS_REQUEST_SENSE_FAILED

#define SRB_STATUS_REQUEST_SENSE_FAILED   0x10

Definition at line 69 of file scsiscan.h.

◆ SRB_STATUS_SELECTION_TIMEOUT

#define SRB_STATUS_SELECTION_TIMEOUT   0x0A

Definition at line 64 of file scsiscan.h.

◆ SRB_STATUS_SUCCESS

#define SRB_STATUS_SUCCESS   0x01

Definition at line 55 of file scsiscan.h.

◆ SRB_STATUS_TIMEOUT

#define SRB_STATUS_TIMEOUT   0x09

Definition at line 63 of file scsiscan.h.

◆ SRB_STATUS_UNEXPECTED_BUS_FREE

#define SRB_STATUS_UNEXPECTED_BUS_FREE   0x13

Definition at line 72 of file scsiscan.h.

Typedef Documentation

◆ PSCSISCAN_CMD

◆ PSCSISCAN_INFO

◆ SCSISCAN_CMD

◆ SCSISCAN_INFO