summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-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)
310#endif 310#endif
311} 311}
312 312
313int ata_read_sectors(IF_MV((int drive,)) 313int ata_read_sectors(IF_MV2(int drive,)
314 unsigned long start, 314 unsigned long start,
315 int incount, 315 int incount,
316 void* inbuf) 316 void* inbuf)
@@ -321,6 +321,9 @@ int ata_read_sectors(IF_MV((int drive,))
321 void* buf; 321 void* buf;
322 int spinup_start; 322 int spinup_start;
323 323
324#ifdef HAVE_MULTIVOLUME
325 (void)drive; /* unused for now */
326#endif
324 mutex_lock(&ata_mtx); 327 mutex_lock(&ata_mtx);
325 328
326 last_disk_activity = current_tick; 329 last_disk_activity = current_tick;
@@ -577,7 +580,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
577#endif 580#endif
578} 581}
579 582
580int ata_write_sectors(IF_MV((int drive,)) 583int ata_write_sectors(IF_MV2(int drive,)
581 unsigned long start, 584 unsigned long start,
582 int count, 585 int count,
583 const void* buf) 586 const void* buf)
@@ -586,6 +589,9 @@ int ata_write_sectors(IF_MV((int drive,))
586 int ret = 0; 589 int ret = 0;
587 int spinup_start; 590 int spinup_start;
588 591
592#ifdef HAVE_MULTIVOLUME
593 (void)drive; /* unused for now */
594#endif
589 if (start == 0) 595 if (start == 0)
590 panicf("Writing on sector 0\n"); 596 panicf("Writing on sector 0\n");
591 597