diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-11-09 00:38:10 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-11-09 00:38:10 +0000 |
commit | 2a93cee8e28ad88c848b378fb10551cf5597bb81 (patch) | |
tree | 1e6d242496692c92bd23fcd4802dc05b6ac68e23 /firmware/target/arm/tms320dm320/mrobe-500 | |
parent | a721007e3956af8ac872237b5371466caf5a75e2 (diff) |
M:Robe 500 - Enable ASM optimized ATA interface improving disk access speed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23572 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500')
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/ata-target.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/ata-target.h b/firmware/target/arm/tms320dm320/mrobe-500/ata-target.h index 4d0e0433c5..2a9d3e8010 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/ata-target.h +++ b/firmware/target/arm/tms320dm320/mrobe-500/ata-target.h @@ -22,9 +22,18 @@ #ifndef ATA_TARGET_H #define ATA_TARGET_H +#if 0 /* Plain C read & write loops */ #define PREFER_C_READING #define PREFER_C_WRITING +#else +/* ASM optimized reading and writing */ +#define ATA_OPTIMIZED_READING +#define ATA_OPTIMIZED_WRITING + +void copy_read_sectors(const unsigned char* buf, int wordcount); +void copy_write_sectors(const unsigned char* buf, int wordcount); +#endif #define ATA_IOBASE 0x50000000 #define REGISTER_OFFSET (ATA_IOBASE+0x00400000) /* A21 = High */ |