vserver 1.9.3
[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
15 /*
16  * Reset request from external source
17  */
18 #define SCSI_TRY_RESET_DEVICE   1
19 #define SCSI_TRY_RESET_BUS      2
20 #define SCSI_TRY_RESET_HOST     3
21
22 extern int scsi_reset_provider(struct scsi_device *, int);
23
24 #endif /* _SCSI_SCSI_EH_H */