diff options
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index d4d369908c0f..0f3e355fdfd7 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -95,6 +95,8 @@ extern void ata_dev_select(struct ata_port *ap, unsigned int device, | |||
95 | extern void swap_buf_le16(u16 *buf, unsigned int buf_words); | 95 | extern void swap_buf_le16(u16 *buf, unsigned int buf_words); |
96 | extern int ata_flush_cache(struct ata_device *dev); | 96 | extern int ata_flush_cache(struct ata_device *dev); |
97 | extern void ata_dev_init(struct ata_device *dev); | 97 | extern void ata_dev_init(struct ata_device *dev); |
98 | extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp); | ||
99 | extern int sata_link_init_spd(struct ata_link *link); | ||
98 | extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); | 100 | extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); |
99 | extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); | 101 | extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); |
100 | extern struct ata_port *ata_port_alloc(struct ata_host *host); | 102 | extern struct ata_port *ata_port_alloc(struct ata_host *host); |
@@ -156,6 +158,21 @@ extern void ata_scsi_error(struct Scsi_Host *host); | |||
156 | extern void ata_port_wait_eh(struct ata_port *ap); | 158 | extern void ata_port_wait_eh(struct ata_port *ap); |
157 | extern void ata_eh_fastdrain_timerfn(unsigned long arg); | 159 | extern void ata_eh_fastdrain_timerfn(unsigned long arg); |
158 | extern void ata_qc_schedule_eh(struct ata_queued_cmd *qc); | 160 | extern void ata_qc_schedule_eh(struct ata_queued_cmd *qc); |
161 | extern void ata_eh_detach_dev(struct ata_device *dev); | ||
162 | extern void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, | ||
163 | unsigned int action); | ||
164 | extern void ata_eh_done(struct ata_link *link, struct ata_device *dev, | ||
165 | unsigned int action); | ||
166 | extern void ata_eh_autopsy(struct ata_port *ap); | ||
167 | extern void ata_eh_report(struct ata_port *ap); | ||
168 | extern int ata_eh_reset(struct ata_link *link, int classify, | ||
169 | ata_prereset_fn_t prereset, ata_reset_fn_t softreset, | ||
170 | ata_reset_fn_t hardreset, ata_postreset_fn_t postreset); | ||
171 | extern int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | ||
172 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, | ||
173 | ata_postreset_fn_t postreset, | ||
174 | struct ata_link **r_failed_disk); | ||
175 | extern void ata_eh_finish(struct ata_port *ap); | ||
159 | 176 | ||
160 | /* libata-sff.c */ | 177 | /* libata-sff.c */ |
161 | extern u8 ata_irq_on(struct ata_port *ap); | 178 | extern u8 ata_irq_on(struct ata_port *ap); |