summaryrefslogtreecommitdiff
path: root/firmware/export/ata.h
diff options
context:
space:
mode:
authorTorne Wuff <torne@wolfpuppy.org.uk>2013-05-12 22:38:52 +0100
committerSolomon Peachy <pizza@shaftnet.org>2020-11-04 03:03:19 +0000
commit5db83c155affd1968872044fc6a3a156cf966ba4 (patch)
tree50fd4d2ef7bed155feaa79c3023af10e47075d8f /firmware/export/ata.h
parent090bd9592df1e05e289e658c2530ae277a205318 (diff)
downloadrockbox-5db83c155affd1968872044fc6a3a156cf966ba4.tar.gz
rockbox-5db83c155affd1968872044fc6a3a156cf966ba4.zip
pp5020: use ipod firmware timings for ATA PIO.
Some mSATA adapters seem to have trouble working with Rockbox using our normal PIO timings; the timing value we use is probably out of spec and is different to the OF. Switch to using the OF's timings according to which PIO mode we select. This may not completely resolve problems with these adapters but allows Rockbox to boot and play audio. Change-Id: If73210700eb4af01864b373709ee1d15c775fb11
Diffstat (limited to 'firmware/export/ata.h')
-rw-r--r--firmware/export/ata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/ata.h b/firmware/export/ata.h
index e6ca9422ea..7c5fd3a8d0 100644
--- a/firmware/export/ata.h
+++ b/firmware/export/ata.h
@@ -165,6 +165,9 @@ int ata_num_drives(int first_drive);
165long ata_last_disk_activity(void); 165long ata_last_disk_activity(void);
166int ata_spinup_time(void); /* ticks */ 166int ata_spinup_time(void); /* ticks */
167 167
168/* Returns 1 if drive is solid-state */
169int ata_disk_isssd(void);
170
168#ifdef HAVE_ATA_DMA 171#ifdef HAVE_ATA_DMA
169/* Returns current DMA mode */ 172/* Returns current DMA mode */
170int ata_get_dma_mode(void); 173int ata_get_dma_mode(void);