From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58093 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYGNS-0007nc-Qx for qemu-devel@nongnu.org; Mon, 12 Jul 2010 06:36:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYGNR-0005uG-FV for qemu-devel@nongnu.org; Mon, 12 Jul 2010 06:36:46 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:40633) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYGNR-0005tg-61 for qemu-devel@nongnu.org; Mon, 12 Jul 2010 06:36:45 -0400 From: Isaku Yamahata Date: Mon, 12 Jul 2010 19:36:39 +0900 Message-Id: Subject: [Qemu-devel] [PATCH v2 0/5] pci: split out bridge code into pci_bridge and make it library List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, yamahata@valinux.co.jp, mst@redhat.com changes v1 -> v2: - introduce pci_internals.h to accomodate pci internal strcutures to share between pci.c and pci_bridge.c - don't make PCIBridge::bus pointer as suggested by Michael S. Tsirkin - rename PCIBridge::bus -> PCIBridge::sec_bus - eliminate pci_reguster_secondary_bus()/pci_unregister_secondary_bus() - document pci bridge library functions. - introduced pci bridge library. Clean up of pci host bus ans piix pci as discussed with v1 will be addressed after this patch set is accepted. Patch description: Now pci.c has grown. So split bridge related code into dedicated file for further extension to pci bridge. Further clean up and pcie port emulator. This make patch conflict less possible in future. Isaku Yamahata (5): pci: move out pci internal structures, PCIBus, PCIBridge, and pci_bus_info. pci/bridge: split out pci bridge code into pci_bridge.c from pci.c pci_bridge: rename PCIBridge::bus -> PCIBridge::sec_bus. pci_bridge: clean up: remove pci_{register, unregister}_secondary_bus() pci_bridge: introduce pci bridge library. Makefile.objs | 2 +- hw/apb_pci.c | 43 ++++++--- hw/dec_pci.c | 35 ++++++-- hw/pci.c | 207 +------------------------------------------ hw/pci.h | 5 +- hw/pci_bridge.c | 249 ++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/pci_bridge.h | 62 +++++++++++++ hw/pci_internals.h | 42 +++++++++ qemu-common.h | 1 + 9 files changed, 416 insertions(+), 230 deletions(-) create mode 100644 hw/pci_bridge.c create mode 100644 hw/pci_bridge.h create mode 100644 hw/pci_internals.h