summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 18f50b24df..e80d53c3d0 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -174,7 +174,7 @@ int ata_read_sectors(unsigned long start,
174 return ret; 174 return ret;
175} 175}
176 176
177#ifdef DISK_WRITE 177//#ifdef DISK_WRITE
178int ata_write_sectors(unsigned long start, 178int ata_write_sectors(unsigned long start,
179 unsigned char count, 179 unsigned char count,
180 void* buf) 180 void* buf)
@@ -230,7 +230,7 @@ int ata_write_sectors(unsigned long start,
230 mutex_unlock(&ata_mtx); 230 mutex_unlock(&ata_mtx);
231 return i; 231 return i;
232} 232}
233#endif 233//#endif
234 234
235static int check_registers(void) 235static int check_registers(void)
236{ 236{
@@ -269,6 +269,11 @@ void ata_spindown(int seconds)
269 sleep_timeout = seconds * HZ; 269 sleep_timeout = seconds * HZ;
270} 270}
271 271
272bool ata_disk_is_active(void)
273{
274 return !sleeping;
275}
276
272static int ata_perform_sleep(void) 277static int ata_perform_sleep(void)
273{ 278{
274 int ret = 0; 279 int ret = 0;