summaryrefslogtreecommitdiff
path: root/firmware/export/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/ata.h')
-rw-r--r--firmware/export/ata.h6
1 files changed, 4 insertions, 2 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);