more header reshuffling
PATCH 1/1 more header reshuffling
This creates scsi_eh.h, scsi_request.h and scsi_tcq.h
drivers/scsi/hosts.h +0 -3
@@ -30,9 +30,6 @@#include <scsi/scsi_host.h> -extern void scsi_report_bus_reset (struct Scsi_Host *,int ); -extern void scsi_report_device_reset (struct Scsi_Host *,int ,int ); -struct scsi_driver {struct module *owner;struct device_driver gendrv;
drivers/scsi/scsi.h +3 -159
185 lines not on this page · raw message
include/scsi/scsi_eh.h new file +21 -0
@@ -0,0 +1,21 @@ +#ifndef _SCSI_SCSI_EH_H +#define _SCSI_SCSI_EH_H + +extern void scsi_add_timer (struct scsi_cmnd *,int , +void (*)(struct scsi_cmnd *)); +extern int scsi_delete_timer (struct scsi_cmnd *); +extern void scsi_report_bus_reset (struct Scsi_Host *,int ); +extern void scsi_report_device_reset (struct Scsi_Host *,int ,int ); +extern int scsi_block_when_processing_errors (struct scsi_device *); +extern void scsi_sleep (int ); + +/* +* Reset request from external source +*/ +#define SCSI_TRY_RESET_DEVICE 1 +#define SCSI_TRY_RESET_BUS 2 +#define SCSI_TRY_RESET_HOST 3 + +extern int scsi_reset_provider (struct scsi_device *,int ); + +#endif /* _SCSI_SCSI_EH_H */
include/scsi/scsi_request.h new file +58 -0
58 lines not on this page · raw message
include/scsi/scsi_tcq.h new file +94 -0
94 lines not on this page · raw message