Lines Matching +full:0 +full:x5300

25 #define SCSI_MAX_PROT_SG_SEGMENTS	0xFFFF
31 #define SCAN_WILD_CARD ~0
48 status &= 0xfe; in scsi_status_is_good()
81 #define SCSI_W_LUN_BASE 0xc100
88 return (lun & 0xff00) == SCSI_W_LUN_BASE; in scsi_is_wlun()
101 if (status < 0) in scsi_status_is_check_condition()
103 status &= 0xfe; in scsi_status_is_check_condition()
111 #define COMMAND_COMPLETE 0x00
112 #define EXTENDED_MESSAGE 0x01
113 #define EXTENDED_MODIFY_DATA_POINTER 0x00
114 #define EXTENDED_SDTR 0x01
115 #define EXTENDED_EXTENDED_IDENTIFY 0x02 /* SCSI-I only */
116 #define EXTENDED_WDTR 0x03
117 #define EXTENDED_PPR 0x04
118 #define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05
119 #define SAVE_POINTERS 0x02
120 #define RESTORE_POINTERS 0x03
121 #define DISCONNECT 0x04
122 #define INITIATOR_ERROR 0x05
123 #define ABORT_TASK_SET 0x06
124 #define MESSAGE_REJECT 0x07
125 #define NOP 0x08
126 #define MSG_PARITY_ERROR 0x09
127 #define LINKED_CMD_COMPLETE 0x0a
128 #define LINKED_FLG_CMD_COMPLETE 0x0b
129 #define TARGET_RESET 0x0c
130 #define ABORT_TASK 0x0d
131 #define CLEAR_TASK_SET 0x0e
132 #define INITIATE_RECOVERY 0x0f /* SCSI-II only */
133 #define RELEASE_RECOVERY 0x10 /* SCSI-II only */
134 #define CLEAR_ACA 0x16
135 #define LOGICAL_UNIT_RESET 0x17
136 #define SIMPLE_QUEUE_TAG 0x20
137 #define HEAD_OF_QUEUE_TAG 0x21
138 #define ORDERED_QUEUE_TAG 0x22
139 #define IGNORE_WIDE_RESIDUE 0x23
140 #define ACA 0x24
141 #define QAS_REQUEST 0x55
151 #define DID_OK 0x00 /* NO error */
152 #define DID_NO_CONNECT 0x01 /* Couldn't connect before timeout period */
153 #define DID_BUS_BUSY 0x02 /* BUS stayed busy through time out period */
154 #define DID_TIME_OUT 0x03 /* TIMED OUT for other reason */
155 #define DID_BAD_TARGET 0x04 /* BAD target. */
156 #define DID_ABORT 0x05 /* Told to abort for some other reason */
157 #define DID_PARITY 0x06 /* Parity error */
158 #define DID_ERROR 0x07 /* Internal error */
159 #define DID_RESET 0x08 /* Reset by somebody. */
160 #define DID_BAD_INTR 0x09 /* Got an interrupt we weren't expecting. */
161 #define DID_PASSTHROUGH 0x0a /* Force command past mid-layer */
162 #define DID_SOFT_ERROR 0x0b /* The low level driver just wish a retry */
163 #define DID_IMM_RETRY 0x0c /* Retry without decrementing retry count */
164 #define DID_REQUEUE 0x0d /* Requeue command (no immediate retry) also
166 #define DID_TRANSPORT_DISRUPTED 0x0e /* Transport error disrupted execution
170 #define DID_TRANSPORT_FAILFAST 0x0f /* Transport class fastfailed the io */
171 #define DID_TARGET_FAILURE 0x10 /* Permanent target failure, do not retry on
173 #define DID_NEXUS_FAILURE 0x11 /* Permanent nexus failure, retry on other
175 #define DID_ALLOC_FAILURE 0x12 /* Space allocation on the device failed */
176 #define DID_MEDIUM_ERROR 0x13 /* Medium error */
177 #define DRIVER_OK 0x00 /* Driver status */
183 #define DRIVER_BUSY 0x01
184 #define DRIVER_SOFT 0x02
185 #define DRIVER_MEDIA 0x03
186 #define DRIVER_ERROR 0x04
188 #define DRIVER_INVALID 0x05
189 #define DRIVER_TIMEOUT 0x06
190 #define DRIVER_HARD 0x07
191 #define DRIVER_SENSE 0x08
197 #define NEEDS_RETRY 0x2001
198 #define SUCCESS 0x2002
199 #define FAILED 0x2003
200 #define QUEUED 0x2004
201 #define SOFT_ERROR 0x2005
202 #define ADD_TO_MLQUEUE 0x2006
203 #define TIMEOUT_ERROR 0x2007
204 #define SCSI_RETURN_NOT_HANDLED 0x2008
205 #define FAST_IO_FAIL 0x2009
210 #define SCSI_MLQUEUE_HOST_BUSY 0x1055
211 #define SCSI_MLQUEUE_DEVICE_BUSY 0x1056
212 #define SCSI_MLQUEUE_EH_RETRY 0x1057
213 #define SCSI_MLQUEUE_TARGET_BUSY 0x1058
225 #define status_byte(result) (((result) >> 1) & 0x7f)
226 #define msg_byte(result) (((result) >> 8) & 0xff)
227 #define host_byte(result) (((result) >> 16) & 0xff)
228 #define driver_byte(result) (((result) >> 24) & 0xff)
230 #define sense_class(sense) (((sense) >> 4) & 0x7)
231 #define sense_error(sense) ((sense) & 0xf)
232 #define sense_valid(sense) ((sense) & 0x80)
244 #define IDENTIFY_BASE 0x80
246 ((can_disconnect) ? 0x40 : 0) |\
247 ((lun) & 0x07))
256 #define SCSI_UNKNOWN 0
267 #define SCSI_INQ_PQ_CON 0x00
268 #define SCSI_INQ_PQ_NOT_CON 0x01
269 #define SCSI_INQ_PQ_NOT_CAP 0x03
275 * Note that include/linux/cdrom.h also defines IOCTL 0x5300 - 0x5395
279 #define SCSI_IOCTL_GET_IDLUN 0x5382
281 /* 0x5383 and 0x5384 were used for SCSI_IOCTL_TAGGED_{ENABLE,DISABLE} */
284 #define SCSI_IOCTL_PROBE_HOST 0x5385
287 #define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
290 #define SCSI_IOCTL_GET_PCI 0x5387