diff options
Diffstat (limited to 'drivers/scsi/arm/fas216.h')
-rw-r--r-- | drivers/scsi/arm/fas216.h | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/drivers/scsi/arm/fas216.h b/drivers/scsi/arm/fas216.h index 540914d6fd3..00e5f055afd 100644 --- a/drivers/scsi/arm/fas216.h +++ b/drivers/scsi/arm/fas216.h | |||
@@ -218,11 +218,11 @@ typedef struct { | |||
218 | unsigned long magic_start; | 218 | unsigned long magic_start; |
219 | spinlock_t host_lock; | 219 | spinlock_t host_lock; |
220 | struct Scsi_Host *host; /* host */ | 220 | struct Scsi_Host *host; /* host */ |
221 | Scsi_Cmnd *SCpnt; /* currently processing command */ | 221 | struct scsi_cmnd *SCpnt; /* currently processing command */ |
222 | Scsi_Cmnd *origSCpnt; /* original connecting command */ | 222 | struct scsi_cmnd *origSCpnt; /* original connecting command */ |
223 | Scsi_Cmnd *reqSCpnt; /* request sense command */ | 223 | struct scsi_cmnd *reqSCpnt; /* request sense command */ |
224 | Scsi_Cmnd *rstSCpnt; /* reset command */ | 224 | struct scsi_cmnd *rstSCpnt; /* reset command */ |
225 | Scsi_Cmnd *pending_SCpnt[8]; /* per-device pending commands */ | 225 | struct scsi_cmnd *pending_SCpnt[8]; /* per-device pending commands */ |
226 | int next_pending; /* next pending device */ | 226 | int next_pending; /* next pending device */ |
227 | 227 | ||
228 | /* | 228 | /* |
@@ -328,21 +328,23 @@ extern int fas216_init (struct Scsi_Host *instance); | |||
328 | */ | 328 | */ |
329 | extern int fas216_add (struct Scsi_Host *instance, struct device *dev); | 329 | extern int fas216_add (struct Scsi_Host *instance, struct device *dev); |
330 | 330 | ||
331 | /* Function: int fas216_queue_command (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) | 331 | /* Function: int fas216_queue_command(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) |
332 | * Purpose : queue a command for adapter to process. | 332 | * Purpose : queue a command for adapter to process. |
333 | * Params : SCpnt - Command to queue | 333 | * Params : SCpnt - Command to queue |
334 | * done - done function to call once command is complete | 334 | * done - done function to call once command is complete |
335 | * Returns : 0 - success, else error | 335 | * Returns : 0 - success, else error |
336 | */ | 336 | */ |
337 | extern int fas216_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); | 337 | extern int fas216_queue_command(struct scsi_cmnd *, |
338 | void (*done)(struct scsi_cmnd *)); | ||
338 | 339 | ||
339 | /* Function: int fas216_noqueue_command (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) | 340 | /* Function: int fas216_noqueue_command(istruct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) |
340 | * Purpose : queue a command for adapter to process, and process it to completion. | 341 | * Purpose : queue a command for adapter to process, and process it to completion. |
341 | * Params : SCpnt - Command to queue | 342 | * Params : SCpnt - Command to queue |
342 | * done - done function to call once command is complete | 343 | * done - done function to call once command is complete |
343 | * Returns : 0 - success, else error | 344 | * Returns : 0 - success, else error |
344 | */ | 345 | */ |
345 | extern int fas216_noqueue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); | 346 | extern int fas216_noqueue_command(struct scsi_cmnd *, |
347 | void (*done)(struct scsi_cmnd *)); | ||
346 | 348 | ||
347 | /* Function: irqreturn_t fas216_intr (FAS216_Info *info) | 349 | /* Function: irqreturn_t fas216_intr (FAS216_Info *info) |
348 | * Purpose : handle interrupts from the interface to progress a command | 350 | * Purpose : handle interrupts from the interface to progress a command |
@@ -363,32 +365,32 @@ extern int fas216_print_host(FAS216_Info *info, char *buffer); | |||
363 | extern int fas216_print_stats(FAS216_Info *info, char *buffer); | 365 | extern int fas216_print_stats(FAS216_Info *info, char *buffer); |
364 | extern int fas216_print_devices(FAS216_Info *info, char *buffer); | 366 | extern int fas216_print_devices(FAS216_Info *info, char *buffer); |
365 | 367 | ||
366 | /* Function: int fas216_eh_abort(Scsi_Cmnd *SCpnt) | 368 | /* Function: int fas216_eh_abort(struct scsi_cmnd *SCpnt) |
367 | * Purpose : abort this command | 369 | * Purpose : abort this command |
368 | * Params : SCpnt - command to abort | 370 | * Params : SCpnt - command to abort |
369 | * Returns : FAILED if unable to abort | 371 | * Returns : FAILED if unable to abort |
370 | */ | 372 | */ |
371 | extern int fas216_eh_abort(Scsi_Cmnd *SCpnt); | 373 | extern int fas216_eh_abort(struct scsi_cmnd *SCpnt); |
372 | 374 | ||
373 | /* Function: int fas216_eh_device_reset(Scsi_Cmnd *SCpnt) | 375 | /* Function: int fas216_eh_device_reset(struct scsi_cmnd *SCpnt) |
374 | * Purpose : Reset the device associated with this command | 376 | * Purpose : Reset the device associated with this command |
375 | * Params : SCpnt - command specifing device to reset | 377 | * Params : SCpnt - command specifing device to reset |
376 | * Returns : FAILED if unable to reset | 378 | * Returns : FAILED if unable to reset |
377 | */ | 379 | */ |
378 | extern int fas216_eh_device_reset(Scsi_Cmnd *SCpnt); | 380 | extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt); |
379 | 381 | ||
380 | /* Function: int fas216_eh_bus_reset(Scsi_Cmnd *SCpnt) | 382 | /* Function: int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt) |
381 | * Purpose : Reset the complete bus associated with this command | 383 | * Purpose : Reset the complete bus associated with this command |
382 | * Params : SCpnt - command specifing bus to reset | 384 | * Params : SCpnt - command specifing bus to reset |
383 | * Returns : FAILED if unable to reset | 385 | * Returns : FAILED if unable to reset |
384 | */ | 386 | */ |
385 | extern int fas216_eh_bus_reset(Scsi_Cmnd *SCpnt); | 387 | extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt); |
386 | 388 | ||
387 | /* Function: int fas216_eh_host_reset(Scsi_Cmnd *SCpnt) | 389 | /* Function: int fas216_eh_host_reset(struct scsi_cmnd *SCpnt) |
388 | * Purpose : Reset the host associated with this command | 390 | * Purpose : Reset the host associated with this command |
389 | * Params : SCpnt - command specifing host to reset | 391 | * Params : SCpnt - command specifing host to reset |
390 | * Returns : FAILED if unable to reset | 392 | * Returns : FAILED if unable to reset |
391 | */ | 393 | */ |
392 | extern int fas216_eh_host_reset(Scsi_Cmnd *SCpnt); | 394 | extern int fas216_eh_host_reset(struct scsi_cmnd *SCpnt); |
393 | 395 | ||
394 | #endif /* FAS216_H */ | 396 | #endif /* FAS216_H */ |