diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-29 07:05:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-29 07:05:27 +0000 |
commit | cf1368145af6e4b84421dd7331ad0f4c45d419a1 (patch) | |
tree | 6b2a8bbd4d6b69f17feb0df26d3109a35b26a4b1 /firmware/drivers/ata.c | |
parent | 2b77b4fdd50f8ff150181f973767afa9dd4b7b22 (diff) |
HAVE_ATA_POWER_OFF is now defined and used if the platform has support for
that control
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2889 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 216bf180bf..173dab9be3 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -83,7 +83,7 @@ bool old_recorder = false; static bool sleeping = false; static int sleep_timeout = 5*HZ; static bool poweroff = false; -#ifdef ARCHOS_RECORDER +#ifdef HAVE_ATA_POWER_OFF static int poweroff_timeout = 2*HZ; #endif static char ata_stack[DEFAULT_STACK_SIZE]; @@ -411,6 +411,7 @@ void ata_spindown(int seconds) sleep_timeout = seconds * HZ; } +#ifdef HAVE_ATA_POWER_OFF void ata_poweroff(bool enable) { if (enable) @@ -418,6 +419,7 @@ void ata_poweroff(bool enable) else poweroff_timeout = 0; } +#endif bool ata_disk_is_active(void) { |