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 /include | |
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 'include')
-rw-r--r-- | include/linux/ide.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index f0e3618c7257..1785582e1f86 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -297,6 +297,7 @@ enum { | |||
297 | IDE_TFLAG_IO_16BIT = (1 << 26), | 297 | IDE_TFLAG_IO_16BIT = (1 << 26), |
298 | /* struct ide_cmd was allocated using kmalloc() */ | 298 | /* struct ide_cmd was allocated using kmalloc() */ |
299 | IDE_TFLAG_DYN = (1 << 27), | 299 | IDE_TFLAG_DYN = (1 << 27), |
300 | IDE_TFLAG_FS = (1 << 28), | ||
300 | }; | 301 | }; |
301 | 302 | ||
302 | enum { | 303 | enum { |
@@ -655,10 +656,10 @@ struct ide_tp_ops { | |||
655 | void (*tf_load)(ide_drive_t *, struct ide_cmd *); | 656 | void (*tf_load)(ide_drive_t *, struct ide_cmd *); |
656 | void (*tf_read)(ide_drive_t *, struct ide_cmd *); | 657 | void (*tf_read)(ide_drive_t *, struct ide_cmd *); |
657 | 658 | ||
658 | void (*input_data)(ide_drive_t *, struct request *, void *, | 659 | void (*input_data)(ide_drive_t *, struct ide_cmd *, |
659 | unsigned int); | 660 | void *, unsigned int); |
660 | void (*output_data)(ide_drive_t *, struct request *, void *, | 661 | void (*output_data)(ide_drive_t *, struct ide_cmd *, |
661 | unsigned int); | 662 | void *, unsigned int); |
662 | }; | 663 | }; |
663 | 664 | ||
664 | extern const struct ide_tp_ops default_tp_ops; | 665 | extern const struct ide_tp_ops default_tp_ops; |
@@ -866,7 +867,7 @@ typedef ide_startstop_t (ide_handler_t)(ide_drive_t *); | |||
866 | typedef int (ide_expiry_t)(ide_drive_t *); | 867 | typedef int (ide_expiry_t)(ide_drive_t *); |
867 | 868 | ||
868 | /* used by ide-cd, ide-floppy, etc. */ | 869 | /* used by ide-cd, ide-floppy, etc. */ |
869 | typedef void (xfer_func_t)(ide_drive_t *, struct request *rq, void *, unsigned); | 870 | typedef void (xfer_func_t)(ide_drive_t *, struct ide_cmd *, void *, unsigned); |
870 | 871 | ||
871 | extern struct mutex ide_setting_mtx; | 872 | extern struct mutex ide_setting_mtx; |
872 | 873 | ||
@@ -1175,8 +1176,8 @@ void ide_set_irq(ide_hwif_t *, int); | |||
1175 | void ide_tf_load(ide_drive_t *, struct ide_cmd *); | 1176 | void ide_tf_load(ide_drive_t *, struct ide_cmd *); |
1176 | void ide_tf_read(ide_drive_t *, struct ide_cmd *); | 1177 | void ide_tf_read(ide_drive_t *, struct ide_cmd *); |
1177 | 1178 | ||
1178 | void ide_input_data(ide_drive_t *, struct request *, void *, unsigned int); | 1179 | void ide_input_data(ide_drive_t *, struct ide_cmd *, void *, unsigned int); |
1179 | void ide_output_data(ide_drive_t *, struct request *, void *, unsigned int); | 1180 | void ide_output_data(ide_drive_t *, struct ide_cmd *, void *, unsigned int); |
1180 | 1181 | ||
1181 | int ide_io_buffers(ide_drive_t *, struct ide_atapi_pc *, unsigned int, int); | 1182 | int ide_io_buffers(ide_drive_t *, struct ide_atapi_pc *, unsigned int, int); |
1182 | 1183 | ||
@@ -1226,7 +1227,7 @@ ide_startstop_t ide_issue_pc(ide_drive_t *); | |||
1226 | 1227 | ||
1227 | ide_startstop_t do_rw_taskfile(ide_drive_t *, struct ide_cmd *); | 1228 | ide_startstop_t do_rw_taskfile(ide_drive_t *, struct ide_cmd *); |
1228 | 1229 | ||
1229 | void task_end_request(ide_drive_t *, struct request *, u8); | 1230 | void ide_finish_cmd(ide_drive_t *, struct ide_cmd *, u8); |
1230 | 1231 | ||
1231 | int ide_raw_taskfile(ide_drive_t *, struct ide_cmd *, u8 *, u16); | 1232 | int ide_raw_taskfile(ide_drive_t *, struct ide_cmd *, u8 *, u16); |
1232 | int ide_no_data_taskfile(ide_drive_t *, struct ide_cmd *); | 1233 | int ide_no_data_taskfile(ide_drive_t *, struct ide_cmd *); |