qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC][PATCH 0/4] Add support for SDHCI PCI devices
@ 2014-11-18  4:26 Kevin O'Connor
  2014-11-18  4:26 ` [Qemu-devel] [PATCH 1/4] sdhci: Remove class "virtual" methods Kevin O'Connor
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Kevin O'Connor @ 2014-11-18  4:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mitsyanko, peter.crosthwaite, Vincent Palatin

I'd like to be able to emulate SD cards on x86 machines for testing
purposes.  I put together a patch series to modify the existing SDHCI
code so that it can also be used as a PCI device, and can thus be used
on any PCI platform (such as x86).

Vincent Palatin had patches to do this a couple of years ago, but his
patches no longer apply to the current qemu tree.  See:
  https://lists.nongnu.org/archive/html/qemu-devel/2011-07/msg02833.html
This series is not directly based on Vincent's patches, and is instead
mainly based on the sdhci code currently in the qemu tree.

I've lightly tested this series on x86 and confirmed that a standard
linux kernel can find and mount the given device.  To test, I add the
following to the command line: -device sdhci-pci -sd my-drive

Unfortunately, I have not been able to test the existing arm support
(which uses sysbus), but I will test if I can find an available qemu
arm image.

I'm not that familiar with QEMU internals.  Comments welcome.

-Kevin

Kevin O'Connor (4):
  sdhci: Remove class "virtual" methods
  sdhci: Add "sysbus" to sdhci QOM types and methods
  sdhci: Support SDHCI devices on PCI
  sdhci: Set a default frequency clock

 default-configs/pci.mak  |   2 +
 hw/sd/sdhci.c            | 199 +++++++++++++++++++++++++----------------------
 hw/sd/sdhci.h            |  39 +++-------
 include/hw/pci/pci.h     |   1 +
 include/hw/pci/pci_ids.h |   1 +
 5 files changed, 120 insertions(+), 122 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-21 11:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18  4:26 [Qemu-devel] [RFC][PATCH 0/4] Add support for SDHCI PCI devices Kevin O'Connor
2014-11-18  4:26 ` [Qemu-devel] [PATCH 1/4] sdhci: Remove class "virtual" methods Kevin O'Connor
2014-11-18  4:26 ` [Qemu-devel] [PATCH 2/4] sdhci: Add "sysbus" to sdhci QOM types and methods Kevin O'Connor
2014-11-18  4:26 ` [Qemu-devel] [PATCH 3/4] sdhci: Support SDHCI devices on PCI Kevin O'Connor
2014-11-18  6:27   ` Paolo Bonzini
2014-11-20 17:03     ` Kevin O'Connor
2014-11-21  7:20       ` Gerd Hoffmann
2014-11-21 11:56         ` Paolo Bonzini
2014-11-18  4:26 ` [Qemu-devel] [PATCH 4/4] sdhci: Set a default frequency clock Kevin O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).