diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-31 05:27:52 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-31 05:27:52 -0400 |
commit | 9a1004d0c11be41c83d06a67dfe74567a41ae582 (patch) | |
tree | 759f686bb1d2999b56b2b91c30c9d62480156965 | |
parent | 664faf09a05d74085c0b31e2c621d7647322325b (diff) |
[PATCH] libata: export ata_hsm_move()
ata_hsm_move() will be used by LLDDs which depend on standard PIO HSM
but implement their own interrupt handlers.
Signed-off-by: Tejun Heo <htejun@gmail.com>
-rw-r--r-- | drivers/scsi/libata-core.c | 6 | ||||
-rw-r--r-- | include/linux/libata.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 2531a701d6e9..c965eea3b3d4 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -4140,9 +4140,8 @@ static void ata_hsm_qc_complete(struct ata_queued_cmd *qc, int in_wq) | |||
4140 | * RETURNS: | 4140 | * RETURNS: |
4141 | * 1 when poll next status needed, 0 otherwise. | 4141 | * 1 when poll next status needed, 0 otherwise. |
4142 | */ | 4142 | */ |
4143 | 4143 | int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, | |
4144 | static int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, | 4144 | u8 status, int in_wq) |
4145 | u8 status, int in_wq) | ||
4146 | { | 4145 | { |
4147 | unsigned long flags = 0; | 4146 | unsigned long flags = 0; |
4148 | int poll_next; | 4147 | int poll_next; |
@@ -5885,6 +5884,7 @@ EXPORT_SYMBOL_GPL(ata_device_add); | |||
5885 | EXPORT_SYMBOL_GPL(ata_host_set_remove); | 5884 | EXPORT_SYMBOL_GPL(ata_host_set_remove); |
5886 | EXPORT_SYMBOL_GPL(ata_sg_init); | 5885 | EXPORT_SYMBOL_GPL(ata_sg_init); |
5887 | EXPORT_SYMBOL_GPL(ata_sg_init_one); | 5886 | EXPORT_SYMBOL_GPL(ata_sg_init_one); |
5887 | EXPORT_SYMBOL_GPL(ata_hsm_move); | ||
5888 | EXPORT_SYMBOL_GPL(ata_qc_complete); | 5888 | EXPORT_SYMBOL_GPL(ata_qc_complete); |
5889 | EXPORT_SYMBOL_GPL(ata_qc_complete_multiple); | 5889 | EXPORT_SYMBOL_GPL(ata_qc_complete_multiple); |
5890 | EXPORT_SYMBOL_GPL(ata_qc_issue_prot); | 5890 | EXPORT_SYMBOL_GPL(ata_qc_issue_prot); |
diff --git a/include/linux/libata.h b/include/linux/libata.h index fe5f53943c44..a1ceb5b67b97 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -723,6 +723,8 @@ extern void ata_bmdma_drive_eh(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
723 | ata_postreset_fn_t postreset); | 723 | ata_postreset_fn_t postreset); |
724 | extern void ata_bmdma_error_handler(struct ata_port *ap); | 724 | extern void ata_bmdma_error_handler(struct ata_port *ap); |
725 | extern void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc); | 725 | extern void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc); |
726 | extern int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, | ||
727 | u8 status, int in_wq); | ||
726 | extern void ata_qc_complete(struct ata_queued_cmd *qc); | 728 | extern void ata_qc_complete(struct ata_queued_cmd *qc); |
727 | extern int ata_qc_complete_multiple(struct ata_port *ap, u32 qc_active, | 729 | extern int ata_qc_complete_multiple(struct ata_port *ap, u32 qc_active, |
728 | void (*finish_qc)(struct ata_queued_cmd *)); | 730 | void (*finish_qc)(struct ata_queued_cmd *)); |