Statistics
| Branch: | Revision:

root / hw / sd @ 3a15effe

Name Size
Makefile.objs 267 Bytes
milkymist-memcard.c 8.1 kB
omap_mmc.c 16 kB
pl181.c 15.4 kB
pxa2xx_mmci.c 14.2 kB
sd.c 48.8 kB
sdhci.c 43.3 kB
sdhci.h 12.3 kB
ssi-sd.c 8.5 kB

Latest revisions

# Date Author Comment
8827b0fb 07/15/2013 06:17 pm Peter Maydell

sd/pl181.c: Avoid undefined shift behaviour in RWORD macro

Add a cast to avoid potentially shifting into the sign bit of
a signed value, which is undefined behaviour in C.

(Detected with clang's -fsanitize=undefined.)

Signed-off-by: Peter Maydell <>...

29776739 07/04/2013 06:42 pm Paolo Bonzini

hw/s*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

6790f59d 06/21/2013 09:52 pm liguang

sd: pass bool parameter for sd_init

Signed-off-by: liguang <>
Signed-off-by: Michael Tokarev <>

df32fd1c 06/20/2013 05:39 pm Paolo Bonzini

dma: eliminate DMAContext

The DMAContext is a simple pointer to an AddressSpace that is now always
already available. Make everyone hold the address space directly,
and clean up the DMA API to use the AddressSpace directly.

Reviewed-by: Peter Maydell <>...

677ff2ae 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci.c: Fix bdata_read DPRINT message

This message was printing out the data in decimal only, which is not
very friendly to the debugging developer. Add hex variant in
parenthesis to make it consistent with other similar messages in this
module.

Signed-off-by: Peter Crosthwaite <>...

1d32c26f 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci:ADMA: fix interrupt

The end of transfer check was occurring and potentially returning before
the interrupt flag was checked. This means the interrupt will be missed
if it occurs on the last packet. Fix by checking for the interrupt
before checking for the end of transfer....

37ab4a56 06/03/2013 07:17 pm Peter Crosthwaite

sd/sd.c: Fix "inquiry" ACMD41

QEMU models two (of the three) ACMD41 has two modes, "inquiry" and
"first". The selection logic for which of the two is incorrect - it
compares != 0 for the entire argument value rather than only bits 23:0
as per the spec. Fix....

656f416c 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci.c: Only reset data_count on new commands

The data_count variable was being reset on every transfer, including
DMA transfer resumptions. This is incorrect, it should only be set
on a new command.

Manifests as a bug when using ADMA and there is a timer delay between...

dcdb4cd8 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci: Fix Buffer Write Ready interrupt

This interrupt is not risen after the last block is written to sd. It
is mutually exclusive with the end of transfer conditions. Fix.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Igor Mitsyanko <>...

View revisions

Also available in: Atom