Enable ATA DMA on pp5020 based players with ATA drives.

DMA is only used for reading because writing seems to be slower with DMA.
Only requests which are cacheline aligned (16 bytes) will use DMA, so many
requests will still use PIO at this point; a later change will align more
reads.

Part of FS#9708, original DMA code by Boris Gjenero (dreamlayers).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24405 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Torne Wuff 2010-01-31 11:07:29 +00:00
parent c0e2d9fe1b
commit 533cf7737b
16 changed files with 286 additions and 0 deletions

View file

@ -169,3 +169,8 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif
/* DMA is used only for reading on PP502x because although reads are ~8x faster
* writes appear to be ~25% slower.
*/
#define HAVE_ATA_DMA