OSDN Git Service

pci: move pci core code to hw/pci
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 12 Dec 2012 11:32:14 +0000 (13:32 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 17 Dec 2012 11:02:17 +0000 (13:02 +0200)
Move files and modify makefiles to pick them at the
new location.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
32 files changed:
hw/Makefile.objs
hw/i386/Makefile.objs
hw/pci/Makefile.objs [new file with mode: 0644]
hw/pci/msi.c [moved from hw/msi.c with 100% similarity]
hw/pci/msi.h [moved from hw/msi.h with 100% similarity]
hw/pci/msix.c [moved from hw/msix.c with 100% similarity]
hw/pci/msix.h [moved from hw/msix.h with 100% similarity]
hw/pci/pci-hotplug.c [moved from hw/pci-hotplug.c with 100% similarity]
hw/pci/pci-stub.c [moved from hw/pci-stub.c with 100% similarity]
hw/pci/pci.c [moved from hw/pci.c with 100% similarity]
hw/pci/pci.h [moved from hw/pci.h with 100% similarity]
hw/pci/pci_bridge.c [moved from hw/pci_bridge.c with 100% similarity]
hw/pci/pci_bridge.h [moved from hw/pci_bridge.h with 100% similarity]
hw/pci/pci_host.c [moved from hw/pci_host.c with 100% similarity]
hw/pci/pci_host.h [moved from hw/pci_host.h with 100% similarity]
hw/pci/pci_ids.h [moved from hw/pci_ids.h with 100% similarity]
hw/pci/pci_internals.h [moved from hw/pci_internals.h with 100% similarity]
hw/pci/pci_regs.h [moved from hw/pci_regs.h with 100% similarity]
hw/pci/pcie.c [moved from hw/pcie.c with 100% similarity]
hw/pci/pcie.h [moved from hw/pcie.h with 100% similarity]
hw/pci/pcie_aer.c [moved from hw/pcie_aer.c with 100% similarity]
hw/pci/pcie_aer.h [moved from hw/pcie_aer.h with 100% similarity]
hw/pci/pcie_host.c [moved from hw/pcie_host.c with 100% similarity]
hw/pci/pcie_host.h [moved from hw/pcie_host.h with 100% similarity]
hw/pci/pcie_port.c [moved from hw/pcie_port.c with 100% similarity]
hw/pci/pcie_port.h [moved from hw/pcie_port.h with 100% similarity]
hw/pci/pcie_regs.h [moved from hw/pcie_regs.h with 100% similarity]
hw/pci/shpc.c [moved from hw/shpc.c with 100% similarity]
hw/pci/shpc.h [moved from hw/shpc.h with 100% similarity]
hw/pci/slotid_cap.c [moved from hw/slotid_cap.c with 100% similarity]
hw/pci/slotid_cap.h [moved from hw/slotid_cap.h with 100% similarity]
hw/ppc/Makefile.objs

index d581d8d..9d33b18 100644 (file)
@@ -1,14 +1,10 @@
-common-obj-y = usb/ ide/
+common-obj-y = usb/ ide/ pci/
 common-obj-y += loader.o
 common-obj-$(CONFIG_VIRTIO) += virtio-console.o
 common-obj-$(CONFIG_VIRTIO) += virtio-rng.o
 common-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
 common-obj-y += fw_cfg.o
-common-obj-$(CONFIG_PCI) += pci.o pci_bridge.o pci_bridge_dev.o
-common-obj-$(CONFIG_PCI) += msix.o msi.o
-common-obj-$(CONFIG_PCI) += shpc.o
-common-obj-$(CONFIG_PCI) += slotid_cap.o
-common-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
+common-obj-$(CONFIG_PCI) += pci_bridge_dev.o
 common-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
 common-obj-$(CONFIG_PCI) += i82801b11.o
 common-obj-y += watchdog.o
@@ -102,8 +98,6 @@ common-obj-$(CONFIG_XGMAC) += xgmac.o
 # PCI watchdog devices
 common-obj-$(CONFIG_PCI) += wdt_i6300esb.o
 
-common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
-
 # PCI network cards
 common-obj-$(CONFIG_NE2000_PCI) += ne2000.o
 common-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
@@ -199,7 +193,6 @@ obj-$(CONFIG_VIRTIO) += virtio-serial-bus.o virtio-scsi.o
 obj-$(CONFIG_SOFTMMU) += vhost_net.o
 obj-$(CONFIG_VHOST_NET) += vhost.o
 obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/
-obj-$(CONFIG_NO_PCI) += pci-stub.o
 obj-$(CONFIG_VGA) += vga.o
 obj-$(CONFIG_SOFTMMU) += device-hotplug.o
 obj-$(CONFIG_XEN) += xen_domainbuild.o xen_machine_pv.o
index 0d3f6a8..257f3c1 100644 (file)
@@ -2,7 +2,7 @@ obj-y += mc146818rtc.o pc.o
 obj-y += apic_common.o apic.o kvmvapic.o
 obj-y += sga.o ioapic_common.o ioapic.o piix_pci.o
 obj-y += vmport.o
-obj-y += pci-hotplug.o smbios.o wdt_ib700.o
+obj-y += pci/pci-hotplug.o smbios.o wdt_ib700.o
 obj-y += debugcon.o multiboot.o
 obj-y += pc_piix.o
 obj-y += pc_sysfw.o
diff --git a/hw/pci/Makefile.objs b/hw/pci/Makefile.objs
new file mode 100644 (file)
index 0000000..aa7a0e8
--- /dev/null
@@ -0,0 +1,7 @@
+common-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
+common-obj-$(CONFIG_PCI) += msix.o msi.o
+common-obj-$(CONFIG_PCI) += shpc.o
+common-obj-$(CONFIG_PCI) += slotid_cap.o
+common-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
+common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
+common-obj-$(CONFIG_NO_PCI) += pci-stub.o
similarity index 100%
rename from hw/msi.c
rename to hw/pci/msi.c
similarity index 100%
rename from hw/msi.h
rename to hw/pci/msi.h
similarity index 100%
rename from hw/msix.c
rename to hw/pci/msix.c
similarity index 100%
rename from hw/msix.h
rename to hw/pci/msix.h
similarity index 100%
rename from hw/pci-hotplug.c
rename to hw/pci/pci-hotplug.c
similarity index 100%
rename from hw/pci-stub.c
rename to hw/pci/pci-stub.c
similarity index 100%
rename from hw/pci.c
rename to hw/pci/pci.c
similarity index 100%
rename from hw/pci.h
rename to hw/pci/pci.h
similarity index 100%
rename from hw/pci_bridge.c
rename to hw/pci/pci_bridge.c
similarity index 100%
rename from hw/pci_bridge.h
rename to hw/pci/pci_bridge.h
similarity index 100%
rename from hw/pci_host.c
rename to hw/pci/pci_host.c
similarity index 100%
rename from hw/pci_host.h
rename to hw/pci/pci_host.h
similarity index 100%
rename from hw/pci_ids.h
rename to hw/pci/pci_ids.h
similarity index 100%
rename from hw/pci_internals.h
rename to hw/pci/pci_internals.h
similarity index 100%
rename from hw/pci_regs.h
rename to hw/pci/pci_regs.h
similarity index 100%
rename from hw/pcie.c
rename to hw/pci/pcie.c
similarity index 100%
rename from hw/pcie.h
rename to hw/pci/pcie.h
similarity index 100%
rename from hw/pcie_aer.c
rename to hw/pci/pcie_aer.c
similarity index 100%
rename from hw/pcie_aer.h
rename to hw/pci/pcie_aer.h
similarity index 100%
rename from hw/pcie_host.c
rename to hw/pci/pcie_host.c
similarity index 100%
rename from hw/pcie_host.h
rename to hw/pci/pcie_host.h
similarity index 100%
rename from hw/pcie_port.c
rename to hw/pci/pcie_port.c
similarity index 100%
rename from hw/pcie_port.h
rename to hw/pci/pcie_port.h
similarity index 100%
rename from hw/pcie_regs.h
rename to hw/pci/pcie_regs.h
similarity index 100%
rename from hw/shpc.c
rename to hw/pci/shpc.c
similarity index 100%
rename from hw/shpc.h
rename to hw/pci/shpc.h
similarity index 100%
rename from hw/slotid_cap.c
rename to hw/pci/slotid_cap.c
similarity index 100%
rename from hw/slotid_cap.h
rename to hw/pci/slotid_cap.h
index 8fe2123..cb7cf8f 100644 (file)
@@ -10,7 +10,7 @@ obj-y += ppc_newworld.o
 # IBM pSeries (sPAPR)
 obj-$(CONFIG_PSERIES) += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o
 obj-$(CONFIG_PSERIES) += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o
-obj-$(CONFIG_PSERIES) += spapr_pci.o pci-hotplug.o spapr_iommu.o
+obj-$(CONFIG_PSERIES) += spapr_pci.o pci/pci-hotplug.o spapr_iommu.o
 obj-$(CONFIG_PSERIES) += spapr_events.o
 # PowerPC 4xx boards
 obj-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o