summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-03 23:35:14 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-03 23:35:14 +0000
commita2b5681ca5201c9da070e1fabc36dc7b0204c5d4 (patch)
tree9a7c01540629348330d547cafec827c04b5c3254 /firmware
parentdc6caf9ce817102ee2fca8cc9eb1258c64cbeeed (diff)
Removed disabled code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata_mmc.c33
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)
return 0;
}
-#if 0 /* old implementation */
-int ata_read_sectors(unsigned long start,
- int incount,
- void* inbuf)
-{
- int ret = 0;
- int i;
- unsigned long addr;
- unsigned char response;
- tCardInfo *card = &card_info[current_card];
-
- addr = start * SECTOR_SIZE;
-
- mutex_lock(&mmc_mutex);
- ret = select_card(current_card);
-
- for (i = 0; (i < incount) && (ret == 0); i++)
- {
- if ((ret = send_cmd(CMD_READ_SINGLE_BLOCK, addr, &response)))
- break;
- ret = receive_data(inbuf, SECTOR_SIZE, card->read_timeout);
-
- addr += SECTOR_SIZE;
- inbuf += SECTOR_SIZE;
- }
-
- deselect_card();
- mutex_unlock(&mmc_mutex);
-
- return ret;
-}
-#endif
-
int ata_read_sectors(unsigned long start,
int incount,
void* inbuf)