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.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/firmware/export/ata.h b/firmware/export/ata.h
index f491e525e6..b5e39de3aa 100644
--- a/firmware/export/ata.h
+++ b/firmware/export/ata.h
@@ -60,5 +60,17 @@ bool ata_present(IF_MV_NONVOID(int drive));
60long ata_last_disk_activity(void); 60long ata_last_disk_activity(void);
61int ata_spinup_time(void); /* ticks */ 61int ata_spinup_time(void); /* ticks */
62 62
63#ifdef HAVE_ATA_DMA
64/* Needed to allow updating while waiting for DMA to complete */
65void ata_keep_active(void);
66/* Returns current DMA mode */
67int ata_get_dma_mode(void);
68/* Set DMA mode for ATA interface */
69void ata_dma_set_mode(unsigned char mode);
70/* Sets up DMA transfer */
71bool ata_dma_setup(void *addr, unsigned long bytes, bool write);
72/* Waits for DMA transfer completion */
73bool ata_dma_finish(void);
74#endif /* HAVE_ATA_DMA */
63 75
64#endif 76#endif /* __ATA_H__ */