diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 12ad11532a..b1910c6a7a 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -243,7 +243,7 @@ bool old_recorder = false; | |||
243 | int ata_spinup_time = 0; | 243 | int ata_spinup_time = 0; |
244 | static bool spinup = false; | 244 | static bool spinup = false; |
245 | static bool sleeping = true; | 245 | static bool sleeping = true; |
246 | static int sleep_timeout = 5*HZ; | 246 | static long sleep_timeout = 5*HZ; |
247 | static bool poweroff = false; | 247 | static bool poweroff = false; |
248 | #ifdef HAVE_ATA_POWER_OFF | 248 | #ifdef HAVE_ATA_POWER_OFF |
249 | static int poweroff_timeout = 2*HZ; | 249 | static int poweroff_timeout = 2*HZ; |
@@ -270,7 +270,7 @@ static int set_features(void); | |||
270 | static int wait_for_bsy(void) __attribute__ ((section (".icode"))); | 270 | static int wait_for_bsy(void) __attribute__ ((section (".icode"))); |
271 | static int wait_for_bsy(void) | 271 | static int wait_for_bsy(void) |
272 | { | 272 | { |
273 | int timeout = current_tick + HZ*30; | 273 | long timeout = current_tick + HZ*30; |
274 | while (TIME_BEFORE(current_tick, timeout) && (ATA_STATUS & STATUS_BSY)) { | 274 | while (TIME_BEFORE(current_tick, timeout) && (ATA_STATUS & STATUS_BSY)) { |
275 | last_disk_activity = current_tick; | 275 | last_disk_activity = current_tick; |
276 | yield(); | 276 | yield(); |
@@ -285,7 +285,7 @@ static int wait_for_bsy(void) | |||
285 | static int wait_for_rdy(void) __attribute__ ((section (".icode"))); | 285 | static int wait_for_rdy(void) __attribute__ ((section (".icode"))); |
286 | static int wait_for_rdy(void) | 286 | static int wait_for_rdy(void) |
287 | { | 287 | { |
288 | int timeout; | 288 | long timeout; |
289 | 289 | ||
290 | if (!wait_for_bsy()) | 290 | if (!wait_for_bsy()) |
291 | return 0; | 291 | return 0; |
@@ -479,7 +479,7 @@ int ata_read_sectors(IF_MV2(int drive,) | |||
479 | void* inbuf) | 479 | void* inbuf) |
480 | { | 480 | { |
481 | int ret = 0; | 481 | int ret = 0; |
482 | int timeout; | 482 | long timeout; |
483 | int count; | 483 | int count; |
484 | void* buf; | 484 | void* buf; |
485 | long spinup_start; | 485 | long spinup_start; |
@@ -762,7 +762,7 @@ int ata_write_sectors(IF_MV2(int drive,) | |||
762 | { | 762 | { |
763 | int i; | 763 | int i; |
764 | int ret = 0; | 764 | int ret = 0; |
765 | int spinup_start; | 765 | long spinup_start; |
766 | 766 | ||
767 | #ifdef HAVE_MULTIVOLUME | 767 | #ifdef HAVE_MULTIVOLUME |
768 | (void)drive; /* unused for now */ | 768 | (void)drive; /* unused for now */ |