diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-23 11:39:21 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-23 11:39:21 +0000 |
commit | 040e80c3ad00ee9b100f97d510a0acd37489cb9b (patch) | |
tree | d4598c8370aba155380dbc98a05981397c31898c | |
parent | 2aee04366f2992a4a69d8a3d20f880d52a849cba (diff) | |
download | rockbox-040e80c3ad00ee9b100f97d510a0acd37489cb9b.tar.gz rockbox-040e80c3ad00ee9b100f97d510a0acd37489cb9b.zip |
Now exports last_disk_activity, for auto-poweroff
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2373 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/ata.c | 2 | ||||
-rw-r--r-- | firmware/drivers/ata.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 2451a862ba..807d441351 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -98,7 +98,7 @@ static unsigned char delayed_sector[SECTOR_SIZE]; | |||
98 | static int delayed_sector_num; | 98 | static int delayed_sector_num; |
99 | 99 | ||
100 | static long last_user_activity = -1; | 100 | static long last_user_activity = -1; |
101 | static long last_disk_activity = -1; | 101 | long last_disk_activity = -1; |
102 | 102 | ||
103 | static int multisectors; /* number of supported multisectors */ | 103 | static int multisectors; /* number of supported multisectors */ |
104 | static unsigned short identify_info[SECTOR_SIZE]; | 104 | static unsigned short identify_info[SECTOR_SIZE]; |
diff --git a/firmware/drivers/ata.h b/firmware/drivers/ata.h index da5c5e3e58..df4461e2f5 100644 --- a/firmware/drivers/ata.h +++ b/firmware/drivers/ata.h | |||
@@ -45,4 +45,6 @@ extern void ata_delayed_write(unsigned long sector, void* buf); | |||
45 | extern void ata_flush(void); | 45 | extern void ata_flush(void); |
46 | extern void ata_spin(void); | 46 | extern void ata_spin(void); |
47 | 47 | ||
48 | extern long last_disk_activity; | ||
49 | |||
48 | #endif | 50 | #endif |