diff options
Diffstat (limited to 'firmware/export/ata_idle_notify.h')
-rw-r--r-- | firmware/export/ata_idle_notify.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h new file mode 100644 index 0000000000..f5f2a25fd9 --- /dev/null +++ b/firmware/export/ata_idle_notify.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 Jonathan Gordon | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef __ATACALLBACK_H__ | ||
20 | #define __ATACALLBACK_H__ | ||
21 | |||
22 | #include <stdbool.h> | ||
23 | #define USING_ATA_CALLBACK !defined(SIMULATOR) \ | ||
24 | && !defined(HAVE_FLASH_DISK) \ | ||
25 | && !defined(HAVE_MMC) | ||
26 | |||
27 | #define MAX_ATA_CALLBACKS 5 | ||
28 | typedef bool (*ata_idle_notify)(void); | ||
29 | |||
30 | extern bool register_ata_idle_func(ata_idle_notify function); | ||
31 | #if USING_ATA_CALLBACK | ||
32 | extern void ata_idle_notify_init(void); | ||
33 | extern void unregister_ata_idle_func(ata_idle_notify function); | ||
34 | extern bool call_ata_idle_notifys(void); | ||
35 | #else | ||
36 | #define unregister_ata_idle_func(f) | ||
37 | #define call_ata_idle_notifys() | ||
38 | #define ata_idle_notify_init() | ||
39 | #endif | ||
40 | |||
41 | #endif /* __ATACALLBACK_H__ */ | ||