diff options
| author | Peter Maydell | 2016-02-18 15:16:18 +0100 |
|---|---|---|
| committer | Peter Maydell | 2016-02-18 15:26:33 +0100 |
| commit | 40bbc194376758e8deabcb6f5bfd38bf73355a40 (patch) | |
| tree | 3829fefcb753e571d4fcea873afe1d4d6fe487eb /include | |
| parent | hw/sd: Add QOM bus which SD cards plug in to (diff) | |
| download | qemu-40bbc194376758e8deabcb6f5bfd38bf73355a40.tar.gz qemu-40bbc194376758e8deabcb6f5bfd38bf73355a40.tar.xz qemu-40bbc194376758e8deabcb6f5bfd38bf73355a40.zip | |
hw/sd/sdhci.c: Update to use SDBus APIs
Update the SDHCI code to use the new SDBus APIs.
This commit introduces the new command line options required
to connect a disk to sdhci-pci:
-device sdhci-pci -drive id=mydrive,[...] -device sd,drive=mydrive
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 1455646193-13238-6-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/sd/sdhci.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/sd/sdhci.h b/include/hw/sd/sdhci.h index ffd1f80891..607a83e855 100644 --- a/include/hw/sd/sdhci.h +++ b/include/hw/sd/sdhci.h @@ -37,9 +37,8 @@ typedef struct SDHCIState { PCIDevice pcidev; SysBusDevice busdev; }; - SDState *card; + SDBus sdbus; MemoryRegion iomem; - BlockBackend *blk; QEMUTimer *insert_timer; /* timer for 'changing' sd card. */ QEMUTimer *transfer_timer; |
