diff options
author | Tejun Heo <htejun@gmail.com> | 2006-01-24 03:05:22 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-27 20:58:34 -0500 |
commit | c2bd58047b9b5c91a3b0a851de66a877f2eb7ae3 (patch) | |
tree | aaaa1cc9da06699c6d68e88dba5e304ae5788a3c /include/linux/libata.h | |
parent | a62c0fc526c344d8163f7a9e45e68cc63826ffd3 (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.h | 6 |
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); | |||
483 | extern int ata_drive_probe_reset(struct ata_port *ap, | 483 | extern 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); |
486 | extern int ata_std_softreset(struct ata_port *ap, int verbose, | ||
487 | unsigned int *classes); | ||
488 | extern int sata_std_hardreset(struct ata_port *ap, int verbose, | ||
489 | unsigned int *class); | ||
490 | extern void ata_std_postreset(struct ata_port *ap, unsigned int *classes); | ||
486 | extern void ata_port_disable(struct ata_port *); | 491 | extern void ata_port_disable(struct ata_port *); |
487 | extern void ata_std_ports(struct ata_ioports *ioaddr); | 492 | extern 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); | |||
523 | extern u8 ata_check_status(struct ata_port *ap); | 528 | extern u8 ata_check_status(struct ata_port *ap); |
524 | extern u8 ata_altstatus(struct ata_port *ap); | 529 | extern u8 ata_altstatus(struct ata_port *ap); |
525 | extern void ata_exec_command(struct ata_port *ap, const struct ata_taskfile *tf); | 530 | extern void ata_exec_command(struct ata_port *ap, const struct ata_taskfile *tf); |
531 | extern int ata_std_probe_reset(struct ata_port *ap, unsigned int *classes); | ||
526 | extern int ata_port_start (struct ata_port *ap); | 532 | extern int ata_port_start (struct ata_port *ap); |
527 | extern void ata_port_stop (struct ata_port *ap); | 533 | extern void ata_port_stop (struct ata_port *ap); |
528 | extern void ata_host_stop (struct ata_host_set *host_set); | 534 | extern void ata_host_stop (struct ata_host_set *host_set); |