summaryrefslogtreecommitdiff
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
parent5ffd2f759847cf52ff728605ac964e80cee70bff (diff)
downloadrockbox-08d42520ab2a10050d2145b2a28a26abf2d24957.tar.gz
rockbox-08d42520ab2a10050d2145b2a28a26abf2d24957.zip
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
-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 @@
26#include "ata-target.h" /* for other target-specific defines */ 26#include "ata-target.h" /* for other target-specific defines */
27 27
28 /* Returns true if the interface hasn't been initialised yet */ 28 /* Returns true if the interface hasn't been initialised yet */
29bool ata_is_coldstart(void); 29bool ata_is_coldstart(void) STORAGE_INIT_ATTR;
30/* Initializes the interface */ 30/* Initializes the interface */
31void ata_device_init(void); 31void ata_device_init(void) STORAGE_INIT_ATTR;
32/* ata_enable(true) is used after ata_device_init() to enable the interface 32/* ata_enable(true) is used after ata_device_init() to enable the interface
33 * ata_enable(false) is used to disable the interface so 33 * ata_enable(false) is used to disable the interface so
34 * an ATA to USB bridge chip can use it instead.*/ 34 * an ATA to USB bridge chip can use it instead.*/
35void ata_enable(bool on); 35void ata_enable(bool on);
36/* ATA hard reset: pulse the RESET pin */ 36/* ATA hard reset: pulse the RESET pin */
37#ifdef HAVE_ATA_POWER_OFF
37void ata_reset(void); 38void ata_reset(void);
39#else
40void ata_reset(void) STORAGE_INIT_ATTR;
41#endif
38 42
39/* Optional optimized target-specific PIO transfer */ 43/* Optional optimized target-specific PIO transfer */
40#ifdef ATA_OPTIMIZED_READING 44#ifdef ATA_OPTIMIZED_READING