[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 18/19] PPC: e500: Declare pci bridge as bridge
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 18/19] PPC: e500: Declare pci bridge as bridge |
Date: |
Wed, 12 Dec 2012 15:12:18 +0100 |
The new PCI host bridge device needs to identify itself as PCI host bridge.
Declare it as such.
Signed-off-by: Alexander Graf <address@hidden>
---
hw/ppce500_pci.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c
index 54c72b4..e534341 100644
--- a/hw/ppce500_pci.c
+++ b/hw/ppce500_pci.c
@@ -330,9 +330,15 @@ static int e500_pcihost_bridge_initfn(PCIDevice *d)
PPCE500CCSRState *ccsr = CCSR(container_get(qdev_get_machine(),
"/e500-ccsr"));
+ pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI);
+ d->config[PCI_HEADER_TYPE] =
+ (d->config[PCI_HEADER_TYPE] & PCI_HEADER_TYPE_MULTI_FUNCTION) |
+ PCI_HEADER_TYPE_BRIDGE;
+
memory_region_init_alias(&b->bar0, "e500-pci-bar0", &ccsr->ccsr_space,
0, int128_get64(ccsr->ccsr_space.size));
pci_register_bar(d, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &b->bar0);
+
return 0;
}
--
1.6.0.2
- [Qemu-ppc] [PATCH 01/19] openpic: Remove unused code, (continued)
- [Qemu-ppc] [PATCH 01/19] openpic: Remove unused code, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 08/19] openpic: combine openpic and mpic reset functions, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 09/19] openpic: unify memory api subregions, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 04/19] openpic: combine mpic and openpic src handlers, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 13/19] openpic: remove irq_out, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 14/19] openpic: convert to qdev, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 17/19] PPC: e500: Add MSI support, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 12/19] openpic: rename openpic_t to OpenPICState, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 10/19] openpic: remove unused type variable, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 03/19] openpic: update to proper memory api, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 18/19] PPC: e500: Declare pci bridge as bridge,
Alexander Graf <=
- [Qemu-ppc] [PATCH 19/19] MSI-X: Fix endianness, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 15/19] openpic: make brr1 model specific, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 16/19] openpic: add Shared MSI support, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 05/19] openpic: Convert subregions to memory api, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 11/19] openpic: convert simple reg operations to builtin bitops, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 07/19] openpic: merge mpic and openpic timer handling, Alexander Graf, 2012/12/12
- [Qemu-ppc] [PATCH 02/19] mpic: Unify numbering scheme, Alexander Graf, 2012/12/12