diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 10 |
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 *); | |||
1175 | int ide_do_start_stop(ide_drive_t *, struct gendisk *, int); | 1175 | int ide_do_start_stop(ide_drive_t *, struct gendisk *, int); |
1176 | int ide_set_media_lock(ide_drive_t *, struct gendisk *, int); | 1176 | int ide_set_media_lock(ide_drive_t *, struct gendisk *, int); |
1177 | 1177 | ||
1178 | ide_startstop_t ide_pc_intr(ide_drive_t *drive, | 1178 | static 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 | |||
1183 | int ide_scsi_expiry(ide_drive_t *); | ||
1184 | |||
1185 | ide_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, |