summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-09 02:07:24 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-09 02:07:24 +0000
commit08d42520ab2a10050d2145b2a28a26abf2d24957 (patch)
tree23902304fd1146f94ffd563a85b717ba90c48082 /firmware
parent5ffd2f759847cf52ff728605ac964e80cee70bff (diff)
Add STORAGE_INIT_ATTR to some target-specific ATA functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31186 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/ata-driver.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/ata-driver.h b/firmware/export/ata-driver.h
index 8711b2145f..7c69322bfb 100644
--- a/firmware/export/ata-driver.h
+++ b/firmware/export/ata-driver.h
@@ -26,15 +26,19 @@
#include "ata-target.h" /* for other target-specific defines */
/* Returns true if the interface hasn't been initialised yet */
-bool ata_is_coldstart(void);
+bool ata_is_coldstart(void) STORAGE_INIT_ATTR;
/* Initializes the interface */
-void ata_device_init(void);
+void ata_device_init(void) STORAGE_INIT_ATTR;
/* ata_enable(true) is used after ata_device_init() to enable the interface
* ata_enable(false) is used to disable the interface so
* an ATA to USB bridge chip can use it instead.*/
void ata_enable(bool on);
/* ATA hard reset: pulse the RESET pin */
+#ifdef HAVE_ATA_POWER_OFF
void ata_reset(void);
+#else
+void ata_reset(void) STORAGE_INIT_ATTR;
+#endif
/* Optional optimized target-specific PIO transfer */
#ifdef ATA_OPTIMIZED_READING