aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:31 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:31 -0400
commit844b9468523c8c2c45b90df4efcabcbe4926b5ab (patch)
tree64d239e810c6f143f6d3206fc37200af47f9eee0 /include/linux/ide.h
parent2b9efba48283f34083df6bc53f6752fba4e4d409 (diff)
ide: drop 'timeout' and 'expiry' arguments from ide_pc_intr()
* Move idescsi_expiry() to ide-atapi.c. * Move get_timeout() to <linux/ide.h>. * Drop 'timeout' and 'expiry' arguments from ide_pc_intr(). While at it: * idescsi_expiry() -> ide_scsi_expiry() * get_timeout() -> ide_scsi_get_timeout() 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/linux/ide.h')
-rw-r--r--include/linux/ide.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 98d29df1ee04..3bf2bf0a56dc 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1175,8 +1175,14 @@ int ide_do_test_unit_ready(ide_drive_t *, struct gendisk *);
1175int ide_do_start_stop(ide_drive_t *, struct gendisk *, int); 1175int ide_do_start_stop(ide_drive_t *, struct gendisk *, int);
1176int ide_set_media_lock(ide_drive_t *, struct gendisk *, int); 1176int ide_set_media_lock(ide_drive_t *, struct gendisk *, int);
1177 1177
1178ide_startstop_t ide_pc_intr(ide_drive_t *drive, 1178static inline unsigned long ide_scsi_get_timeout(struct ide_atapi_pc *pc)
1179 ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry, 1179{
1180 return max_t(unsigned long, WAIT_CMD, pc->timeout - jiffies);
1181}
1182
1183int ide_scsi_expiry(ide_drive_t *);
1184
1185ide_startstop_t ide_pc_intr(ide_drive_t *drive, ide_handler_t *handler,
1180 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *), 1186 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *),
1181 void (*retry_pc)(ide_drive_t *), 1187 void (*retry_pc)(ide_drive_t *),
1182 int (*io_buffers)(ide_drive_t *, struct ide_atapi_pc *, unsigned int, 1188 int (*io_buffers)(ide_drive_t *, struct ide_atapi_pc *, unsigned int,