summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-04-22 12:34:25 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-04-22 12:34:25 +0000
commitf32f78a0fb8a3d32d88ee075827f98f5c9aff3ab (patch)
treed8bd06d233b73503f1f35e7d7037fd651a218e8f
parent0f532a00411ef071549b37cde9d795be444319eb (diff)
Changed to void* for ata_read/write_sectors()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@172 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/ata.c8
-rw-r--r--firmware/ata.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/ata.c b/firmware/ata.c
index 460808a217..cb4e1e6b90 100644
--- a/firmware/ata.c
+++ b/firmware/ata.c
@@ -84,7 +84,7 @@ static int wait_for_end_of_transfer(void)
int ata_read_sectors(unsigned long start,
unsigned char count,
- unsigned short* buf)
+ void* buf)
{
int i;
@@ -106,7 +106,7 @@ int ata_read_sectors(unsigned long start,
return 0;
for (j=0; j<256; j++)
- buf[j] = SWAB16(ATA_DATA);
+ ((unsigned short*)buf)[j] = SWAB16(ATA_DATA);
}
led_turn_off();
@@ -116,7 +116,7 @@ int ata_read_sectors(unsigned long start,
int ata_write_sectors(unsigned long start,
unsigned char count,
- unsigned short* buf)
+ void* buf)
{
int i;
@@ -138,7 +138,7 @@ int ata_write_sectors(unsigned long start,
return 0;
for (j=0; j<256; j++)
- ATA_DATA = SWAB16(buf[j]);
+ ATA_DATA = SWAB16(((unsigned short*)buf)[j]);
}
led_turn_off ();
diff --git a/firmware/ata.h b/firmware/ata.h
index de94803b3b..50cd85d755 100644
--- a/firmware/ata.h
+++ b/firmware/ata.h
@@ -24,9 +24,9 @@ extern int ata_soft_reset(void);
extern int ata_init(void);
extern int ata_read_sectors(unsigned long start,
unsigned char count,
- unsigned short* buf);
+ void* buf);
extern int ata_write_sectors(unsigned long start,
unsigned char count,
- unsigned short* buf);
+ void* buf);
#endif