1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
                               int count, void* buf, bool write)
{
#ifndef HAVE_MULTIVOLUME
    const int drive = 0;
#endif
    int ret = 0;

    mutex_lock(&sd_mtx);

    while(count)
    {
        if(!retry)
        {
            buf += transfer * SECTOR_SIZE;
            start += transfer;
            count -= transfer;
        }

    }

    mutex_lock(&sd_mtx);
    return 0;
}