[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] SecureDigital card emulation.
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [PATCH] SecureDigital card emulation. |
Date: |
Sat, 17 Mar 2007 10:29:18 +0000 |
User-agent: |
KMail/1.9.5 |
On Friday 16 March 2007 20:59, andrzej zaborowski wrote:
> Emulates an SD card with the full command set (no SPI mode though).
> Should be more or less compliant with version 1.10 specification.
I suspect your code only works on x86. Specifically things like:
> +struct sd_response_r1_s {
> + uint8_t cmd;
> + uint32_t status;
> + uint8_t crc;
> +};
Will be a 12-byte struct on many hosts, and probably also breaks on big-endian
hosts. AFAICS there's no way for the caller of sd_write_cmdline to figure out
what type of response is returned (other than the length), so has to rely on
doing a bitwise copy.
Paul