]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw: move PCI bridges to hw/pci-* or hw/ARCH
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2013 14:06:20 +0000 (15:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 16:13:14 +0000 (18:13 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
35 files changed:
default-configs/i386-softmmu.mak
default-configs/sparc64-softmmu.mak
default-configs/x86_64-softmmu.mak
hw/Makefile.objs
hw/alpha/Makefile.objs
hw/alpha/typhoon.c [moved from hw/alpha_typhoon.c with 100% similarity]
hw/i386/Makefile.objs
hw/mips/Makefile.objs
hw/mips/gt64xxx_pci.c [moved from hw/gt64xxx.c with 100% similarity]
hw/pci-bridge/Makefile.objs [moved from hw/pci/bridge/Makefile.objs with 100% similarity]
hw/pci-bridge/i82801b11.c [moved from hw/pci/bridge/i82801b11.c with 100% similarity]
hw/pci-bridge/ioh3420.c [moved from hw/pci/bridge/ioh3420.c with 100% similarity]
hw/pci-bridge/pci_bridge_dev.c [moved from hw/pci/bridge/pci_bridge_dev.c with 100% similarity]
hw/pci-bridge/xio3130_downstream.c [moved from hw/pci/bridge/xio3130_downstream.c with 100% similarity]
hw/pci-bridge/xio3130_upstream.c [moved from hw/pci/bridge/xio3130_upstream.c with 100% similarity]
hw/pci-host/Makefile.objs [moved from hw/pci/host/Makefile.objs with 69% similarity]
hw/pci-host/apb.c [moved from hw/apb_pci.c with 97% similarity]
hw/pci-host/bonito.c [moved from hw/bonito.c with 100% similarity]
hw/pci-host/dec.c [moved from hw/pci/host/dec.c with 100% similarity]
hw/pci-host/grackle.c [moved from hw/pci/host/grackle.c with 100% similarity]
hw/pci-host/pam.c [moved from hw/pci/host/pam.c with 100% similarity]
hw/pci-host/piix.c [moved from hw/piix_pci.c with 100% similarity]
hw/pci-host/ppce500.c [moved from hw/pci/host/ppce500.c with 100% similarity]
hw/pci-host/prep.c [moved from hw/pci/host/prep.c with 100% similarity]
hw/pci-host/q35.c [moved from hw/q35.c with 100% similarity]
hw/pci-host/uninorth.c [moved from hw/pci/host/uninorth.c with 100% similarity]
hw/pci-host/versatile.c [moved from hw/pci/host/versatile.c with 100% similarity]
hw/pci/Makefile.objs
hw/ppc/Makefile.objs
hw/ppc/ppc4xx_pci.c [moved from hw/ppc4xx_pci.c with 100% similarity]
hw/ppc/spapr_pci.c [moved from hw/spapr_pci.c with 100% similarity]
hw/sh4/Makefile.objs
hw/sh4/sh_pci.c [moved from hw/sh_pci.c with 100% similarity]
hw/sparc64/Makefile.objs
include/hw/pci-host/q35.h

index 717c8f452f3b2dab965e309638c9b074241791e6..fa070cd981ddead89b1a12d64f03816b16ab2b98 100644 (file)
@@ -31,8 +31,12 @@ CONFIG_TPM_TIS=y
 CONFIG_TPM_PASSTHROUGH=y
 CONFIG_PCI_HOTPLUG=y
 CONFIG_MC146818RTC=y
+CONFIG_PAM=y
+CONFIG_PCI_PIIX=y
+CONFIG_PCI_HOTPLUG=y
 CONFIG_WDT_IB700=y
 CONFIG_PC_SYSFW=y
 CONFIG_XEN_I386=$(CONFIG_XEN)
 CONFIG_ISA_DEBUG=y
 CONFIG_LPC_ICH9=y
+CONFIG_Q35=y
index 3b3dc55cbd907b6dfe8fb0f73364d37916bd60fb..9b08ee8a20568cb3d0483c074e669d9cbf97b9b6 100644 (file)
@@ -13,4 +13,5 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_CMD646=y
+CONFIG_PCI_APB=y
 CONFIG_MC146818RTC=y
index 31de9453a9210c17f41e5a095607df8059d4222f..3102c09066461256204e72a9ab2b3384e7ad2a70 100644 (file)
@@ -31,8 +31,12 @@ CONFIG_TPM_TIS=y
 CONFIG_TPM_PASSTHROUGH=y
 CONFIG_PCI_HOTPLUG=y
 CONFIG_MC146818RTC=y
+CONFIG_PAM=y
+CONFIG_PCI_PIIX=y
+CONFIG_PCI_HOTPLUG=y
 CONFIG_WDT_IB700=y
 CONFIG_PC_SYSFW=y
 CONFIG_XEN_I386=$(CONFIG_XEN)
 CONFIG_ISA_DEBUG=y
 CONFIG_LPC_ICH9=y
+CONFIG_Q35=y
index eef8742af3ddf773aae3a7057239841d58809ba6..8d0cc1fa9cfbcf8d2d2b700ac1ff77ec1778a0df 100644 (file)
@@ -17,6 +17,7 @@ devices-dirs-$(CONFIG_SOFTMMU) += misc/
 devices-dirs-$(CONFIG_SOFTMMU) += net/
 devices-dirs-$(CONFIG_SOFTMMU) += nvram/
 devices-dirs-$(CONFIG_SOFTMMU) += pci/
+devices-dirs-$(CONFIG_PCI) += pci-bridge/ pci-host/
 devices-dirs-$(CONFIG_SOFTMMU) += scsi/
 devices-dirs-$(CONFIG_SOFTMMU) += sd/
 devices-dirs-$(CONFIG_SOFTMMU) += ssi/
index 5dfea7aaa1f0b98724bf1ea7e0d7ba042d56e918..5c742756f016401178e6676946a35af5ec875ab7 100644 (file)
@@ -1,5 +1 @@
-obj-y += alpha_typhoon.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
-obj-y += dp264.o pci.o
+obj-y += dp264.o pci.o typhoon.o
similarity index 100%
rename from hw/alpha_typhoon.c
rename to hw/alpha/typhoon.c
index af7f4b1fe59e7680388e3d3a532a51a6808291f9..a531d3aec68145b91628ce009d50186ff25565da 100644 (file)
@@ -1,8 +1,7 @@
 obj-y += apic_common.o apic.o
-obj-y += sga.o ioapic_common.o ioapic.o piix_pci.o
+obj-y += sga.o ioapic_common.o ioapic.o
 obj-y += vmport.o
 obj-y += debugexit.o
-obj-y += q35.o
 obj-y += kvm/
 obj-y += pc-testdev.o
 
index af4d1f947b36284ac0fa8eb5fcca0c2a12336fcc..0a652f85217d000287ba2216010b4f3b641e347f 100644 (file)
@@ -1,8 +1,4 @@
-obj-y += gt64xxx.o
-obj-$(CONFIG_FULONG) += bonito.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
 obj-y += addr.o cputimer.o mips_int.o
 obj-$(CONFIG_FULONG) += mips_fulong2e.o
+obj-y += gt64xxx_pci.o
similarity index 100%
rename from hw/gt64xxx.c
rename to hw/mips/gt64xxx_pci.c
similarity index 69%
rename from hw/pci/host/Makefile.objs
rename to hw/pci-host/Makefile.objs
index e1d6cce047d0162b89154dd4a670922de0828c09..909e702eef7781802e560b267c6a52ff57e28b9b 100644 (file)
@@ -11,3 +11,8 @@ common-obj-$(CONFIG_PPCE500_PCI) += ppce500.o
 
 # ARM devices
 common-obj-$(CONFIG_VERSATILE_PCI) += versatile.o
+
+common-obj-$(CONFIG_PCI_APB) += apb.o
+common-obj-$(CONFIG_FULONG) += bonito.o
+common-obj-$(CONFIG_PCI_PIIX) += piix.o
+common-obj-$(CONFIG_PCI_Q35) += q35.o
similarity index 97%
rename from hw/apb_pci.c
rename to hw/pci-host/apb.c
index fe15ae8f8a622822c0f5592940c1e400b5a91512..b4981d700542be1d98d4368404843a8137eefeea 100644 (file)
@@ -92,7 +92,7 @@ static void apb_config_writel (void *opaque, hwaddr addr,
 {
     APBState *s = opaque;
 
-    APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %" PRIx64 "\n", __func__, addr, val);
+    APB_DPRINTF("%s: addr " TARGET_FMT_plx " val %" PRIx64 "\n", __func__, addr, val);
 
     switch (addr & 0xffff) {
     case 0x30 ... 0x4f: /* DMA error registers */
@@ -201,7 +201,7 @@ static uint64_t apb_config_readl (void *opaque,
         val = 0;
         break;
     }
-    APB_DPRINTF("%s: addr " TARGET_FMT_lx " -> %x\n", __func__, addr, val);
+    APB_DPRINTF("%s: addr " TARGET_FMT_plx " -> %x\n", __func__, addr, val);
 
     return val;
 }
@@ -218,7 +218,7 @@ static void apb_pci_config_write(void *opaque, hwaddr addr,
     APBState *s = opaque;
 
     val = qemu_bswap_len(val, size);
-    APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %" PRIx64 "\n", __func__, addr, val);
+    APB_DPRINTF("%s: addr " TARGET_FMT_plx " val %" PRIx64 "\n", __func__, addr, val);
     pci_data_write(s->bus, addr, val, size);
 }
 
@@ -230,7 +230,7 @@ static uint64_t apb_pci_config_read(void *opaque, hwaddr addr,
 
     ret = pci_data_read(s->bus, addr, size);
     ret = qemu_bswap_len(ret, size);
-    APB_DPRINTF("%s: addr " TARGET_FMT_lx " -> %x\n", __func__, addr, ret);
+    APB_DPRINTF("%s: addr " TARGET_FMT_plx " -> %x\n", __func__, addr, ret);
     return ret;
 }
 
similarity index 100%
rename from hw/bonito.c
rename to hw/pci-host/bonito.c
similarity index 100%
rename from hw/pci/host/dec.c
rename to hw/pci-host/dec.c
similarity index 100%
rename from hw/pci/host/grackle.c
rename to hw/pci-host/grackle.c
similarity index 100%
rename from hw/pci/host/pam.c
rename to hw/pci-host/pam.c
similarity index 100%
rename from hw/piix_pci.c
rename to hw/pci-host/piix.c
similarity index 100%
rename from hw/pci/host/ppce500.c
rename to hw/pci-host/ppce500.c
similarity index 100%
rename from hw/pci/host/prep.c
rename to hw/pci-host/prep.c
similarity index 100%
rename from hw/q35.c
rename to hw/pci-host/q35.c
index a1511abf003e0652059770557950faea73249550..a7fb9d0c1199367d046d8a95af0aaa2aa8d95225 100644 (file)
@@ -8,6 +8,4 @@ common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
 common-obj-$(CONFIG_NO_PCI) += pci-stub.o
 common-obj-$(CONFIG_ALL) += pci-stub.o
 
-common-obj-$(CONFIG_PCI) += bridge/ host/
-
 obj-$(CONFIG_PCI_HOTPLUG) += pci-hotplug.o
index 1e24b582826ae4363158859f1fcb32f0e728aa8e..70342c28ec5929ffde10e3c5ad6c488701fa693f 100644 (file)
@@ -1,8 +1,5 @@
 # IBM pSeries (sPAPR)
-obj-$(CONFIG_PSERIES) += spapr_pci.o
 obj-$(CONFIG_PSERIES) += spapr_nvram.o
-# PowerPC 4xx boards
-obj-y += ppc4xx_pci.o
 # PowerPC OpenPIC
 obj-y += openpic.o
 
@@ -13,8 +10,10 @@ obj-y += ppc.o ppc_booke.o
 # IBM pSeries (sPAPR)
 obj-$(CONFIG_PSERIES) += spapr.o xics.o spapr_vio.o spapr_events.o
 obj-$(CONFIG_PSERIES) += spapr_hcall.o spapr_iommu.o spapr_rtas.o
+obj-$(CONFIG_PSERIES) += spapr_pci.o
 # PowerPC 4xx boards
 obj-y += ppc405_boards.o ppc4xx_devs.o ppc405_uc.o ppc440_bamboo.o
+obj-y += ppc4xx_pci.o
 # PReP
 obj-y += prep.o
 # OldWorld PowerMac
similarity index 100%
rename from hw/ppc4xx_pci.c
rename to hw/ppc/ppc4xx_pci.c
similarity index 100%
rename from hw/spapr_pci.c
rename to hw/ppc/spapr_pci.c
index 76b37bbf6bd95eb25e2712ae6cdbdb9e72277cd4..0387b96b4bef9d1d1781d61477d41a968453ecf1 100644 (file)
@@ -1,7 +1,8 @@
-obj-y += sh_intc.o sh_pci.o
+obj-y += sh_intc.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
 obj-y += shix.o r2d.o
 
 obj-y += sh7750.o sh7750_regnames.o
+obj-y += sh_pci.o
similarity index 100%
rename from hw/sh_pci.c
rename to hw/sh4/sh_pci.c
index 178464ba5466c6016eb62de58819185e9ebf997d..a84cfe3ec79c845ffe9b439e74b09df7aac1e0b7 100644 (file)
@@ -1,5 +1 @@
-obj-y = apb_pci.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += sun4u.o
index 6b50b5f34a04185a4015bcaac720f66ff703691e..e182c820ac71084e08602b0d346d21aed3fea946 100644 (file)
@@ -28,7 +28,6 @@
 #include "hw/sysbus.h"
 #include "hw/i386/pc.h"
 #include "hw/isa/apm.h"
-#include "hw/i386/apic.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pcie_host.h"
 #include "hw/acpi/acpi.h"