From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsBR-0004oC-D1 for qemu-devel@nongnu.org; Fri, 21 Nov 2014 12:39:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrsBJ-0000eF-Sf for qemu-devel@nongnu.org; Fri, 21 Nov 2014 12:39:49 -0500 Received: from mail-qa0-f51.google.com ([209.85.216.51]:33241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsBJ-0000dk-PG for qemu-devel@nongnu.org; Fri, 21 Nov 2014 12:39:41 -0500 Received: by mail-qa0-f51.google.com with SMTP id k15so3658093qaq.38 for ; Fri, 21 Nov 2014 09:39:40 -0800 (PST) From: Kevin O'Connor Date: Fri, 21 Nov 2014 12:39:31 -0500 Message-Id: <1416591576-10341-1-git-send-email-kevin@koconnor.net> Subject: [Qemu-devel] [PATCHv2 0/5] Add support for SDHCI PCI devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mitsyanko , Paolo Bonzini , peter.crosthwaite@xilinx.com, Vincent Palatin , Gerd Hoffmann I'd like to be able to emulate SD cards on x86 machines for testing purposes. This patch series modifies 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). I have done basic sdhci testing of this series on x86 by adding the following to the qemu command line: -device sdhci-pci -sd my-test-drive I have also done basic sdhci sysbus testing on an arm "vexpress-a9" machine by following the directions at: https://wiki.linaro.org/PeterMaydell/QemuVersatileExpress Changes since V1: - Use RedHat PCI IDs instead of inventing new "qemu" IDs - Fix compile warnings when debugging is enabled -Kevin Kevin O'Connor (5): sdhci: Remove class "virtual" methods sdhci: Add "sysbus" to sdhci QOM types and methods sdhci: Define SDHCI PCI ids sdhci: Support SDHCI devices on PCI sdhci: Set a default frequency clock default-configs/pci.mak | 2 + docs/specs/pci-ids.txt | 2 + hw/sd/sdhci.c | 205 +++++++++++++++++++++++++---------------------- hw/sd/sdhci.h | 39 +++------ include/hw/pci/pci.h | 1 + include/hw/pci/pci_ids.h | 1 + 6 files changed, 125 insertions(+), 125 deletions(-) -- 1.9.3