diff options
author | <hch@lst.de> | 2005-04-03 14:52:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-18 12:31:52 -0500 |
commit | b6651129cc27d56a9cbefcb5f713cea7706fd6b7 (patch) | |
tree | 2b3f664a499ff568cefb5718bfa0b4998a4c43be /include | |
parent | a757e64cfa400391041ed7953f0290c34a820c93 (diff) | |
download | linux-3.10-b6651129cc27d56a9cbefcb5f713cea7706fd6b7.tar.gz linux-3.10-b6651129cc27d56a9cbefcb5f713cea7706fd6b7.tar.bz2 linux-3.10-b6651129cc27d56a9cbefcb5f713cea7706fd6b7.zip |
[PATCH] consolidate timeout defintions in scsi.h
Adapted from a patch in SuSE's kernel SRPM.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 1d54c063ae5..3507b3d7c0e 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h @@ -360,6 +360,15 @@ struct scsi_lun { #define sense_error(sense) ((sense) & 0xf) #define sense_valid(sense) ((sense) & 0x80); +/* + * default timeouts +*/ +#define FORMAT_UNIT_TIMEOUT (2 * 60 * 60 * HZ) +#define START_STOP_TIMEOUT (60 * HZ) +#define MOVE_MEDIUM_TIMEOUT (5 * 60 * HZ) +#define READ_ELEMENT_STATUS_TIMEOUT (5 * 60 * HZ) +#define READ_DEFECT_DATA_TIMEOUT (60 * HZ ) + #define IDENTIFY_BASE 0x80 #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ |