Received: from eggs.gnu.org ([140.186.70.92]:51658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmpIL-0002pt-25 for qemu-devel@nongnu.org; Mon, 16 Jan 2012 11:20:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmpIE-000834-5g for qemu-devel@nongnu.org; Mon, 16 Jan 2012 11:20:28 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 16 Jan 2012 17:18:02 +0100 Message-Id: <1326730688-15780-1-git-send-email-andreas.faerber@web.de> In-Reply-To: <1325894809-17322-1-git-send-email-andreas.faerber@web.de> References: <1325894809-17322-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v5 0/6] qdev'ify PReP PCI host bridge and add PCI-to-ISA bridge List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Jan Kiszka , Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , qemu-ppc@nongnu.org Hello, Here's a slightly simplified qdev'ification series for PReP. Sizes other than 1/2/4 are currently not supported, so no need to abort(). Regards, Andreas Changes since v4: * Patches 1-2 were applied to prep-up, thus drop. * Drop switch statements for prep_pci_io_{read,write}(). Suggested by Avi. Changes since v3: * i82378: Add i8259 IRQs as state and provide qdev GPIO-in access to them. * prep: Update wiring of IRQs. Both suggested by Jan. Changes since v2: * Simplify I/O byte swaps. * Convert I/O from old_mmio to MemoryRegion ops. * Drop pci_prep_init() and instantiate the PCI host bridge in the machine, reintroducing PREPPCIState extension. * Connect IRQs via qdev after instantiating. Suggested by Alex. * Add a rebased PCI-to-ISA-bridge from the 40P series on top, to show why some suggestions from v2 and IRC don't work out. * Merge fix-up by Hervé: Add indirection for late-connected out[0] IRQ. * Add VMState for i82374 and i82378. * From i82378 drop the I/O address translation duplicated from the board. * Rebase i82378 onto Memory API. http://patchwork.ozlabs.org/patch/100250/ http://patchwork.ozlabs.org/patch/100272/ * Add new patch from Hervé to wire up the PCI-to-ISA bridge for 'prep'. Changes since v1: * Use the new .vendor_id etc. in PCIDeviceInfo * Rename from PRePPCI to Raven, adopt naming scheme from i440FX * Rebase onto multiple Memory API conversions * Split into PCIDevice and SysBus patches, leave out PREPPCIState changes http://patchwork.ozlabs.org/patch/100268/ Cc: Hervé Poussineau Cc: Anthony Liguori Cc: Alexander Graf Cc: Jan Kiszka Andreas Färber (6): prep_pci: Update I/O to MemoryRegion ops prep: qdev'ify Raven host bridge (SysBus) MAINTAINERS: Add PCI host bridge files to PReP machine prep: Add i82374 DMA emulation prep: Add i82378 PCI-to-ISA bridge emulation prep: Use i82378 PCI->ISA bridge for 'prep' machine MAINTAINERS | 1 + Makefile.objs | 2 + default-configs/ppc-softmmu.mak | 3 + hw/i82374.c | 154 +++++++++++++++++++++++ hw/i82378.c | 264 +++++++++++++++++++++++++++++++++++++++ hw/pci_ids.h | 1 + hw/ppc_prep.c | 76 +++++------- hw/prep_pci.c | 109 +++++++--------- hw/prep_pci.h | 11 -- 9 files changed, 503 insertions(+), 118 deletions(-) create mode 100644 hw/i82374.c create mode 100644 hw/i82378.c delete mode 100644 hw/prep_pci.h -- 1.7.7