diff options
Diffstat (limited to 'drivers/scsi/libata.h')
-rw-r--r-- | drivers/scsi/libata.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index 3f8b0a863781..b76ad7d7062a 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h | |||
@@ -32,7 +32,6 @@ | |||
32 | #define DRV_VERSION "1.30" /* must be exactly four chars */ | 32 | #define DRV_VERSION "1.30" /* must be exactly four chars */ |
33 | 33 | ||
34 | struct ata_scsi_args { | 34 | struct ata_scsi_args { |
35 | struct ata_port *ap; | ||
36 | struct ata_device *dev; | 35 | struct ata_device *dev; |
37 | u16 *id; | 36 | u16 *id; |
38 | struct scsi_cmnd *cmd; | 37 | struct scsi_cmnd *cmd; |
@@ -43,23 +42,22 @@ struct ata_scsi_args { | |||
43 | extern int atapi_enabled; | 42 | extern int atapi_enabled; |
44 | extern int atapi_dmadir; | 43 | extern int atapi_dmadir; |
45 | extern int libata_fua; | 44 | extern int libata_fua; |
46 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap, | 45 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev); |
47 | struct ata_device *dev); | ||
48 | extern int ata_rwcmd_protocol(struct ata_queued_cmd *qc); | 46 | extern int ata_rwcmd_protocol(struct ata_queued_cmd *qc); |
49 | extern void ata_dev_disable(struct ata_port *ap, struct ata_device *dev); | 47 | extern void ata_dev_disable(struct ata_device *dev); |
50 | extern void ata_port_flush_task(struct ata_port *ap); | 48 | extern void ata_port_flush_task(struct ata_port *ap); |
51 | extern unsigned ata_exec_internal(struct ata_port *ap, struct ata_device *dev, | 49 | extern unsigned ata_exec_internal(struct ata_device *dev, |
52 | struct ata_taskfile *tf, const u8 *cdb, | 50 | struct ata_taskfile *tf, const u8 *cdb, |
53 | int dma_dir, void *buf, unsigned int buflen); | 51 | int dma_dir, void *buf, unsigned int buflen); |
54 | extern int ata_down_sata_spd_limit(struct ata_port *ap); | 52 | extern int sata_down_spd_limit(struct ata_port *ap); |
55 | extern int ata_set_sata_spd_needed(struct ata_port *ap); | 53 | extern int sata_set_spd_needed(struct ata_port *ap); |
56 | extern int ata_down_xfermask_limit(struct ata_port *ap, struct ata_device *dev, | 54 | extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0); |
57 | int force_pio0); | ||
58 | extern int ata_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev); | 55 | extern int ata_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev); |
59 | extern int ata_do_reset(struct ata_port *ap, ata_reset_fn_t reset, | 56 | extern int ata_do_reset(struct ata_port *ap, ata_reset_fn_t reset, |
60 | ata_postreset_fn_t postreset, unsigned int *classes); | 57 | unsigned int *classes); |
61 | extern void ata_qc_free(struct ata_queued_cmd *qc); | 58 | extern void ata_qc_free(struct ata_queued_cmd *qc); |
62 | extern void ata_qc_issue(struct ata_queued_cmd *qc); | 59 | extern void ata_qc_issue(struct ata_queued_cmd *qc); |
60 | extern void __ata_qc_complete(struct ata_queued_cmd *qc); | ||
63 | extern int ata_check_atapi_dma(struct ata_queued_cmd *qc); | 61 | extern int ata_check_atapi_dma(struct ata_queued_cmd *qc); |
64 | extern void ata_dev_select(struct ata_port *ap, unsigned int device, | 62 | extern void ata_dev_select(struct ata_port *ap, unsigned int device, |
65 | unsigned int wait, unsigned int can_sleep); | 63 | unsigned int wait, unsigned int can_sleep); |
@@ -100,9 +98,11 @@ extern void ata_scsi_set_sense(struct scsi_cmnd *cmd, | |||
100 | extern void ata_scsi_rbuf_fill(struct ata_scsi_args *args, | 98 | extern void ata_scsi_rbuf_fill(struct ata_scsi_args *args, |
101 | unsigned int (*actor) (struct ata_scsi_args *args, | 99 | unsigned int (*actor) (struct ata_scsi_args *args, |
102 | u8 *rbuf, unsigned int buflen)); | 100 | u8 *rbuf, unsigned int buflen)); |
101 | extern void ata_schedule_scsi_eh(struct Scsi_Host *shost); | ||
103 | 102 | ||
104 | /* libata-eh.c */ | 103 | /* libata-eh.c */ |
105 | extern enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd); | 104 | extern enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd); |
106 | extern void ata_scsi_error(struct Scsi_Host *host); | 105 | extern void ata_scsi_error(struct Scsi_Host *host); |
106 | extern void ata_qc_schedule_eh(struct ata_queued_cmd *qc); | ||
107 | 107 | ||
108 | #endif /* __LIBATA_H__ */ | 108 | #endif /* __LIBATA_H__ */ |