summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-12-29 22:37:31 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-12-29 22:37:31 +0000
commit575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13 (patch)
tree768b87ced00944e35ccac3b706493b3bcc9d641d /firmware
parent7ee03d04936fb161903b2c15d598d7a1588968a3 (diff)
downloadrockbox-575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13.tar.gz
rockbox-575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13.tar.bz2
rockbox-575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13.zip
behave for multi-volume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 349ba077dd..bd1afec2d9 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -310,7 +310,7 @@ static void copy_read_sectors(unsigned char* buf, int wordcount)
#endif
}
-int ata_read_sectors(IF_MV((int drive,))
+int ata_read_sectors(IF_MV2(int drive,)
unsigned long start,
int incount,
void* inbuf)
@@ -321,6 +321,9 @@ int ata_read_sectors(IF_MV((int drive,))
void* buf;
int spinup_start;
+#ifdef HAVE_MULTIVOLUME
+ (void)drive; /* unused for now */
+#endif
mutex_lock(&ata_mtx);
last_disk_activity = current_tick;
@@ -577,7 +580,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
#endif
}
-int ata_write_sectors(IF_MV((int drive,))
+int ata_write_sectors(IF_MV2(int drive,)
unsigned long start,
int count,
const void* buf)
@@ -586,6 +589,9 @@ int ata_write_sectors(IF_MV((int drive,))
int ret = 0;
int spinup_start;
+#ifdef HAVE_MULTIVOLUME
+ (void)drive; /* unused for now */
+#endif
if (start == 0)
panicf("Writing on sector 0\n");