Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
scsi_iu.h File Reference

Go to the source code of this file.

Data Structures

struct  scsi_status_iu_header
 

Macros

#define SIU_SNSVALID   0x2
 
#define SIU_RSPVALID   0x1
 
#define SIU_PKTFAIL_OFFSET(siu)   12
 
#define SIU_PKTFAIL_CODE(siu)   (scsi_4btoul((siu)->pkt_failures) & 0xFF)
 
#define SIU_PFC_NONE   0
 
#define SIU_PFC_CIU_FIELDS_INVALID   2
 
#define SIU_PFC_TMF_NOT_SUPPORTED   4
 
#define SIU_PFC_TMF_FAILED   5
 
#define SIU_PFC_INVALID_TYPE_CODE   6
 
#define SIU_PFC_ILLEGAL_REQUEST   7
 
#define SIU_SENSE_OFFSET(siu)
 
#define SIU_TASKMGMT_NONE   0x00
 
#define SIU_TASKMGMT_ABORT_TASK   0x01
 
#define SIU_TASKMGMT_ABORT_TASK_SET   0x02
 
#define SIU_TASKMGMT_CLEAR_TASK_SET   0x04
 
#define SIU_TASKMGMT_LUN_RESET   0x08
 
#define SIU_TASKMGMT_TARGET_RESET   0x20
 
#define SIU_TASKMGMT_CLEAR_ACA   0x40
 

Macro Definition Documentation

#define SIU_PFC_CIU_FIELDS_INVALID   2

Definition at line 22 of file scsi_iu.h.

#define SIU_PFC_ILLEGAL_REQUEST   7

Definition at line 26 of file scsi_iu.h.

#define SIU_PFC_INVALID_TYPE_CODE   6

Definition at line 25 of file scsi_iu.h.

#define SIU_PFC_NONE   0

Definition at line 21 of file scsi_iu.h.

#define SIU_PFC_TMF_FAILED   5

Definition at line 24 of file scsi_iu.h.

#define SIU_PFC_TMF_NOT_SUPPORTED   4

Definition at line 23 of file scsi_iu.h.

#define SIU_PKTFAIL_CODE (   siu)    (scsi_4btoul((siu)->pkt_failures) & 0xFF)

Definition at line 20 of file scsi_iu.h.

#define SIU_PKTFAIL_OFFSET (   siu)    12

Definition at line 19 of file scsi_iu.h.

#define SIU_RSPVALID   0x1

Definition at line 12 of file scsi_iu.h.

#define SIU_SENSE_OFFSET (   siu)
Value:
(12 + (((siu)->flags & SIU_RSPVALID) \
? scsi_4btoul((siu)->pkt_failures_length) \
: 0))

Definition at line 27 of file scsi_iu.h.

#define SIU_SNSVALID   0x2

Definition at line 11 of file scsi_iu.h.

#define SIU_TASKMGMT_ABORT_TASK   0x01

Definition at line 33 of file scsi_iu.h.

#define SIU_TASKMGMT_ABORT_TASK_SET   0x02

Definition at line 34 of file scsi_iu.h.

#define SIU_TASKMGMT_CLEAR_ACA   0x40

Definition at line 38 of file scsi_iu.h.

#define SIU_TASKMGMT_CLEAR_TASK_SET   0x04

Definition at line 35 of file scsi_iu.h.

#define SIU_TASKMGMT_LUN_RESET   0x08

Definition at line 36 of file scsi_iu.h.

#define SIU_TASKMGMT_NONE   0x00

Definition at line 32 of file scsi_iu.h.

#define SIU_TASKMGMT_TARGET_RESET   0x20

Definition at line 37 of file scsi_iu.h.