aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
commit85e39035ca381846b031690f4d1ac1f0660da0a2 (patch)
treeebdf6b4b173e3e11ce876b8b7b91651a60945f91 /include
parent6b0da28b2d0f4f4e2c55689fc062db569075ff60 (diff)
ide: add ->pc_{update,io}_buffers methods
Add ->pc_{update,io}_buffers methods to ide_drive_t and use them instead of {update,io}_buffers ide_pc_intr() arguments. There should be no functional changes caused by this patch. Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index d88cced0d02c..f7fc53d1a810 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -555,6 +555,10 @@ struct ide_drive_s {
555 /* callback for packet commands */ 555 /* callback for packet commands */
556 void (*pc_callback)(struct ide_drive_s *, int); 556 void (*pc_callback)(struct ide_drive_s *, int);
557 557
558 void (*pc_update_buffers)(struct ide_drive_s *, struct ide_atapi_pc *);
559 int (*pc_io_buffers)(struct ide_drive_s *, struct ide_atapi_pc *,
560 unsigned int, int);
561
558 unsigned long atapi_flags; 562 unsigned long atapi_flags;
559 563
560 struct ide_atapi_pc request_sense_pc; 564 struct ide_atapi_pc request_sense_pc;
@@ -1184,10 +1188,7 @@ static inline unsigned long ide_scsi_get_timeout(struct ide_atapi_pc *pc)
1184 1188
1185int ide_scsi_expiry(ide_drive_t *); 1189int ide_scsi_expiry(ide_drive_t *);
1186 1190
1187ide_startstop_t ide_pc_intr(ide_drive_t *drive, ide_handler_t *handler, 1191ide_startstop_t ide_pc_intr(ide_drive_t *drive, ide_handler_t *handler);
1188 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *),
1189 int (*io_buffers)(ide_drive_t *, struct ide_atapi_pc *, unsigned int,
1190 int));
1191ide_startstop_t ide_transfer_pc(ide_drive_t *, 1192ide_startstop_t ide_transfer_pc(ide_drive_t *,
1192 ide_handler_t *, unsigned int, ide_expiry_t *); 1193 ide_handler_t *, unsigned int, ide_expiry_t *);
1193ide_startstop_t ide_issue_pc(ide_drive_t *, 1194ide_startstop_t ide_issue_pc(ide_drive_t *,