5 #include <scsi/scsi_cmnd.h>
7 /* Common header for all IUs */
12 } __attribute__((__packed__));
17 IU_ID_RESPONSE = 0x04,
18 IU_ID_TASK_MGMT = 0x05,
19 IU_ID_READ_READY = 0x06,
20 IU_ID_WRITE_READY = 0x07,
24 TMF_ABORT_TASK = 0x01,
25 TMF_ABORT_TASK_SET = 0x02,
26 TMF_CLEAR_TASK_SET = 0x04,
27 TMF_LOGICAL_UNIT_RESET = 0x08,
28 TMF_I_T_NEXUS_RESET = 0x10,
30 TMF_QUERY_TASK = 0x80,
31 TMF_QUERY_TASK_SET = 0x81,
32 TMF_QUERY_ASYNC_EVENT = 0x82,
36 RC_TMF_COMPLETE = 0x00,
37 RC_INVALID_INFO_UNIT = 0x02,
38 RC_TMF_NOT_SUPPORTED = 0x04,
40 RC_TMF_SUCCEEDED = 0x08,
41 RC_INCORRECT_LUN = 0x09,
42 RC_OVERLAPPED_TAG = 0x0a,
54 __u8 cdb[16]; /* XXX: Overflow-checking tools may misunderstand */
55 } __attribute__((__packed__));
65 } __attribute__((__packed__));
68 * Also used for the Read Ready and Write Ready IUs since they have the
69 * same first four bytes
79 __u8 sense[SCSI_SENSE_BUFFERSIZE];
80 } __attribute__((__packed__));
86 __u8 add_response_info[3];
88 } __attribute__((__packed__));
90 struct usb_pipe_usage_descriptor {
96 } __attribute__((__packed__));
102 DATA_OUT_PIPE_ID = 4,