diff options
-rw-r--r-- | firmware/drivers/ata_mmc.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index e17eceff80..18864cd746 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c | |||
@@ -448,39 +448,6 @@ static int initialize_card(int card_no) | |||
448 | return 0; | 448 | return 0; |
449 | } | 449 | } |
450 | 450 | ||
451 | #if 0 /* old implementation */ | ||
452 | int ata_read_sectors(unsigned long start, | ||
453 | int incount, | ||
454 | void* inbuf) | ||
455 | { | ||
456 | int ret = 0; | ||
457 | int i; | ||
458 | unsigned long addr; | ||
459 | unsigned char response; | ||
460 | tCardInfo *card = &card_info[current_card]; | ||
461 | |||
462 | addr = start * SECTOR_SIZE; | ||
463 | |||
464 | mutex_lock(&mmc_mutex); | ||
465 | ret = select_card(current_card); | ||
466 | |||
467 | for (i = 0; (i < incount) && (ret == 0); i++) | ||
468 | { | ||
469 | if ((ret = send_cmd(CMD_READ_SINGLE_BLOCK, addr, &response))) | ||
470 | break; | ||
471 | ret = receive_data(inbuf, SECTOR_SIZE, card->read_timeout); | ||
472 | |||
473 | addr += SECTOR_SIZE; | ||
474 | inbuf += SECTOR_SIZE; | ||
475 | } | ||
476 | |||
477 | deselect_card(); | ||
478 | mutex_unlock(&mmc_mutex); | ||
479 | |||
480 | return ret; | ||
481 | } | ||
482 | #endif | ||
483 | |||
484 | int ata_read_sectors(unsigned long start, | 451 | int ata_read_sectors(unsigned long start, |
485 | int incount, | 452 | int incount, |
486 | void* inbuf) | 453 | void* inbuf) |