diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-02 04:20:00 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 01:59:52 -0500 |
commit | 7944ea9522ce0ea32d57894b3dc2540b0bdca66e (patch) | |
tree | ad45c0cccefa40c2b91fbeee6bfa156fa04aeeb4 /include/linux/libata.h | |
parent | 5140788f77d71b4f05fde217adbfb0c92f28f20c (diff) |
[PATCH] libata: add probeinit component operation to ata_drive_probe_reset()
This patch adds probeinit component operation to
ata_drive_probe_reset(). If present, this new operation is called
before performing any reset. The operations's roll is to prepare @ap
for following probe-reset operations.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index f4cd1eb734a0..e8f29cefc351 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -244,6 +244,7 @@ struct ata_queued_cmd; | |||
244 | 244 | ||
245 | /* typedefs */ | 245 | /* typedefs */ |
246 | typedef void (*ata_qc_cb_t) (struct ata_queued_cmd *qc); | 246 | typedef void (*ata_qc_cb_t) (struct ata_queued_cmd *qc); |
247 | typedef void (*ata_probeinit_fn_t)(struct ata_port *); | ||
247 | typedef int (*ata_reset_fn_t)(struct ata_port *, int, unsigned int *); | 248 | typedef int (*ata_reset_fn_t)(struct ata_port *, int, unsigned int *); |
248 | typedef void (*ata_postreset_fn_t)(struct ata_port *ap, unsigned int *); | 249 | typedef void (*ata_postreset_fn_t)(struct ata_port *ap, unsigned int *); |
249 | 250 | ||
@@ -484,6 +485,7 @@ extern void __sata_phy_reset(struct ata_port *ap); | |||
484 | extern void sata_phy_reset(struct ata_port *ap); | 485 | extern void sata_phy_reset(struct ata_port *ap); |
485 | extern void ata_bus_reset(struct ata_port *ap); | 486 | extern void ata_bus_reset(struct ata_port *ap); |
486 | extern int ata_drive_probe_reset(struct ata_port *ap, | 487 | extern int ata_drive_probe_reset(struct ata_port *ap, |
488 | ata_probeinit_fn_t probeinit, | ||
487 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, | 489 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, |
488 | ata_postreset_fn_t postreset, unsigned int *classes); | 490 | ata_postreset_fn_t postreset, unsigned int *classes); |
489 | extern int ata_std_softreset(struct ata_port *ap, int verbose, | 491 | extern int ata_std_softreset(struct ata_port *ap, int verbose, |