diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:23 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:23 -0400 |
commit | b163f46d5ecf48d883ce156e5e5a21a1a9a125c7 (patch) | |
tree | 5ee79c2c30d959bc21607d4c45faecbdf2481c4f /include | |
parent | c36a7e98846a7a4a1c09b7f148395089bce512d8 (diff) |
ide: enhance ide_busy_sleep()
* Make ide_busy_sleep() take timeout value as a parameter
and also allow use of AltStatus Register if requested with
altstatus parameter. Update existing users accordingly.
* Convert ide_driveid_update() and actual_try_to_identify()
to use ide_busy_sleep().
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index ca0b132de1ae..2ad8548135d2 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -923,6 +923,8 @@ void ide_fix_driveid(u16 *); | |||
923 | 923 | ||
924 | extern void ide_fixstring(u8 *, const int, const int); | 924 | extern void ide_fixstring(u8 *, const int, const int); |
925 | 925 | ||
926 | int ide_busy_sleep(ide_hwif_t *, unsigned long, int); | ||
927 | |||
926 | int ide_wait_stat(ide_startstop_t *, ide_drive_t *, u8, u8, unsigned long); | 928 | int ide_wait_stat(ide_startstop_t *, ide_drive_t *, u8, u8, unsigned long); |
927 | 929 | ||
928 | extern ide_startstop_t ide_do_reset (ide_drive_t *); | 930 | extern ide_startstop_t ide_do_reset (ide_drive_t *); |