aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-01-24 03:05:22 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 20:58:34 -0500
commitc2bd58047b9b5c91a3b0a851de66a877f2eb7ae3 (patch)
treeaaaa1cc9da06699c6d68e88dba5e304ae5788a3c /include/linux/libata.h
parenta62c0fc526c344d8163f7a9e45e68cc63826ffd3 (diff)
[PATCH] libata: implement standard reset component operations and ->probe_reset
Implement SRST, COMRESET and standard postreset component operations for ata_drive_probe_reset(), and use these three functions to implement ata_std_probe_reset. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 38e08ce2d1af..474cdfa35d1e 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -483,6 +483,11 @@ extern void ata_bus_reset(struct ata_port *ap);
483extern int ata_drive_probe_reset(struct ata_port *ap, 483extern int ata_drive_probe_reset(struct ata_port *ap,
484 ata_reset_fn_t softreset, ata_reset_fn_t hardreset, 484 ata_reset_fn_t softreset, ata_reset_fn_t hardreset,
485 ata_postreset_fn_t postreset, unsigned int *classes); 485 ata_postreset_fn_t postreset, unsigned int *classes);
486extern int ata_std_softreset(struct ata_port *ap, int verbose,
487 unsigned int *classes);
488extern int sata_std_hardreset(struct ata_port *ap, int verbose,
489 unsigned int *class);
490extern void ata_std_postreset(struct ata_port *ap, unsigned int *classes);
486extern void ata_port_disable(struct ata_port *); 491extern void ata_port_disable(struct ata_port *);
487extern void ata_std_ports(struct ata_ioports *ioaddr); 492extern void ata_std_ports(struct ata_ioports *ioaddr);
488#ifdef CONFIG_PCI 493#ifdef CONFIG_PCI
@@ -523,6 +528,7 @@ extern void ata_std_dev_select (struct ata_port *ap, unsigned int device);
523extern u8 ata_check_status(struct ata_port *ap); 528extern u8 ata_check_status(struct ata_port *ap);
524extern u8 ata_altstatus(struct ata_port *ap); 529extern u8 ata_altstatus(struct ata_port *ap);
525extern void ata_exec_command(struct ata_port *ap, const struct ata_taskfile *tf); 530extern void ata_exec_command(struct ata_port *ap, const struct ata_taskfile *tf);
531extern int ata_std_probe_reset(struct ata_port *ap, unsigned int *classes);
526extern int ata_port_start (struct ata_port *ap); 532extern int ata_port_start (struct ata_port *ap);
527extern void ata_port_stop (struct ata_port *ap); 533extern void ata_port_stop (struct ata_port *ap);
528extern void ata_host_stop (struct ata_host_set *host_set); 534extern void ata_host_stop (struct ata_host_set *host_set);