diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 02:07:24 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 02:07:24 +0000 |
commit | 08d42520ab2a10050d2145b2a28a26abf2d24957 (patch) | |
tree | 23902304fd1146f94ffd563a85b717ba90c48082 | |
parent | 5ffd2f759847cf52ff728605ac964e80cee70bff (diff) | |
download | rockbox-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.h | 8 |
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 */ |
29 | bool ata_is_coldstart(void); | 29 | bool ata_is_coldstart(void) STORAGE_INIT_ATTR; |
30 | /* Initializes the interface */ | 30 | /* Initializes the interface */ |
31 | void ata_device_init(void); | 31 | void 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.*/ |
35 | void ata_enable(bool on); | 35 | void 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 | ||
37 | void ata_reset(void); | 38 | void ata_reset(void); |
39 | #else | ||
40 | void 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 |