1
0
Fork 0
forked from len0rd/rockbox

Completed target tree move of the ata driver code. Some code cleanup.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11655 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-12-03 22:13:44 +00:00
parent dc956ce993
commit 31ffd7b154
10 changed files with 891 additions and 746 deletions

View file

@ -20,8 +20,8 @@
#define ATA_TARGET_H
/* asm optimised read & write loops */
#define NOINLINE_ATTR __attribute__((noinline)) /* don't inline the loops */
#define ATA_OPTIMIZED_READING
#define ATA_OPTIMIZED_WRITING
#define ATA_IOBASE 0x20000000
#define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE + 0x20)))
@ -65,4 +65,6 @@ void ata_reset(void);
void ata_device_init(void);
bool ata_is_coldstart(void);
void copy_read_sectors(unsigned char* buf, int wordcount);
void copy_write_sectors(const unsigned char* buf, int wordcount);
#endif