aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-bridge
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2022-03-01 10:11:58 -0500
committerMichael S. Tsirkin <mst@redhat.com>2022-03-06 05:08:23 -0500
commitc41481af9a5d0d463607cc45b45c510875570817 (patch)
tree2152b191a30f0f2d7e593f1176d6f4cd3e58c515 /hw/pci-bridge
parentad003b9e6872c67836133066e1dd0f13458a9370 (diff)
downloadqemu-c41481af9a5d0d463607cc45b45c510875570817.zip
qemu-c41481af9a5d0d463607cc45b45c510875570817.tar.gz
qemu-c41481af9a5d0d463607cc45b45c510875570817.tar.bz2
pci: expose TYPE_XIO3130_DOWNSTREAM name
Type name will be used in followup patch for cast check in pcihp code. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20220301151200.3507298-2-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci-bridge')
-rw-r--r--hw/pci-bridge/xio3130_downstream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci-bridge/xio3130_downstream.c b/hw/pci-bridge/xio3130_downstream.c
index 080a661..05e2b06 100644
--- a/hw/pci-bridge/xio3130_downstream.c
+++ b/hw/pci-bridge/xio3130_downstream.c
@@ -28,6 +28,7 @@
#include "migration/vmstate.h"
#include "qapi/error.h"
#include "qemu/module.h"
+#include "hw/pci-bridge/xio3130_downstream.h"
#define PCI_DEVICE_ID_TI_XIO3130D 0x8233 /* downstream port */
#define XIO3130_REVISION 0x1
@@ -173,7 +174,7 @@ static void xio3130_downstream_class_init(ObjectClass *klass, void *data)
}
static const TypeInfo xio3130_downstream_info = {
- .name = "xio3130-downstream",
+ .name = TYPE_XIO3130_DOWNSTREAM,
.parent = TYPE_PCIE_SLOT,
.class_init = xio3130_downstream_class_init,
.interfaces = (InterfaceInfo[]) {