diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-14 22:47:10 +0900 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-12-03 17:56:24 +0900 |
commit | bd056d7eeb55d696556ee4f5ee2acb67b2d16df4 (patch) | |
tree | f6ca604abc43d73d42354d977f1bcedd262dbcda /drivers/ata/libata.h | |
parent | 2432697ba0ce312d60be5009ffe1fa054a761bb9 (diff) |
[PATCH] libata: separate out rw ATA taskfile building into ata_build_rw_tf()
Separate out rw ATA taskfile building from ata_scsi_rw_xlat() into
ata_build_rw_tf(). This will be used to improve media error handling.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index ca6f36c1311..60576b1237e 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -51,7 +51,9 @@ extern int atapi_enabled; extern int atapi_dmadir; extern int libata_fua; extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev); -extern int ata_rwcmd_protocol(struct ata_queued_cmd *qc); +extern int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, + u64 block, u32 n_block, unsigned int tf_flags, + unsigned int tag); extern u64 ata_tf_read_block(struct ata_taskfile *tf, struct ata_device *dev); extern void ata_dev_disable(struct ata_device *dev); extern void ata_port_flush_task(struct ata_port *ap); |