aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r--include/scsi/scsi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index 1d54c063ae52..659ecf48fb4a 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -295,6 +295,8 @@ struct scsi_lun {
295#define DID_PASSTHROUGH 0x0a /* Force command past mid-layer */ 295#define DID_PASSTHROUGH 0x0a /* Force command past mid-layer */
296#define DID_SOFT_ERROR 0x0b /* The low level driver just wish a retry */ 296#define DID_SOFT_ERROR 0x0b /* The low level driver just wish a retry */
297#define DID_IMM_RETRY 0x0c /* Retry without decrementing retry count */ 297#define DID_IMM_RETRY 0x0c /* Retry without decrementing retry count */
298#define DID_REQUEUE 0x0d /* Requeue command (no immediate retry) also
299 * without decrementing the retry count */
298#define DRIVER_OK 0x00 /* Driver status */ 300#define DRIVER_OK 0x00 /* Driver status */
299 301
300/* 302/*
@@ -360,6 +362,15 @@ struct scsi_lun {
360#define sense_error(sense) ((sense) & 0xf) 362#define sense_error(sense) ((sense) & 0xf)
361#define sense_valid(sense) ((sense) & 0x80); 363#define sense_valid(sense) ((sense) & 0x80);
362 364
365/*
366 * default timeouts
367*/
368#define FORMAT_UNIT_TIMEOUT (2 * 60 * 60 * HZ)
369#define START_STOP_TIMEOUT (60 * HZ)
370#define MOVE_MEDIUM_TIMEOUT (5 * 60 * HZ)
371#define READ_ELEMENT_STATUS_TIMEOUT (5 * 60 * HZ)
372#define READ_DEFECT_DATA_TIMEOUT (60 * HZ )
373
363 374
364#define IDENTIFY_BASE 0x80 375#define IDENTIFY_BASE 0x80
365#define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ 376#define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\