aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-04-07 09:47:19 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-17 15:44:23 -0400
commit57c9efdfb3cee5d4564fcb5f70555e2edb1bc52a (patch)
treec2289500f093736853a94d2d9577036658676498 /include/linux/libata.h
parent9dadd45b24145d6aee2fabb28d7aef972301892b (diff)
libata: implement and use sata_std_hardreset()
Implement sata_std_hardreset(), which simply wraps around sata_link_hardreset(). sata_std_hardreset() becomes new standard hardreset method for sata_port_ops and sata_sff_hardreset() moves from ata_base_port_ops to ata_sff_port_ops, which is where it really belongs. ata_is_builtin_hardreset() is added so that both ata_std_error_handler() and ata_sff_error_handler() skip both builtin hardresets if SCR isn't accessible. piix_sidpr_hardreset() in ata_piix.c is identical to sata_std_hardreset() in functionality and got replaced with the standard function. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index d9ebce2bf5e7..c060cd3cba66 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -853,6 +853,8 @@ extern int sata_link_resume(struct ata_link *link, const unsigned long *params,
853extern int sata_link_hardreset(struct ata_link *link, 853extern int sata_link_hardreset(struct ata_link *link,
854 const unsigned long *timing, unsigned long deadline, 854 const unsigned long *timing, unsigned long deadline,
855 bool *online, int (*check_ready)(struct ata_link *)); 855 bool *online, int (*check_ready)(struct ata_link *));
856extern int sata_std_hardreset(struct ata_link *link, unsigned int *class,
857 unsigned long deadline);
856extern void ata_std_postreset(struct ata_link *link, unsigned int *classes); 858extern void ata_std_postreset(struct ata_link *link, unsigned int *classes);
857extern void ata_port_disable(struct ata_port *); 859extern void ata_port_disable(struct ata_port *);
858 860