summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/ata.h6
-rw-r--r--firmware/export/storage.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/firmware/export/ata.h b/firmware/export/ata.h
index 0d84a91524..dfa73eebf5 100644
--- a/firmware/export/ata.h
+++ b/firmware/export/ata.h
@@ -208,8 +208,8 @@ static inline int ata_disk_isssd(void)
208 ); 208 );
209} 209}
210 210
211/* Returns 1 if the drive can be powered off safely */ 211/* Returns 1 if the drive supports power management commands */
212static inline int ata_disk_can_poweroff(void) 212static inline int ata_disk_can_sleep(void)
213{ 213{
214 unsigned short *identify_info = ata_get_identify(); 214 unsigned short *identify_info = ata_get_identify();
215 /* Only devices that claim to support PM can be safely powered off. 215 /* Only devices that claim to support PM can be safely powered off.
@@ -217,6 +217,8 @@ static inline int ata_disk_can_poweroff(void)
217 return (identify_info[82] & (1<<3) && identify_info[85] & (1<<3)); 217 return (identify_info[82] & (1<<3) && identify_info[85] & (1<<3));
218} 218}
219 219
220int ata_flush(void);
221
220#ifdef HAVE_ATA_DMA 222#ifdef HAVE_ATA_DMA
221/* Returns current DMA mode */ 223/* Returns current DMA mode */
222int ata_get_dma_mode(void); 224int ata_get_dma_mode(void);
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index e2ae4056be..f97cbf34d5 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -174,7 +174,7 @@ static inline void storage_sleep(void) {};
174 #define storage_disk_is_active() ata_disk_is_active() 174 #define storage_disk_is_active() ata_disk_is_active()
175 #define storage_soft_reset() ata_soft_reset() 175 #define storage_soft_reset() ata_soft_reset()
176 #ifdef HAVE_STORAGE_FLUSH 176 #ifdef HAVE_STORAGE_FLUSH
177 #define storage_flush() (void)0 177 #define storage_flush() ata_flush()
178 #endif 178 #endif
179 #define storage_last_disk_activity() ata_last_disk_activity() 179 #define storage_last_disk_activity() ata_last_disk_activity()
180 #define storage_spinup_time() ata_spinup_time() 180 #define storage_spinup_time() ata_spinup_time()