Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/storvsc/hv_vstorage.h
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* SRB (SCSI Request Block) Status Codes | * SRB (SCSI Request Block) Status Codes | ||||
*/ | */ | ||||
#define SRB_STATUS_PENDING 0x00 | #define SRB_STATUS_PENDING 0x00 | ||||
#define SRB_STATUS_SUCCESS 0x01 | #define SRB_STATUS_SUCCESS 0x01 | ||||
#define SRB_STATUS_ABORTED 0x02 | #define SRB_STATUS_ABORTED 0x02 | ||||
#define SRB_STATUS_ABORT_FAILED 0x03 | |||||
#define SRB_STATUS_ERROR 0x04 | #define SRB_STATUS_ERROR 0x04 | ||||
#define SRB_STATUS_BUSY 0x05 | #define SRB_STATUS_INVALID_LUN 0x20 | ||||
/** | /** | ||||
* SRB Status Masks (can be combined with above status codes) | * SRB Status Masks (can be combined with above status codes) | ||||
*/ | */ | ||||
#define SRB_STATUS_QUEUE_FROZEN 0x40 | #define SRB_STATUS_QUEUE_FROZEN 0x40 | ||||
#define SRB_STATUS_AUTOSENSE_VALID 0x80 | #define SRB_STATUS_AUTOSENSE_VALID 0x80 | ||||
#define SRB_STATUS_INVALID_LUN 0X20 | |||||
#define SRB_STATUS(status) \ | |||||
((status) & ~(SRB_STATUS_AUTOSENSE_VALID | SRB_STATUS_QUEUE_FROZEN)) | |||||
decui_microsoft.com: add () for 'status' | |||||
/* | /* | ||||
* SRB Flag Bits | * SRB Flag Bits | ||||
*/ | */ | ||||
#define SRB_FLAGS_QUEUE_ACTION_ENABLE 0x00000002 | #define SRB_FLAGS_QUEUE_ACTION_ENABLE 0x00000002 | ||||
#define SRB_FLAGS_DISABLE_DISCONNECT 0x00000004 | #define SRB_FLAGS_DISABLE_DISCONNECT 0x00000004 | ||||
#define SRB_FLAGS_DISABLE_SYNCH_TRANSFER 0x00000008 | #define SRB_FLAGS_DISABLE_SYNCH_TRANSFER 0x00000008 | ||||
#define SRB_FLAGS_BYPASS_FROZEN_QUEUE 0x00000010 | #define SRB_FLAGS_BYPASS_FROZEN_QUEUE 0x00000010 | ||||
Show All 24 Lines |
add () for 'status'