diff options
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r-- | include/scsi/scsi_host.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 7f1f411d07af..68f461b7a835 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -129,6 +129,11 @@ struct scsi_host_template { | |||
129 | * the LLD. When the driver is finished processing the command | 129 | * the LLD. When the driver is finished processing the command |
130 | * the done callback is invoked. | 130 | * the done callback is invoked. |
131 | * | 131 | * |
132 | * This is called to inform the LLD to transfer | ||
133 | * cmd->request_bufflen bytes. The cmd->use_sg speciefies the | ||
134 | * number of scatterlist entried in the command and | ||
135 | * cmd->request_buffer contains the scatterlist. | ||
136 | * | ||
132 | * return values: see queuecommand | 137 | * return values: see queuecommand |
133 | * | 138 | * |
134 | * If the LLD accepts the cmd, it should set the result to an | 139 | * If the LLD accepts the cmd, it should set the result to an |
@@ -139,20 +144,6 @@ struct scsi_host_template { | |||
139 | /* TODO: rename */ | 144 | /* TODO: rename */ |
140 | int (* transfer_response)(struct scsi_cmnd *, | 145 | int (* transfer_response)(struct scsi_cmnd *, |
141 | void (*done)(struct scsi_cmnd *)); | 146 | void (*done)(struct scsi_cmnd *)); |
142 | /* | ||
143 | * This is called to inform the LLD to transfer cmd->request_bufflen | ||
144 | * bytes of the cmd at cmd->offset in the cmd. The cmd->use_sg | ||
145 | * speciefies the number of scatterlist entried in the command | ||
146 | * and cmd->request_buffer contains the scatterlist. | ||
147 | * | ||
148 | * If the command cannot be processed in one transfer_data call | ||
149 | * becuase a scatterlist within the LLD's limits cannot be | ||
150 | * created then transfer_data will be called multiple times. | ||
151 | * It is initially called from process context, and later | ||
152 | * calls are from the interrup context. | ||
153 | */ | ||
154 | int (* transfer_data)(struct scsi_cmnd *, | ||
155 | void (*done)(struct scsi_cmnd *)); | ||
156 | 147 | ||
157 | /* Used as callback for the completion of task management request. */ | 148 | /* Used as callback for the completion of task management request. */ |
158 | int (* tsk_mgmt_response)(u64 mid, int result); | 149 | int (* tsk_mgmt_response)(u64 mid, int result); |
@@ -335,6 +326,19 @@ struct scsi_host_template { | |||
335 | int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int); | 326 | int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int); |
336 | 327 | ||
337 | /* | 328 | /* |
329 | * This is an optional routine that allows the transport to become | ||
330 | * involved when a scsi io timer fires. The return value tells the | ||
331 | * timer routine how to finish the io timeout handling: | ||
332 | * EH_HANDLED: I fixed the error, please complete the command | ||
333 | * EH_RESET_TIMER: I need more time, reset the timer and | ||
334 | * begin counting again | ||
335 | * EH_NOT_HANDLED Begin normal error recovery | ||
336 | * | ||
337 | * Status: OPTIONAL | ||
338 | */ | ||
339 | enum scsi_eh_timer_return (* eh_timed_out)(struct scsi_cmnd *); | ||
340 | |||
341 | /* | ||
338 | * suspend support | 342 | * suspend support |
339 | */ | 343 | */ |
340 | int (*resume)(struct scsi_device *); | 344 | int (*resume)(struct scsi_device *); |