]> err.no Git - linux-2.6/blobdiff - include/linux/libata.h
[PATCH] libata-eh: implement new EH
[linux-2.6] / include / linux / libata.h
index 298f9918e37528fab69b8cdce8eb65e0974c8835..9fe46073cf8c1155b08c6ef0baec0714d9c8898a 100644 (file)
@@ -247,6 +247,8 @@ enum {
 
        /* how hard are we gonna try to probe/recover devices */
        ATA_PROBE_MAX_TRIES     = 3,
+       ATA_EH_RESET_TRIES      = 3,
+       ATA_EH_DEV_TRIES        = 3,
 };
 
 enum hsm_task_states {
@@ -727,6 +729,9 @@ extern void ata_eh_thaw_port(struct ata_port *ap);
 extern void ata_eh_qc_complete(struct ata_queued_cmd *qc);
 extern void ata_eh_qc_retry(struct ata_queued_cmd *qc);
 
+extern void ata_do_eh(struct ata_port *ap, ata_reset_fn_t softreset,
+                     ata_reset_fn_t hardreset, ata_postreset_fn_t postreset);
+
 /*
  * printk helpers
  */