diff options
Diffstat (limited to 'firmware/export/ata-driver.h')
-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 |