Go to the documentation of this file.
4 #ifndef _SCSI_SCSI_IU_H
5 #define _SCSI_SCSI_IU_H 1
11 #define SIU_SNSVALID 0x2
12 #define SIU_RSPVALID 0x1
19 #define SIU_PKTFAIL_OFFSET(siu) 12
20 #define SIU_PKTFAIL_CODE(siu) (scsi_4btoul((siu)->pkt_failures) & 0xFF)
21 #define SIU_PFC_NONE 0
22 #define SIU_PFC_CIU_FIELDS_INVALID 2
23 #define SIU_PFC_TMF_NOT_SUPPORTED 4
24 #define SIU_PFC_TMF_FAILED 5
25 #define SIU_PFC_INVALID_TYPE_CODE 6
26 #define SIU_PFC_ILLEGAL_REQUEST 7
27 #define SIU_SENSE_OFFSET(siu) \
28 (12 + (((siu)->flags & SIU_RSPVALID) \
29 ? scsi_4btoul((siu)->pkt_failures_length) \
32 #define SIU_TASKMGMT_NONE 0x00
33 #define SIU_TASKMGMT_ABORT_TASK 0x01
34 #define SIU_TASKMGMT_ABORT_TASK_SET 0x02
35 #define SIU_TASKMGMT_CLEAR_TASK_SET 0x04
36 #define SIU_TASKMGMT_LUN_RESET 0x08
37 #define SIU_TASKMGMT_TARGET_RESET 0x20
38 #define SIU_TASKMGMT_CLEAR_ACA 0x40