aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:38 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:38 -0400
commitadb1af9803d167091c2cb4de14014185054bfe2c (patch)
treeaeac3bd825abfb344b1b1b43e282756fb8069f49 /include
parent22aa4b32a19b1f231d4ce7e9af6354b577a22a35 (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.h17
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
302enum { 303enum {
@@ -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
664extern const struct ide_tp_ops default_tp_ops; 665extern const struct ide_tp_ops default_tp_ops;
@@ -866,7 +867,7 @@ typedef ide_startstop_t (ide_handler_t)(ide_drive_t *);
866typedef int (ide_expiry_t)(ide_drive_t *); 867typedef 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. */
869typedef void (xfer_func_t)(ide_drive_t *, struct request *rq, void *, unsigned); 870typedef void (xfer_func_t)(ide_drive_t *, struct ide_cmd *, void *, unsigned);
870 871
871extern struct mutex ide_setting_mtx; 872extern struct mutex ide_setting_mtx;
872 873
@@ -1175,8 +1176,8 @@ void ide_set_irq(ide_hwif_t *, int);
1175void ide_tf_load(ide_drive_t *, struct ide_cmd *); 1176void ide_tf_load(ide_drive_t *, struct ide_cmd *);
1176void ide_tf_read(ide_drive_t *, struct ide_cmd *); 1177void ide_tf_read(ide_drive_t *, struct ide_cmd *);
1177 1178
1178void ide_input_data(ide_drive_t *, struct request *, void *, unsigned int); 1179void ide_input_data(ide_drive_t *, struct ide_cmd *, void *, unsigned int);
1179void ide_output_data(ide_drive_t *, struct request *, void *, unsigned int); 1180void ide_output_data(ide_drive_t *, struct ide_cmd *, void *, unsigned int);
1180 1181
1181int ide_io_buffers(ide_drive_t *, struct ide_atapi_pc *, unsigned int, int); 1182int 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
1227ide_startstop_t do_rw_taskfile(ide_drive_t *, struct ide_cmd *); 1228ide_startstop_t do_rw_taskfile(ide_drive_t *, struct ide_cmd *);
1228 1229
1229void task_end_request(ide_drive_t *, struct request *, u8); 1230void ide_finish_cmd(ide_drive_t *, struct ide_cmd *, u8);
1230 1231
1231int ide_raw_taskfile(ide_drive_t *, struct ide_cmd *, u8 *, u16); 1232int ide_raw_taskfile(ide_drive_t *, struct ide_cmd *, u8 *, u16);
1232int ide_no_data_taskfile(ide_drive_t *, struct ide_cmd *); 1233int ide_no_data_taskfile(ide_drive_t *, struct ide_cmd *);