aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/Makefile.objs1
-rw-r--r--hw/alpha/Makefile.objs6
-rw-r--r--hw/alpha/typhoon.c (renamed from hw/alpha_typhoon.c)0
-rw-r--r--hw/i386/Makefile.objs3
-rw-r--r--hw/mips/Makefile.objs6
-rw-r--r--hw/mips/gt64xxx_pci.c (renamed from hw/gt64xxx.c)0
-rw-r--r--hw/pci-bridge/Makefile.objs (renamed from hw/pci/bridge/Makefile.objs)0
-rw-r--r--hw/pci-bridge/i82801b11.c (renamed from hw/pci/bridge/i82801b11.c)0
-rw-r--r--hw/pci-bridge/ioh3420.c (renamed from hw/pci/bridge/ioh3420.c)0
-rw-r--r--hw/pci-bridge/pci_bridge_dev.c (renamed from hw/pci/bridge/pci_bridge_dev.c)0
-rw-r--r--hw/pci-bridge/xio3130_downstream.c (renamed from hw/pci/bridge/xio3130_downstream.c)0
-rw-r--r--hw/pci-bridge/xio3130_upstream.c (renamed from hw/pci/bridge/xio3130_upstream.c)0
-rw-r--r--hw/pci-host/Makefile.objs (renamed from hw/pci/host/Makefile.objs)5
-rw-r--r--hw/pci-host/apb.c (renamed from hw/apb_pci.c)8
-rw-r--r--hw/pci-host/bonito.c (renamed from hw/bonito.c)0
-rw-r--r--hw/pci-host/dec.c (renamed from hw/pci/host/dec.c)0
-rw-r--r--hw/pci-host/grackle.c (renamed from hw/pci/host/grackle.c)0
-rw-r--r--hw/pci-host/pam.c (renamed from hw/pci/host/pam.c)0
-rw-r--r--hw/pci-host/piix.c (renamed from hw/piix_pci.c)0
-rw-r--r--hw/pci-host/ppce500.c (renamed from hw/pci/host/ppce500.c)0
-rw-r--r--hw/pci-host/prep.c (renamed from hw/pci/host/prep.c)0
-rw-r--r--hw/pci-host/q35.c (renamed from hw/q35.c)0
-rw-r--r--hw/pci-host/uninorth.c (renamed from hw/pci/host/uninorth.c)0
-rw-r--r--hw/pci-host/versatile.c (renamed from hw/pci/host/versatile.c)0
-rw-r--r--hw/pci/Makefile.objs2
-rw-r--r--hw/ppc/Makefile.objs5
-rw-r--r--hw/ppc/ppc4xx_pci.c (renamed from hw/ppc4xx_pci.c)0
-rw-r--r--hw/ppc/spapr_pci.c (renamed from hw/spapr_pci.c)0
-rw-r--r--hw/sh4/Makefile.objs3
-rw-r--r--hw/sh4/sh_pci.c (renamed from hw/sh_pci.c)0
-rw-r--r--hw/sparc64/Makefile.objs4
31 files changed, 17 insertions, 26 deletions
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index eef8742af3..8d0cc1fa9c 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -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/
diff --git a/hw/alpha/Makefile.objs b/hw/alpha/Makefile.objs
index 5dfea7aaa1..5c742756f0 100644
--- a/hw/alpha/Makefile.objs
+++ b/hw/alpha/Makefile.objs
@@ -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
diff --git a/hw/alpha_typhoon.c b/hw/alpha/typhoon.c
index 41a0ebc7a3..41a0ebc7a3 100644
--- a/hw/alpha_typhoon.c
+++ b/hw/alpha/typhoon.c
diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs
index af7f4b1fe5..a531d3aec6 100644
--- a/hw/i386/Makefile.objs
+++ b/hw/i386/Makefile.objs
@@ -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
diff --git a/hw/mips/Makefile.objs b/hw/mips/Makefile.objs
index af4d1f947b..0a652f8521 100644
--- a/hw/mips/Makefile.objs
+++ b/hw/mips/Makefile.objs
@@ -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
diff --git a/hw/gt64xxx.c b/hw/mips/gt64xxx_pci.c
index 189e865a65..189e865a65 100644
--- a/hw/gt64xxx.c
+++ b/hw/mips/gt64xxx_pci.c
diff --git a/hw/pci/bridge/Makefile.objs b/hw/pci-bridge/Makefile.objs
index 5dd92d28a0..5dd92d28a0 100644
--- a/hw/pci/bridge/Makefile.objs
+++ b/hw/pci-bridge/Makefile.objs
diff --git a/hw/pci/bridge/i82801b11.c b/hw/pci-bridge/i82801b11.c
index 5807a92d7f..5807a92d7f 100644
--- a/hw/pci/bridge/i82801b11.c
+++ b/hw/pci-bridge/i82801b11.c
diff --git a/hw/pci/bridge/ioh3420.c b/hw/pci-bridge/ioh3420.c
index 5cff61e095..5cff61e095 100644
--- a/hw/pci/bridge/ioh3420.c
+++ b/hw/pci-bridge/ioh3420.c
diff --git a/hw/pci/bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c
index 971b432474..971b432474 100644
--- a/hw/pci/bridge/pci_bridge_dev.c
+++ b/hw/pci-bridge/pci_bridge_dev.c
diff --git a/hw/pci/bridge/xio3130_downstream.c b/hw/pci-bridge/xio3130_downstream.c
index b868f56ff9..b868f56ff9 100644
--- a/hw/pci/bridge/xio3130_downstream.c
+++ b/hw/pci-bridge/xio3130_downstream.c
diff --git a/hw/pci/bridge/xio3130_upstream.c b/hw/pci-bridge/xio3130_upstream.c
index cd5d97d211..cd5d97d211 100644
--- a/hw/pci/bridge/xio3130_upstream.c
+++ b/hw/pci-bridge/xio3130_upstream.c
diff --git a/hw/pci/host/Makefile.objs b/hw/pci-host/Makefile.objs
index e1d6cce047..909e702eef 100644
--- a/hw/pci/host/Makefile.objs
+++ b/hw/pci-host/Makefile.objs
@@ -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
diff --git a/hw/apb_pci.c b/hw/pci-host/apb.c
index fe15ae8f8a..b4981d7005 100644
--- a/hw/apb_pci.c
+++ b/hw/pci-host/apb.c
@@ -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;
}
diff --git a/hw/bonito.c b/hw/pci-host/bonito.c
index 974150bfc1..974150bfc1 100644
--- a/hw/bonito.c
+++ b/hw/pci-host/bonito.c
diff --git a/hw/pci/host/dec.c b/hw/pci-host/dec.c
index 6ec3d226bd..6ec3d226bd 100644
--- a/hw/pci/host/dec.c
+++ b/hw/pci-host/dec.c
diff --git a/hw/pci/host/grackle.c b/hw/pci-host/grackle.c
index 69344d9f6a..69344d9f6a 100644
--- a/hw/pci/host/grackle.c
+++ b/hw/pci-host/grackle.c
diff --git a/hw/pci/host/pam.c b/hw/pci-host/pam.c
index 7181bd68eb..7181bd68eb 100644
--- a/hw/pci/host/pam.c
+++ b/hw/pci-host/pam.c
diff --git a/hw/piix_pci.c b/hw/pci-host/piix.c
index f9e68c3099..f9e68c3099 100644
--- a/hw/piix_pci.c
+++ b/hw/pci-host/piix.c
diff --git a/hw/pci/host/ppce500.c b/hw/pci-host/ppce500.c
index 5e7ad94388..5e7ad94388 100644
--- a/hw/pci/host/ppce500.c
+++ b/hw/pci-host/ppce500.c
diff --git a/hw/pci/host/prep.c b/hw/pci-host/prep.c
index 61302539ab..61302539ab 100644
--- a/hw/pci/host/prep.c
+++ b/hw/pci-host/prep.c
diff --git a/hw/q35.c b/hw/pci-host/q35.c
index 8467f86450..8467f86450 100644
--- a/hw/q35.c
+++ b/hw/pci-host/q35.c
diff --git a/hw/pci/host/uninorth.c b/hw/pci-host/uninorth.c
index fff235d523..fff235d523 100644
--- a/hw/pci/host/uninorth.c
+++ b/hw/pci-host/uninorth.c
diff --git a/hw/pci/host/versatile.c b/hw/pci-host/versatile.c
index d67ca796fb..d67ca796fb 100644
--- a/hw/pci/host/versatile.c
+++ b/hw/pci-host/versatile.c
diff --git a/hw/pci/Makefile.objs b/hw/pci/Makefile.objs
index a1511abf00..a7fb9d0c11 100644
--- a/hw/pci/Makefile.objs
+++ b/hw/pci/Makefile.objs
@@ -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
diff --git a/hw/ppc/Makefile.objs b/hw/ppc/Makefile.objs
index 1e24b58282..70342c28ec 100644
--- a/hw/ppc/Makefile.objs
+++ b/hw/ppc/Makefile.objs
@@ -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
diff --git a/hw/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c
index 599539bc1d..599539bc1d 100644
--- a/hw/ppc4xx_pci.c
+++ b/hw/ppc/ppc4xx_pci.c
diff --git a/hw/spapr_pci.c b/hw/ppc/spapr_pci.c
index 62ff323f73..62ff323f73 100644
--- a/hw/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
diff --git a/hw/sh4/Makefile.objs b/hw/sh4/Makefile.objs
index 76b37bbf6b..0387b96b4b 100644
--- a/hw/sh4/Makefile.objs
+++ b/hw/sh4/Makefile.objs
@@ -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
diff --git a/hw/sh_pci.c b/hw/sh4/sh_pci.c
index d213a90580..d213a90580 100644
--- a/hw/sh_pci.c
+++ b/hw/sh4/sh_pci.c
diff --git a/hw/sparc64/Makefile.objs b/hw/sparc64/Makefile.objs
index 178464ba54..a84cfe3ec7 100644
--- a/hw/sparc64/Makefile.objs
+++ b/hw/sparc64/Makefile.objs
@@ -1,5 +1 @@
-obj-y = apb_pci.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
obj-y += sun4u.o