bc72ad6754
aio / timers: Switch entire codebase to the new timer API
...
This is an autogenerated patch using scripts/switch-timer-api.
Switch the entire code base to using the new timer API.
Note this patch may introduce some line length issues.
Signed-off-by: Alex Bligh <alex@alex.org.uk >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2013-08-22 19:14:24 +02:00
630f444268
pl181: QOM cast cleanup
...
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:07:00 +02:00
1d998d93ac
pl181: Rename pl181_state to PL181State
...
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:07:00 +02:00
7a239e46f7
milkymist-memcard: QOM cast cleanup
...
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:07:00 +02:00
8827b0fb66
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 <peter.maydell@linaro.org >
Message-id: 1372341831-4264-1-git-send-email-peter.maydell@linaro.org
2013-07-15 16:17:30 +01:00
2977673992
hw/s*: pass owner to memory_region_init* functions
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:48 +02:00
2c9b15cab1
memory: add owner argument to initialization functions
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:44 +02:00
6790f59da3
sd: pass bool parameter for sd_init
...
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com >
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2013-06-21 22:52:50 +04:00
df32fd1c9f
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 <peter.maydell@linaro.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-06-20 16:39:52 +02:00
37ab4a5668
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.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: 3ef0a7fd1b2f3ebb23b4fdeabcc14caf3fad6d71.1369622254.git.peter.crosthwaite@xilinx.com
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:45 +01:00
1d32c26f28
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.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com >
Message-id: 9969ec154777957ec738fc4e539d68e7494d0081.1369370934.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:45 +01:00
677ff2ae66
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 <peter.crosthwaite@xilinx.com >
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: d624179649137832eaa8caa263ef9589b4395d5e.1369370934.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:45 +01:00
dcdb4cd850
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 <peter.crosthwaite@xilinx.com >
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com >
Message-id: 7ca9fd3e03ce1bec94aff08f607c15a0ec3d3371.1369370934.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:44 +01:00
656f416c65
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
ADMA frames where the fifo is left in a non empty state.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com >
Message-id: 15a98609cc32315211b0963091a8efd67522e160.1369370934.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-06-03 17:17:44 +01:00
e03ba13637
Typo, spelling and grammatical fixes
...
Minor fixes to documentation and code comments.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2013-04-12 14:33:20 +02:00
47b43a1f41
hw: move private headers to hw/ subdirectories.
...
Many headers are used only in a single directory. These can be
kept in hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:16 +02:00
8ac5c6510b
hw: move SD/MMC devices to hw/sd/, configure with default-configs/
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:14 +02:00
49ab747f66
hw: move target-independent files to subdirectories
...
This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:12 +02:00
1fd6bb44ed
hw: make subdirectories for devices
...
Prepare the new directory structure.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:11 +02:00