diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-29 22:37:31 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-29 22:37:31 +0000 |
commit | 575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13 (patch) | |
tree | 768b87ced00944e35ccac3b706493b3bcc9d641d | |
parent | 7ee03d04936fb161903b2c15d598d7a1588968a3 (diff) | |
download | rockbox-575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13.tar.gz rockbox-575c9049f6bbcb3b5c8d4b51aeec9cc95d9fdf13.zip |
behave for multi-volume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5520 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/debug_menu.c | 6 | ||||
-rw-r--r-- | firmware/drivers/ata.c | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 880f545d52..67eb287e6f 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1455,7 +1455,7 @@ static bool dbg_disk_info(void) | |||
1455 | 1455 | ||
1456 | case 3: { | 1456 | case 3: { |
1457 | unsigned int free; | 1457 | unsigned int free; |
1458 | fat_size( NULL, &free ); | 1458 | fat_size( IF_MV2(0,) NULL, &free ); |
1459 | snprintf(buf, sizeof buf, "%d MB", free / 1024 ); | 1459 | snprintf(buf, sizeof buf, "%d MB", free / 1024 ); |
1460 | lcd_puts(0, y++, "Free"); | 1460 | lcd_puts(0, y++, "Free"); |
1461 | lcd_puts(0, y++, buf); | 1461 | lcd_puts(0, y++, buf); |
@@ -1530,7 +1530,7 @@ static bool dbg_disk_info(void) | |||
1530 | 1530 | ||
1531 | case 11: | 1531 | case 11: |
1532 | lcd_puts(0, y++, "Cluster size"); | 1532 | lcd_puts(0, y++, "Cluster size"); |
1533 | snprintf(buf, 128, "%d bytes", fat_get_cluster_size()); | 1533 | snprintf(buf, 128, "%d bytes", fat_get_cluster_size(IF_MV(0))); |
1534 | lcd_puts(0, y++, buf); | 1534 | lcd_puts(0, y++, buf); |
1535 | break; | 1535 | break; |
1536 | } | 1536 | } |
@@ -1560,7 +1560,7 @@ static bool dbg_disk_info(void) | |||
1560 | lcd_puts(0,0,"Scanning"); | 1560 | lcd_puts(0,0,"Scanning"); |
1561 | lcd_puts(0,1,"disk..."); | 1561 | lcd_puts(0,1,"disk..."); |
1562 | lcd_update(); | 1562 | lcd_update(); |
1563 | fat_recalc_free(); | 1563 | fat_recalc_free(IF_MV(0)); |
1564 | } | 1564 | } |
1565 | break; | 1565 | break; |
1566 | } | 1566 | } |
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 | ||
313 | int ata_read_sectors(IF_MV((int drive,)) | 313 | int 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 | ||
580 | int ata_write_sectors(IF_MV((int drive,)) | 583 | int 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 | ||