diff options
Diffstat (limited to 'firmware/export/ata_idle_notify.h')
-rw-r--r-- | firmware/export/ata_idle_notify.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index ee825c967e..1dda3e196a 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h | |||
@@ -19,7 +19,9 @@ | |||
19 | #ifndef __ATACALLBACK_H__ | 19 | #ifndef __ATACALLBACK_H__ |
20 | #define __ATACALLBACK_H__ | 20 | #define __ATACALLBACK_H__ |
21 | 21 | ||
22 | |||
22 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "events.h" | ||
23 | 25 | ||
24 | #if 0 | 26 | #if 0 |
25 | NOTE: ata_idle_nofity usage notes.. | 27 | NOTE: ata_idle_nofity usage notes.. |
@@ -34,15 +36,17 @@ | |||
34 | 5) Dont Panic! | 36 | 5) Dont Panic! |
35 | #endif | 37 | #endif |
36 | 38 | ||
39 | enum { | ||
40 | DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), | ||
41 | }; | ||
42 | |||
37 | #define USING_ATA_CALLBACK !defined(SIMULATOR) \ | 43 | #define USING_ATA_CALLBACK !defined(SIMULATOR) \ |
38 | && !defined(HAVE_FLASH_DISK) | 44 | && !defined(HAVE_FLASH_DISK) |
39 | 45 | ||
40 | #define MAX_ATA_CALLBACKS 5 | ||
41 | typedef bool (*ata_idle_notify)(void); | 46 | typedef bool (*ata_idle_notify)(void); |
42 | 47 | ||
43 | extern bool register_ata_idle_func(ata_idle_notify function); | 48 | extern void register_ata_idle_func(ata_idle_notify function); |
44 | #if USING_ATA_CALLBACK | 49 | #if USING_ATA_CALLBACK |
45 | extern void ata_idle_notify_init(void); | ||
46 | extern void unregister_ata_idle_func(ata_idle_notify function, bool run); | 50 | extern void unregister_ata_idle_func(ata_idle_notify function, bool run); |
47 | extern bool call_ata_idle_notifys(bool force); | 51 | extern bool call_ata_idle_notifys(bool force); |
48 | #else | 52 | #else |