qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: sparc esp dma endianness [patch-rfc]


From: Artyom Tarasenko
Subject: [Qemu-devel] Re: sparc esp dma endianness [patch-rfc]
Date: Tue, 1 Sep 2009 19:08:00 +0200

2009/9/1 Blue Swirl <address@hidden>:
> Usually the first byte is bus id. What if you changed (as a hack) here:
>    DPRINTF("do_cmd: busid 0x%x\n", buf[0]);
>    lun = buf[0] & 7;
>    datalen = s->current_dev->send_command(s->current_dev, 0, &buf[1], lun);
> &buf[1] to &buf[0]?

Yep, figured that out too, but did a little more complex hack:

lun = buf[1] >>5;
datalen = s->current_dev->send_command(s->current_dev, 0, &buf[0], lun);

with this hack OBP checks proper LUNs.

So, the problem is not endianness, but the missing bus id. But how the
bus id should get into the dma buffer?
It should be generated by esp, right?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]