summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-25 18:50:16 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-25 18:50:16 +0000
commitfc19445ba011fed5b9568b2621ffe70bd23638c3 (patch)
treea32712007b50ea937c82aa851e4dc191d8326218 /firmware/drivers/ata.c
parent5786b384ab3337540ef4d87dce71e91f7237870e (diff)
downloadrockbox-fc19445ba011fed5b9568b2621ffe70bd23638c3.tar.gz
rockbox-fc19445ba011fed5b9568b2621ffe70bd23638c3.zip
more long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6065 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c10
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;
243int ata_spinup_time = 0; 243int ata_spinup_time = 0;
244static bool spinup = false; 244static bool spinup = false;
245static bool sleeping = true; 245static bool sleeping = true;
246static int sleep_timeout = 5*HZ; 246static long sleep_timeout = 5*HZ;
247static bool poweroff = false; 247static bool poweroff = false;
248#ifdef HAVE_ATA_POWER_OFF 248#ifdef HAVE_ATA_POWER_OFF
249static int poweroff_timeout = 2*HZ; 249static int poweroff_timeout = 2*HZ;
@@ -270,7 +270,7 @@ static int set_features(void);
270static int wait_for_bsy(void) __attribute__ ((section (".icode"))); 270static int wait_for_bsy(void) __attribute__ ((section (".icode")));
271static int wait_for_bsy(void) 271static 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)
285static int wait_for_rdy(void) __attribute__ ((section (".icode"))); 285static int wait_for_rdy(void) __attribute__ ((section (".icode")));
286static int wait_for_rdy(void) 286static 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 */