aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:36 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:36 -0400
commitacaa0f5f675ccf6b8a3a11a933419068b1ea1f46 (patch)
tree8afee71c69bf765a5edd0de82c98c6470905ec20 /include/linux
parentc860f955681ebd83df4a03089f1910fc4b54651f (diff)
ide: add ide_io_buffers() helper
* Make ->io_buffers method return number of bytes transferred. * Use ide_end_request() instead of idefloppy_end_request() in ide_floppy_io_buffers() and then move the call out to ide_pc_intr(). * Add ide_io_buffers() helper and convert ide-{floppy,scsi}.c to use it instead of ide*_io_buffers(). There should be no functional changes caused by this patch. Acked-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ide.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index e63ff63d1f0b..03dc2157a2b5 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1099,6 +1099,8 @@ void ide_tf_read(ide_drive_t *, ide_task_t *);
1099void ide_input_data(ide_drive_t *, struct request *, void *, unsigned int); 1099void ide_input_data(ide_drive_t *, struct request *, void *, unsigned int);
1100void ide_output_data(ide_drive_t *, struct request *, void *, unsigned int); 1100void ide_output_data(ide_drive_t *, struct request *, void *, unsigned int);
1101 1101
1102int ide_io_buffers(ide_drive_t *, struct ide_atapi_pc *, unsigned int, int);
1103
1102extern void SELECT_DRIVE(ide_drive_t *); 1104extern void SELECT_DRIVE(ide_drive_t *);
1103void SELECT_MASK(ide_drive_t *, int); 1105void SELECT_MASK(ide_drive_t *, int);
1104 1106
@@ -1115,7 +1117,7 @@ ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc,
1115 ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry, 1117 ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry,
1116 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *), 1118 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *),
1117 void (*retry_pc)(ide_drive_t *), void (*dsc_handle)(ide_drive_t *), 1119 void (*retry_pc)(ide_drive_t *), void (*dsc_handle)(ide_drive_t *),
1118 void (*io_buffers)(ide_drive_t *, struct ide_atapi_pc *, unsigned int, 1120 int (*io_buffers)(ide_drive_t *, struct ide_atapi_pc *, unsigned int,
1119 int)); 1121 int));
1120ide_startstop_t ide_transfer_pc(ide_drive_t *, struct ide_atapi_pc *, 1122ide_startstop_t ide_transfer_pc(ide_drive_t *, struct ide_atapi_pc *,
1121 ide_handler_t *, unsigned int, ide_expiry_t *); 1123 ide_handler_t *, unsigned int, ide_expiry_t *);