VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / include / scsi / scsi_eh.h
1 #ifndef _SCSI_SCSI_EH_H
2 #define _SCSI_SCSI_EH_H
3
4 struct scsi_cmnd;
5 struct scsi_device;
6 struct Scsi_Host;
7
8 extern void scsi_add_timer(struct scsi_cmnd *, int,
9                            void (*)(struct scsi_cmnd *));
10 extern int scsi_delete_timer(struct scsi_cmnd *);
11 extern void scsi_report_bus_reset(struct Scsi_Host *, int);
12 extern void scsi_report_device_reset(struct Scsi_Host *, int, int);
13 extern int scsi_block_when_processing_errors(struct scsi_device *);
14 extern void scsi_sleep(int);
15
16 /*
17  * Reset request from external source
18  */
19 #define SCSI_TRY_RESET_DEVICE   1
20 #define SCSI_TRY_RESET_BUS      2
21 #define SCSI_TRY_RESET_HOST     3
22
23 extern int scsi_reset_provider(struct scsi_device *, int);
24
25 #endif /* _SCSI_SCSI_EH_H */