sdmmc: handle fakescsi emulation
This commit is contained in:
parent
c7c58ef8bb
commit
fa769a8f9d
1 changed files with 10 additions and 2 deletions
|
@ -297,9 +297,17 @@ mmcbio(SDunit *unit, int lun, int write, void *data, long nb, uvlong bno)
|
|||
}
|
||||
|
||||
static int
|
||||
mmcrio(SDreq*)
|
||||
mmcrio(SDreq *r)
|
||||
{
|
||||
return -1;
|
||||
int i, rw, count;
|
||||
uvlong lba;
|
||||
|
||||
if((i = sdfakescsi(r)) != SDnostatus)
|
||||
return r->status = i;
|
||||
if((i = sdfakescsirw(r, &lba, &count, &rw)) != SDnostatus)
|
||||
return i;
|
||||
r->rlen = mmcbio(r->unit, r->lun, rw == SDwrite, r->data, count, lba);
|
||||
return r->status = SDok;
|
||||
}
|
||||
|
||||
SDifc sdmmcifc = {
|
||||
|
|
Loading…
Reference in a new issue