summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tms320dm320')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/ata-target.h9
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 */