diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-14 14:47:09 +0100 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-12-03 09:56:24 +0100 |
commit | 2432697ba0ce312d60be5009ffe1fa054a761bb9 (patch) | |
tree | 8fe745ffb50986bee7d0cab5281278c7f77f983c /drivers/ata/libata.h | |
parent | [PATCH] libata: make sure IRQ is cleared after ata_bmdma_freeze() (diff) | |
download | linux-2432697ba0ce312d60be5009ffe1fa054a761bb9.tar.xz linux-2432697ba0ce312d60be5009ffe1fa054a761bb9.zip |
[PATCH] libata: implement ata_exec_internal_sg()
Sg'ify ata_exec_internal() and call it ata_exec_internal_sg().
Wrapper function around ata_exec_internal_sg() is implemented to
provide ata_exec_internal() interface.
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, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 2d532da8c398..ca6f36c13115 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -58,6 +58,10 @@ extern void ata_port_flush_task(struct ata_port *ap); extern unsigned ata_exec_internal(struct ata_device *dev, struct ata_taskfile *tf, const u8 *cdb, int dma_dir, void *buf, unsigned int buflen); +extern unsigned ata_exec_internal_sg(struct ata_device *dev, + struct ata_taskfile *tf, const u8 *cdb, + int dma_dir, struct scatterlist *sg, + unsigned int n_elem); extern unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd); extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, unsigned int flags, u16 *id); |