diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:38 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:38 -0400 |
commit | adb1af9803d167091c2cb4de14014185054bfe2c (patch) | |
tree | aeac3bd825abfb344b1b1b43e282756fb8069f49 /drivers/ide/scc_pata.c | |
parent | 22aa4b32a19b1f231d4ce7e9af6354b577a22a35 (diff) |
ide: pass command instead of request to ide_pio_datablock()
* Add IDE_TFLAG_FS taskfile flag and set it for REQ_TYPE_FS requests.
* Convert ->{in,out}put_data methods to take command instead of request
as an argument. Then convert pre_task_out_intr(), task_end_request(),
task_error(), task_in_unexpected(), ide_pio_sector(), ide_pio_multi()
and ide_pio_datablock() in similar way.
* Rename task_end_request() to ide_finish_cmd().
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/scc_pata.c')
-rw-r--r-- | drivers/ide/scc_pata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/scc_pata.c b/drivers/ide/scc_pata.c index d6336753bd2c..ada866744622 100644 --- a/drivers/ide/scc_pata.c +++ b/drivers/ide/scc_pata.c | |||
@@ -750,7 +750,7 @@ static void scc_tf_read(ide_drive_t *drive, struct ide_cmd *cmd) | |||
750 | } | 750 | } |
751 | } | 751 | } |
752 | 752 | ||
753 | static void scc_input_data(ide_drive_t *drive, struct request *rq, | 753 | static void scc_input_data(ide_drive_t *drive, struct ide_cmd *cmd, |
754 | void *buf, unsigned int len) | 754 | void *buf, unsigned int len) |
755 | { | 755 | { |
756 | unsigned long data_addr = drive->hwif->io_ports.data_addr; | 756 | unsigned long data_addr = drive->hwif->io_ports.data_addr; |
@@ -766,7 +766,7 @@ static void scc_input_data(ide_drive_t *drive, struct request *rq, | |||
766 | scc_ide_insw(data_addr, buf, len / 2); | 766 | scc_ide_insw(data_addr, buf, len / 2); |
767 | } | 767 | } |
768 | 768 | ||
769 | static void scc_output_data(ide_drive_t *drive, struct request *rq, | 769 | static void scc_output_data(ide_drive_t *drive, struct ide_cmd *cmd, |
770 | void *buf, unsigned int len) | 770 | void *buf, unsigned int len) |
771 | { | 771 | { |
772 | unsigned long data_addr = drive->hwif->io_ports.data_addr; | 772 | unsigned long data_addr = drive->hwif->io_ports.data_addr; |