|
|
9bac43 |
From 54ed98827de5ad796b429aa2163d039cbf242c39 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9bac43 |
Date: Fri, 20 Oct 2017 18:29:15 +0200
|
|
|
9bac43 |
Subject: [PATCH 10/19] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to
|
|
|
9bac43 |
Conventional PCI devices
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9bac43 |
Message-id: <20171020182917.10771-6-ehabkost@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 77424
|
|
|
9bac43 |
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH v2 5/7] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices
|
|
|
9bac43 |
Bugzilla: 1390348
|
|
|
9bac43 |
RH-Acked-by: Marcel Apfelbaum <marcel@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Add INTERFACE_CONVENTIONAL_PCI_DEVICE to all direct subtypes of
|
|
|
9bac43 |
TYPE_PCI_DEVICE, except:
|
|
|
9bac43 |
|
|
|
9bac43 |
1) The ones that already have INTERFACE_PCIE_DEVICE set:
|
|
|
9bac43 |
|
|
|
9bac43 |
* base-xhci
|
|
|
9bac43 |
* e1000e
|
|
|
9bac43 |
* nvme
|
|
|
9bac43 |
* pvscsi
|
|
|
9bac43 |
* vfio-pci
|
|
|
9bac43 |
* virtio-pci
|
|
|
9bac43 |
* vmxnet3
|
|
|
9bac43 |
|
|
|
9bac43 |
2) base-pci-bridge
|
|
|
9bac43 |
|
|
|
9bac43 |
Not all PCI bridges are Conventional PCI devices, so
|
|
|
9bac43 |
INTERFACE_CONVENTIONAL_PCI_DEVICE is added only to the subtypes
|
|
|
9bac43 |
that are actually Conventional PCI:
|
|
|
9bac43 |
|
|
|
9bac43 |
* dec-21154-p2p-bridge
|
|
|
9bac43 |
* i82801b11-bridge
|
|
|
9bac43 |
* pbm-bridge
|
|
|
9bac43 |
* pci-bridge
|
|
|
9bac43 |
|
|
|
9bac43 |
The direct subtypes of base-pci-bridge not touched by this patch
|
|
|
9bac43 |
are:
|
|
|
9bac43 |
|
|
|
9bac43 |
* xilinx-pcie-root: Already marked as PCIe-only.
|
|
|
9bac43 |
* pcie-pci-bridge: Already marked as PCIe-only.
|
|
|
9bac43 |
* pcie-port: all non-abstract subtypes of pcie-port are already
|
|
|
9bac43 |
marked as PCIe-only devices.
|
|
|
9bac43 |
|
|
|
9bac43 |
3) megasas-base
|
|
|
9bac43 |
|
|
|
9bac43 |
Not all megasas devices are Conventional PCI devices, so the
|
|
|
9bac43 |
interface names are added to the subclasses registered by
|
|
|
9bac43 |
megasas_register_types(), according to information in the
|
|
|
9bac43 |
megasas_devices[] array.
|
|
|
9bac43 |
|
|
|
9bac43 |
"megasas-gen2" already implements INTERFACE_PCIE_DEVICE, so add
|
|
|
9bac43 |
INTERFACE_CONVENTIONAL_PCI_DEVICE only to "megasas".
|
|
|
9bac43 |
|
|
|
9bac43 |
Backport notes:
|
|
|
9bac43 |
* Trivial conflicts:
|
|
|
9bac43 |
* hw/net/sungem.c
|
|
|
9bac43 |
* hw/net/sunhme.c
|
|
|
9bac43 |
* hw/pci-host/apb.c
|
|
|
9bac43 |
|
|
|
9bac43 |
Acked-by: Alberto Garcia <berto@igalia.com>
|
|
|
9bac43 |
Acked-by: John Snow <jsnow@redhat.com>
|
|
|
9bac43 |
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
|
|
|
9bac43 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9bac43 |
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
|
|
|
9bac43 |
Acked-by: David Gibson <david@gibson.dropbear.id.au>
|
|
|
9bac43 |
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
|
|
|
9bac43 |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9bac43 |
(cherry picked from commit fd3b02c8896d597dd8b9e053dec579cf0386aee1)
|
|
|
9bac43 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
Changes v1 -> v2:
|
|
|
9bac43 |
* Removed hw/net/sungem.c and hw/net/sunhme.c
|
|
|
9bac43 |
(Mistake spotted by David Gibson)
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
hw/acpi/piix4.c | 1 +
|
|
|
9bac43 |
hw/audio/ac97.c | 4 ++++
|
|
|
9bac43 |
hw/audio/es1370.c | 4 ++++
|
|
|
9bac43 |
hw/audio/intel-hda.c | 4 ++++
|
|
|
9bac43 |
hw/char/serial-pci.c | 12 ++++++++++++
|
|
|
9bac43 |
hw/display/cirrus_vga.c | 4 ++++
|
|
|
9bac43 |
hw/display/qxl.c | 4 ++++
|
|
|
9bac43 |
hw/display/sm501.c | 4 ++++
|
|
|
9bac43 |
hw/display/vga-pci.c | 4 ++++
|
|
|
9bac43 |
hw/display/vmware_vga.c | 4 ++++
|
|
|
9bac43 |
hw/i2c/smbus_ich9.c | 4 ++++
|
|
|
9bac43 |
hw/i386/amd_iommu.c | 4 ++++
|
|
|
9bac43 |
hw/i386/kvm/pci-assign.c | 4 ++++
|
|
|
9bac43 |
hw/i386/pc_piix.c | 4 ++++
|
|
|
9bac43 |
hw/i386/xen/xen_platform.c | 4 ++++
|
|
|
9bac43 |
hw/i386/xen/xen_pvdevice.c | 4 ++++
|
|
|
9bac43 |
hw/ide/ich.c | 4 ++++
|
|
|
9bac43 |
hw/ide/pci.c | 4 ++++
|
|
|
9bac43 |
hw/ipack/tpci200.c | 4 ++++
|
|
|
9bac43 |
hw/isa/i82378.c | 4 ++++
|
|
|
9bac43 |
hw/isa/lpc_ich9.c | 1 +
|
|
|
9bac43 |
hw/isa/piix4.c | 4 ++++
|
|
|
9bac43 |
hw/isa/vt82c686.c | 16 ++++++++++++++++
|
|
|
9bac43 |
hw/mips/gt64xxx_pci.c | 4 ++++
|
|
|
9bac43 |
hw/misc/edu.c | 5 +++++
|
|
|
9bac43 |
hw/misc/ivshmem.c | 4 ++++
|
|
|
9bac43 |
hw/misc/macio/macio.c | 4 ++++
|
|
|
9bac43 |
hw/misc/pci-testdev.c | 4 ++++
|
|
|
9bac43 |
hw/net/e1000.c | 4 ++++
|
|
|
9bac43 |
hw/net/eepro100.c | 4 ++++
|
|
|
9bac43 |
hw/net/ne2000.c | 4 ++++
|
|
|
9bac43 |
hw/net/pcnet-pci.c | 4 ++++
|
|
|
9bac43 |
hw/net/rocker/rocker.c | 4 ++++
|
|
|
9bac43 |
hw/net/rtl8139.c | 4 ++++
|
|
|
9bac43 |
hw/pci-bridge/dec.c | 8 ++++++++
|
|
|
9bac43 |
hw/pci-bridge/i82801b11.c | 4 ++++
|
|
|
9bac43 |
hw/pci-bridge/pci_bridge_dev.c | 1 +
|
|
|
9bac43 |
hw/pci-bridge/pci_expander_bridge.c | 8 ++++++++
|
|
|
9bac43 |
hw/pci-host/apb.c | 8 ++++++++
|
|
|
9bac43 |
hw/pci-host/bonito.c | 4 ++++
|
|
|
9bac43 |
hw/pci-host/gpex.c | 4 ++++
|
|
|
9bac43 |
hw/pci-host/grackle.c | 4 ++++
|
|
|
9bac43 |
hw/pci-host/piix.c | 8 ++++++++
|
|
|
9bac43 |
hw/pci-host/ppce500.c | 4 ++++
|
|
|
9bac43 |
hw/pci-host/prep.c | 4 ++++
|
|
|
9bac43 |
hw/pci-host/q35.c | 4 ++++
|
|
|
9bac43 |
hw/pci-host/uninorth.c | 16 ++++++++++++++++
|
|
|
9bac43 |
hw/pci-host/versatile.c | 4 ++++
|
|
|
9bac43 |
hw/ppc/ppc4xx_pci.c | 4 ++++
|
|
|
9bac43 |
hw/scsi/esp-pci.c | 4 ++++
|
|
|
9bac43 |
hw/scsi/lsi53c895a.c | 4 ++++
|
|
|
9bac43 |
hw/scsi/megasas.c | 4 ++++
|
|
|
9bac43 |
hw/scsi/mptsas.c | 4 ++++
|
|
|
9bac43 |
hw/sd/sdhci.c | 4 ++++
|
|
|
9bac43 |
hw/sh4/sh_pci.c | 4 ++++
|
|
|
9bac43 |
hw/sparc64/sun4u.c | 4 ++++
|
|
|
9bac43 |
hw/usb/hcd-ehci-pci.c | 4 ++++
|
|
|
9bac43 |
hw/usb/hcd-ohci.c | 4 ++++
|
|
|
9bac43 |
hw/usb/hcd-uhci.c | 4 ++++
|
|
|
9bac43 |
hw/vfio/pci-quirks.c | 4 ++++
|
|
|
9bac43 |
hw/watchdog/wdt_i6300esb.c | 4 ++++
|
|
|
9bac43 |
hw/xen/xen_pt.c | 4 ++++
|
|
|
9bac43 |
62 files changed, 288 insertions(+)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
|
|
|
9bac43 |
index efd80d1..34c6e22 100644
|
|
|
9bac43 |
--- a/hw/acpi/piix4.c
|
|
|
9bac43 |
+++ b/hw/acpi/piix4.c
|
|
|
9bac43 |
@@ -723,6 +723,7 @@ static const TypeInfo piix4_pm_info = {
|
|
|
9bac43 |
.interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
{ TYPE_HOTPLUG_HANDLER },
|
|
|
9bac43 |
{ TYPE_ACPI_DEVICE_IF },
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
{ }
|
|
|
9bac43 |
}
|
|
|
9bac43 |
};
|
|
|
9bac43 |
diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
|
|
|
9bac43 |
index 959c786..337402e 100644
|
|
|
9bac43 |
--- a/hw/audio/ac97.c
|
|
|
9bac43 |
+++ b/hw/audio/ac97.c
|
|
|
9bac43 |
@@ -1431,6 +1431,10 @@ static const TypeInfo ac97_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof (AC97LinkState),
|
|
|
9bac43 |
.class_init = ac97_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void ac97_register_types (void)
|
|
|
9bac43 |
diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c
|
|
|
9bac43 |
index dd7c23d..59cf252 100644
|
|
|
9bac43 |
--- a/hw/audio/es1370.c
|
|
|
9bac43 |
+++ b/hw/audio/es1370.c
|
|
|
9bac43 |
@@ -1082,6 +1082,10 @@ static const TypeInfo es1370_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof (ES1370State),
|
|
|
9bac43 |
.class_init = es1370_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void es1370_register_types (void)
|
|
|
9bac43 |
diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c
|
|
|
9bac43 |
index 06acc98..b786491 100644
|
|
|
9bac43 |
--- a/hw/audio/intel-hda.c
|
|
|
9bac43 |
+++ b/hw/audio/intel-hda.c
|
|
|
9bac43 |
@@ -1299,6 +1299,10 @@ static const TypeInfo intel_hda_info = {
|
|
|
9bac43 |
.instance_size = sizeof(IntelHDAState),
|
|
|
9bac43 |
.class_init = intel_hda_class_init,
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static const TypeInfo intel_hda_info_ich6 = {
|
|
|
9bac43 |
diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
|
|
|
9bac43 |
index 24ce17b..d426982 100644
|
|
|
9bac43 |
--- a/hw/char/serial-pci.c
|
|
|
9bac43 |
+++ b/hw/char/serial-pci.c
|
|
|
9bac43 |
@@ -254,6 +254,10 @@ static const TypeInfo serial_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCISerialState),
|
|
|
9bac43 |
.class_init = serial_pci_class_initfn,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static const TypeInfo multi_2x_serial_pci_info = {
|
|
|
9bac43 |
@@ -261,6 +265,10 @@ static const TypeInfo multi_2x_serial_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIMultiSerialState),
|
|
|
9bac43 |
.class_init = multi_2x_serial_pci_class_initfn,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static const TypeInfo multi_4x_serial_pci_info = {
|
|
|
9bac43 |
@@ -268,6 +276,10 @@ static const TypeInfo multi_4x_serial_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIMultiSerialState),
|
|
|
9bac43 |
.class_init = multi_4x_serial_pci_class_initfn,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void serial_pci_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
|
|
|
9bac43 |
index e53c6f2..633d555 100644
|
|
|
9bac43 |
--- a/hw/display/cirrus_vga.c
|
|
|
9bac43 |
+++ b/hw/display/cirrus_vga.c
|
|
|
9bac43 |
@@ -3162,6 +3162,10 @@ static const TypeInfo cirrus_vga_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCICirrusVGAState),
|
|
|
9bac43 |
.class_init = cirrus_vga_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void cirrus_vga_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
|
|
|
9bac43 |
index ae3677f..b20e259 100644
|
|
|
9bac43 |
--- a/hw/display/qxl.c
|
|
|
9bac43 |
+++ b/hw/display/qxl.c
|
|
|
9bac43 |
@@ -2430,6 +2430,10 @@ static const TypeInfo qxl_pci_type_info = {
|
|
|
9bac43 |
.instance_size = sizeof(PCIQXLDevice),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = qxl_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void qxl_primary_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/display/sm501.c b/hw/display/sm501.c
|
|
|
9bac43 |
index 6f3dfe0..7f18224 100644
|
|
|
9bac43 |
--- a/hw/display/sm501.c
|
|
|
9bac43 |
+++ b/hw/display/sm501.c
|
|
|
9bac43 |
@@ -1843,6 +1843,10 @@ static const TypeInfo sm501_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(SM501PCIState),
|
|
|
9bac43 |
.class_init = sm501_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void sm501_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c
|
|
|
9bac43 |
index ac9a764..7adb89f 100644
|
|
|
9bac43 |
--- a/hw/display/vga-pci.c
|
|
|
9bac43 |
+++ b/hw/display/vga-pci.c
|
|
|
9bac43 |
@@ -338,6 +338,10 @@ static const TypeInfo vga_pci_type_info = {
|
|
|
9bac43 |
.instance_size = sizeof(PCIVGAState),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = vga_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void vga_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
|
|
|
9bac43 |
index 4a64b41..cdc3fed 100644
|
|
|
9bac43 |
--- a/hw/display/vmware_vga.c
|
|
|
9bac43 |
+++ b/hw/display/vmware_vga.c
|
|
|
9bac43 |
@@ -1350,6 +1350,10 @@ static const TypeInfo vmsvga_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(struct pci_vmsvga_state_s),
|
|
|
9bac43 |
.class_init = vmsvga_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void vmsvga_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c
|
|
|
9bac43 |
index ea51e09..e47556c 100644
|
|
|
9bac43 |
--- a/hw/i2c/smbus_ich9.c
|
|
|
9bac43 |
+++ b/hw/i2c/smbus_ich9.c
|
|
|
9bac43 |
@@ -119,6 +119,10 @@ static const TypeInfo ich9_smb_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(ICH9SMBState),
|
|
|
9bac43 |
.class_init = ich9_smb_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void ich9_smb_register(void)
|
|
|
9bac43 |
diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
|
|
|
9bac43 |
index 334938a..ad8155c 100644
|
|
|
9bac43 |
--- a/hw/i386/amd_iommu.c
|
|
|
9bac43 |
+++ b/hw/i386/amd_iommu.c
|
|
|
9bac43 |
@@ -1227,6 +1227,10 @@ static const TypeInfo amdviPCI = {
|
|
|
9bac43 |
.name = "AMDVI-PCI",
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(AMDVIPCIState),
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void amdvi_iommu_memory_region_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c
|
|
|
9bac43 |
index 33e20cb..d8559d8 100644
|
|
|
9bac43 |
--- a/hw/i386/kvm/pci-assign.c
|
|
|
9bac43 |
+++ b/hw/i386/kvm/pci-assign.c
|
|
|
9bac43 |
@@ -1864,6 +1864,10 @@ static const TypeInfo assign_info = {
|
|
|
9bac43 |
.instance_size = sizeof(AssignedDevice),
|
|
|
9bac43 |
.class_init = assign_class_init,
|
|
|
9bac43 |
.instance_init = assigned_dev_instance_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void assign_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
9bac43 |
index 09bfc5a..c10e462 100644
|
|
|
9bac43 |
--- a/hw/i386/pc_piix.c
|
|
|
9bac43 |
+++ b/hw/i386/pc_piix.c
|
|
|
9bac43 |
@@ -1051,6 +1051,10 @@ static TypeInfo isa_bridge_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = isa_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pt_graphics_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c
|
|
|
9bac43 |
index 9ba7474..056b87d 100644
|
|
|
9bac43 |
--- a/hw/i386/xen/xen_platform.c
|
|
|
9bac43 |
+++ b/hw/i386/xen/xen_platform.c
|
|
|
9bac43 |
@@ -517,6 +517,10 @@ static const TypeInfo xen_platform_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIXenPlatformState),
|
|
|
9bac43 |
.class_init = xen_platform_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void xen_platform_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c
|
|
|
9bac43 |
index c093b34..f748823 100644
|
|
|
9bac43 |
--- a/hw/i386/xen/xen_pvdevice.c
|
|
|
9bac43 |
+++ b/hw/i386/xen/xen_pvdevice.c
|
|
|
9bac43 |
@@ -127,6 +127,10 @@ static const TypeInfo xen_pv_type_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(XenPVDevice),
|
|
|
9bac43 |
.class_init = xen_pv_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void xen_pv_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/ide/ich.c b/hw/ide/ich.c
|
|
|
9bac43 |
index 9472a60..8dd0ced 100644
|
|
|
9bac43 |
--- a/hw/ide/ich.c
|
|
|
9bac43 |
+++ b/hw/ide/ich.c
|
|
|
9bac43 |
@@ -184,6 +184,10 @@ static const TypeInfo ich_ahci_info = {
|
|
|
9bac43 |
.instance_size = sizeof(AHCIPCIState),
|
|
|
9bac43 |
.instance_init = pci_ich9_ahci_init,
|
|
|
9bac43 |
.class_init = ich_ahci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void ich_ahci_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
|
|
|
9bac43 |
index 3cfb510..428980b 100644
|
|
|
9bac43 |
--- a/hw/ide/pci.c
|
|
|
9bac43 |
+++ b/hw/ide/pci.c
|
|
|
9bac43 |
@@ -458,6 +458,10 @@ static const TypeInfo pci_ide_type_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIIDEState),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_ide_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/ipack/tpci200.c b/hw/ipack/tpci200.c
|
|
|
9bac43 |
index 4dfa6b3..da05c85 100644
|
|
|
9bac43 |
--- a/hw/ipack/tpci200.c
|
|
|
9bac43 |
+++ b/hw/ipack/tpci200.c
|
|
|
9bac43 |
@@ -646,6 +646,10 @@ static const TypeInfo tpci200_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(TPCI200State),
|
|
|
9bac43 |
.class_init = tpci200_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void tpci200_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c
|
|
|
9bac43 |
index 4d29a99..d20ea4c 100644
|
|
|
9bac43 |
--- a/hw/isa/i82378.c
|
|
|
9bac43 |
+++ b/hw/isa/i82378.c
|
|
|
9bac43 |
@@ -138,6 +138,10 @@ static const TypeInfo i82378_type_info = {
|
|
|
9bac43 |
.instance_size = sizeof(I82378State),
|
|
|
9bac43 |
.instance_init = i82378_init,
|
|
|
9bac43 |
.class_init = i82378_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void i82378_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
|
|
|
9bac43 |
index ac8416d..39f56ba 100644
|
|
|
9bac43 |
--- a/hw/isa/lpc_ich9.c
|
|
|
9bac43 |
+++ b/hw/isa/lpc_ich9.c
|
|
|
9bac43 |
@@ -823,6 +823,7 @@ static const TypeInfo ich9_lpc_info = {
|
|
|
9bac43 |
.interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
{ TYPE_HOTPLUG_HANDLER },
|
|
|
9bac43 |
{ TYPE_ACPI_DEVICE_IF },
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
{ }
|
|
|
9bac43 |
}
|
|
|
9bac43 |
};
|
|
|
9bac43 |
diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c
|
|
|
9bac43 |
index f811eba..6b8bc3f 100644
|
|
|
9bac43 |
--- a/hw/isa/piix4.c
|
|
|
9bac43 |
+++ b/hw/isa/piix4.c
|
|
|
9bac43 |
@@ -132,6 +132,10 @@ static const TypeInfo piix4_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PIIX4State),
|
|
|
9bac43 |
.class_init = piix4_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void piix4_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c
|
|
|
9bac43 |
index 50dc83d..c129985 100644
|
|
|
9bac43 |
--- a/hw/isa/vt82c686.c
|
|
|
9bac43 |
+++ b/hw/isa/vt82c686.c
|
|
|
9bac43 |
@@ -301,6 +301,10 @@ static const TypeInfo via_ac97_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(VT686AC97State),
|
|
|
9bac43 |
.class_init = via_ac97_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void vt82c686b_mc97_realize(PCIDevice *dev, Error **errp)
|
|
|
9bac43 |
@@ -341,6 +345,10 @@ static const TypeInfo via_mc97_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(VT686MC97State),
|
|
|
9bac43 |
.class_init = via_mc97_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
/* vt82c686 pm init */
|
|
|
9bac43 |
@@ -419,6 +427,10 @@ static const TypeInfo via_pm_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(VT686PMState),
|
|
|
9bac43 |
.class_init = via_pm_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static const VMStateDescription vmstate_via = {
|
|
|
9bac43 |
@@ -502,6 +514,10 @@ static const TypeInfo via_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(VT82C686BState),
|
|
|
9bac43 |
.class_init = via_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void vt82c686b_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c
|
|
|
9bac43 |
index e8b2eef..5a9dad9 100644
|
|
|
9bac43 |
--- a/hw/mips/gt64xxx_pci.c
|
|
|
9bac43 |
+++ b/hw/mips/gt64xxx_pci.c
|
|
|
9bac43 |
@@ -1232,6 +1232,10 @@ static const TypeInfo gt64120_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = gt64120_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void gt64120_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/misc/edu.c b/hw/misc/edu.c
|
|
|
9bac43 |
index 01acacf..34eb05d 100644
|
|
|
9bac43 |
--- a/hw/misc/edu.c
|
|
|
9bac43 |
+++ b/hw/misc/edu.c
|
|
|
9bac43 |
@@ -408,12 +408,17 @@ static void edu_class_init(ObjectClass *class, void *data)
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_edu_register_types(void)
|
|
|
9bac43 |
{
|
|
|
9bac43 |
+ static InterfaceInfo interfaces[] = {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ };
|
|
|
9bac43 |
static const TypeInfo edu_info = {
|
|
|
9bac43 |
.name = "edu",
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(EduState),
|
|
|
9bac43 |
.instance_init = edu_instance_init,
|
|
|
9bac43 |
.class_init = edu_class_init,
|
|
|
9bac43 |
+ .interfaces = interfaces,
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
type_register_static(&edu_info);
|
|
|
9bac43 |
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c
|
|
|
9bac43 |
index 33ef10b..a0a1480 100644
|
|
|
9bac43 |
--- a/hw/misc/ivshmem.c
|
|
|
9bac43 |
+++ b/hw/misc/ivshmem.c
|
|
|
9bac43 |
@@ -1017,6 +1017,10 @@ static const TypeInfo ivshmem_common_info = {
|
|
|
9bac43 |
.instance_size = sizeof(IVShmemState),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = ivshmem_common_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static const VMStateDescription ivshmem_plain_vmsd = {
|
|
|
9bac43 |
diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c
|
|
|
9bac43 |
index 5d57f45..298e650 100644
|
|
|
9bac43 |
--- a/hw/misc/macio/macio.c
|
|
|
9bac43 |
+++ b/hw/misc/macio/macio.c
|
|
|
9bac43 |
@@ -415,6 +415,10 @@ static const TypeInfo macio_type_info = {
|
|
|
9bac43 |
.instance_init = macio_instance_init,
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = macio_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void macio_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c
|
|
|
9bac43 |
index 7d59902..32041f5 100644
|
|
|
9bac43 |
--- a/hw/misc/pci-testdev.c
|
|
|
9bac43 |
+++ b/hw/misc/pci-testdev.c
|
|
|
9bac43 |
@@ -326,6 +326,10 @@ static const TypeInfo pci_testdev_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCITestDevState),
|
|
|
9bac43 |
.class_init = pci_testdev_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_testdev_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
|
|
|
9bac43 |
index d29e9ee..793d54a 100644
|
|
|
9bac43 |
--- a/hw/net/e1000.c
|
|
|
9bac43 |
+++ b/hw/net/e1000.c
|
|
|
9bac43 |
@@ -1695,6 +1695,10 @@ static const TypeInfo e1000_base_info = {
|
|
|
9bac43 |
.instance_init = e1000_instance_init,
|
|
|
9bac43 |
.class_size = sizeof(E1000BaseClass),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static const E1000Info e1000_devices[] = {
|
|
|
9bac43 |
diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c
|
|
|
9bac43 |
index 5a4774a..522deb7 100644
|
|
|
9bac43 |
--- a/hw/net/eepro100.c
|
|
|
9bac43 |
+++ b/hw/net/eepro100.c
|
|
|
9bac43 |
@@ -2117,6 +2117,10 @@ static void eepro100_register_types(void)
|
|
|
9bac43 |
type_info.class_init = eepro100_class_init;
|
|
|
9bac43 |
type_info.instance_size = sizeof(EEPRO100State);
|
|
|
9bac43 |
type_info.instance_init = eepro100_instance_init;
|
|
|
9bac43 |
+ type_info.interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ };
|
|
|
9bac43 |
|
|
|
9bac43 |
type_register(&type_info);
|
|
|
9bac43 |
}
|
|
|
9bac43 |
diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c
|
|
|
9bac43 |
index 8660955..2284308 100644
|
|
|
9bac43 |
--- a/hw/net/ne2000.c
|
|
|
9bac43 |
+++ b/hw/net/ne2000.c
|
|
|
9bac43 |
@@ -786,6 +786,10 @@ static const TypeInfo ne2000_info = {
|
|
|
9bac43 |
.instance_size = sizeof(PCINE2000State),
|
|
|
9bac43 |
.class_init = ne2000_class_init,
|
|
|
9bac43 |
.instance_init = ne2000_instance_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void ne2000_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c
|
|
|
9bac43 |
index eeab4ca..0e4d4f7 100644
|
|
|
9bac43 |
--- a/hw/net/pcnet-pci.c
|
|
|
9bac43 |
+++ b/hw/net/pcnet-pci.c
|
|
|
9bac43 |
@@ -365,6 +365,10 @@ static const TypeInfo pcnet_info = {
|
|
|
9bac43 |
.instance_size = sizeof(PCIPCNetState),
|
|
|
9bac43 |
.class_init = pcnet_class_init,
|
|
|
9bac43 |
.instance_init = pcnet_instance_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_pcnet_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c
|
|
|
9bac43 |
index 4f0f6d7..26d78eb 100644
|
|
|
9bac43 |
--- a/hw/net/rocker/rocker.c
|
|
|
9bac43 |
+++ b/hw/net/rocker/rocker.c
|
|
|
9bac43 |
@@ -1573,6 +1573,10 @@ static const TypeInfo rocker_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(Rocker),
|
|
|
9bac43 |
.class_init = rocker_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void rocker_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
|
|
|
9bac43 |
index 80c62dc..52eafc3 100644
|
|
|
9bac43 |
--- a/hw/net/rtl8139.c
|
|
|
9bac43 |
+++ b/hw/net/rtl8139.c
|
|
|
9bac43 |
@@ -3491,6 +3491,10 @@ static const TypeInfo rtl8139_info = {
|
|
|
9bac43 |
.instance_size = sizeof(RTL8139State),
|
|
|
9bac43 |
.class_init = rtl8139_class_init,
|
|
|
9bac43 |
.instance_init = rtl8139_instance_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void rtl8139_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c
|
|
|
9bac43 |
index eb275e1..84492d5 100644
|
|
|
9bac43 |
--- a/hw/pci-bridge/dec.c
|
|
|
9bac43 |
+++ b/hw/pci-bridge/dec.c
|
|
|
9bac43 |
@@ -79,6 +79,10 @@ static const TypeInfo dec_21154_pci_bridge_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_BRIDGE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIBridge),
|
|
|
9bac43 |
.class_init = dec_21154_pci_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
PCIBus *pci_dec_21154_init(PCIBus *parent_bus, int devfn)
|
|
|
9bac43 |
@@ -138,6 +142,10 @@ static const TypeInfo dec_21154_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = dec_21154_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_dec_21154_device_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/pci-bridge/i82801b11.c b/hw/pci-bridge/i82801b11.c
|
|
|
9bac43 |
index 2c1b747..cb522bf 100644
|
|
|
9bac43 |
--- a/hw/pci-bridge/i82801b11.c
|
|
|
9bac43 |
+++ b/hw/pci-bridge/i82801b11.c
|
|
|
9bac43 |
@@ -106,6 +106,10 @@ static const TypeInfo i82801b11_bridge_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_BRIDGE,
|
|
|
9bac43 |
.instance_size = sizeof(I82801b11Bridge),
|
|
|
9bac43 |
.class_init = i82801b11_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void d2pbr_register(void)
|
|
|
9bac43 |
diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c
|
|
|
9bac43 |
index 4373f1d..d56f663 100644
|
|
|
9bac43 |
--- a/hw/pci-bridge/pci_bridge_dev.c
|
|
|
9bac43 |
+++ b/hw/pci-bridge/pci_bridge_dev.c
|
|
|
9bac43 |
@@ -238,6 +238,7 @@ static const TypeInfo pci_bridge_dev_info = {
|
|
|
9bac43 |
.instance_finalize = pci_bridge_dev_instance_finalize,
|
|
|
9bac43 |
.interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
{ TYPE_HOTPLUG_HANDLER },
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
{ }
|
|
|
9bac43 |
}
|
|
|
9bac43 |
};
|
|
|
9bac43 |
diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c
|
|
|
9bac43 |
index ff59abf..8c8ac73 100644
|
|
|
9bac43 |
--- a/hw/pci-bridge/pci_expander_bridge.c
|
|
|
9bac43 |
+++ b/hw/pci-bridge/pci_expander_bridge.c
|
|
|
9bac43 |
@@ -316,6 +316,10 @@ static const TypeInfo pxb_dev_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PXBDev),
|
|
|
9bac43 |
.class_init = pxb_dev_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)
|
|
|
9bac43 |
@@ -350,6 +354,10 @@ static const TypeInfo pxb_pcie_dev_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PXBDev),
|
|
|
9bac43 |
.class_init = pxb_pcie_dev_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pxb_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c
|
|
|
9bac43 |
index 96e5d0b..6cf7279 100644
|
|
|
9bac43 |
--- a/hw/pci-host/apb.c
|
|
|
9bac43 |
+++ b/hw/pci-host/apb.c
|
|
|
9bac43 |
@@ -817,6 +817,10 @@ static const TypeInfo pbm_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = pbm_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pbm_host_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
@@ -857,6 +861,10 @@ static const TypeInfo pbm_pci_bridge_info = {
|
|
|
9bac43 |
.name = "pbm-bridge",
|
|
|
9bac43 |
.parent = TYPE_PCI_BRIDGE,
|
|
|
9bac43 |
.class_init = pbm_pci_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pbm_iommu_memory_region_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c
|
|
|
9bac43 |
index 89133a9..9f61e27 100644
|
|
|
9bac43 |
--- a/hw/pci-host/bonito.c
|
|
|
9bac43 |
+++ b/hw/pci-host/bonito.c
|
|
|
9bac43 |
@@ -833,6 +833,10 @@ static const TypeInfo bonito_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIBonitoState),
|
|
|
9bac43 |
.class_init = bonito_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void bonito_pcihost_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c
|
|
|
9bac43 |
index 83084b9..59f3132 100644
|
|
|
9bac43 |
--- a/hw/pci-host/gpex.c
|
|
|
9bac43 |
+++ b/hw/pci-host/gpex.c
|
|
|
9bac43 |
@@ -144,6 +144,10 @@ static const TypeInfo gpex_root_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(GPEXRootState),
|
|
|
9bac43 |
.class_init = gpex_root_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void gpex_register(void)
|
|
|
9bac43 |
diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c
|
|
|
9bac43 |
index 2e281f6..38cd279 100644
|
|
|
9bac43 |
--- a/hw/pci-host/grackle.c
|
|
|
9bac43 |
+++ b/hw/pci-host/grackle.c
|
|
|
9bac43 |
@@ -142,6 +142,10 @@ static const TypeInfo grackle_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = grackle_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_grackle_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
|
|
|
9bac43 |
index 90c50b0..68c3922 100644
|
|
|
9bac43 |
--- a/hw/pci-host/piix.c
|
|
|
9bac43 |
+++ b/hw/pci-host/piix.c
|
|
|
9bac43 |
@@ -694,6 +694,10 @@ static const TypeInfo piix3_pci_type_info = {
|
|
|
9bac43 |
.instance_size = sizeof(PIIX3State),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = pci_piix3_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void piix3_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
@@ -748,6 +752,10 @@ static const TypeInfo i440fx_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCII440FXState),
|
|
|
9bac43 |
.class_init = i440fx_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
#if 0 /* Disabled in Red Hat Enterprise Linux */
|
|
|
9bac43 |
diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c
|
|
|
9bac43 |
index becc0ee..39cd244 100644
|
|
|
9bac43 |
--- a/hw/pci-host/ppce500.c
|
|
|
9bac43 |
+++ b/hw/pci-host/ppce500.c
|
|
|
9bac43 |
@@ -516,6 +516,10 @@ static const TypeInfo e500_host_bridge_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PPCE500PCIBridgeState),
|
|
|
9bac43 |
.class_init = e500_host_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static Property pcihost_properties[] = {
|
|
|
9bac43 |
diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c
|
|
|
9bac43 |
index 8b293ba..92eed0f 100644
|
|
|
9bac43 |
--- a/hw/pci-host/prep.c
|
|
|
9bac43 |
+++ b/hw/pci-host/prep.c
|
|
|
9bac43 |
@@ -372,6 +372,10 @@ static const TypeInfo raven_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(RavenPCIState),
|
|
|
9bac43 |
.class_init = raven_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static Property raven_pcihost_properties[] = {
|
|
|
9bac43 |
diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
|
|
|
9bac43 |
index 0e472f2..9cd07ce 100644
|
|
|
9bac43 |
--- a/hw/pci-host/q35.c
|
|
|
9bac43 |
+++ b/hw/pci-host/q35.c
|
|
|
9bac43 |
@@ -591,6 +591,10 @@ static const TypeInfo mch_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(MCHPCIState),
|
|
|
9bac43 |
.class_init = mch_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void q35_register(void)
|
|
|
9bac43 |
diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c
|
|
|
9bac43 |
index 6cf5e59..ea5c265 100644
|
|
|
9bac43 |
--- a/hw/pci-host/uninorth.c
|
|
|
9bac43 |
+++ b/hw/pci-host/uninorth.c
|
|
|
9bac43 |
@@ -374,6 +374,10 @@ static const TypeInfo unin_main_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = unin_main_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void u3_agp_pci_host_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
@@ -398,6 +402,10 @@ static const TypeInfo u3_agp_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = u3_agp_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void unin_agp_pci_host_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
@@ -422,6 +430,10 @@ static const TypeInfo unin_agp_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = unin_agp_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void unin_internal_pci_host_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
@@ -446,6 +458,10 @@ static const TypeInfo unin_internal_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = unin_internal_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void pci_unin_main_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c
|
|
|
9bac43 |
index aa1fdf7..6394a52 100644
|
|
|
9bac43 |
--- a/hw/pci-host/versatile.c
|
|
|
9bac43 |
+++ b/hw/pci-host/versatile.c
|
|
|
9bac43 |
@@ -487,6 +487,10 @@ static const TypeInfo versatile_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = versatile_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static Property pci_vpb_properties[] = {
|
|
|
9bac43 |
diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c
|
|
|
9bac43 |
index 6953f8b..4765dce 100644
|
|
|
9bac43 |
--- a/hw/ppc/ppc4xx_pci.c
|
|
|
9bac43 |
+++ b/hw/ppc/ppc4xx_pci.c
|
|
|
9bac43 |
@@ -359,6 +359,10 @@ static const TypeInfo ppc4xx_host_bridge_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = ppc4xx_host_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void ppc4xx_pcihost_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
|
|
|
9bac43 |
index e295d88..419fc66 100644
|
|
|
9bac43 |
--- a/hw/scsi/esp-pci.c
|
|
|
9bac43 |
+++ b/hw/scsi/esp-pci.c
|
|
|
9bac43 |
@@ -398,6 +398,10 @@ static const TypeInfo esp_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIESPState),
|
|
|
9bac43 |
.class_init = esp_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
typedef struct {
|
|
|
9bac43 |
diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
|
|
|
9bac43 |
index 3e56ab2..423a284 100644
|
|
|
9bac43 |
--- a/hw/scsi/lsi53c895a.c
|
|
|
9bac43 |
+++ b/hw/scsi/lsi53c895a.c
|
|
|
9bac43 |
@@ -2244,6 +2244,10 @@ static const TypeInfo lsi_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(LSIState),
|
|
|
9bac43 |
.class_init = lsi_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void lsi53c810_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c
|
|
|
9bac43 |
index 3641c30..4ae10e3 100644
|
|
|
9bac43 |
--- a/hw/scsi/megasas.c
|
|
|
9bac43 |
+++ b/hw/scsi/megasas.c
|
|
|
9bac43 |
@@ -2468,6 +2468,10 @@ static struct MegasasInfo megasas_devices[] = {
|
|
|
9bac43 |
.is_express = false,
|
|
|
9bac43 |
.vmsd = &vmstate_megasas_gen1,
|
|
|
9bac43 |
.props = megasas_properties_gen1,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
},{
|
|
|
9bac43 |
.name = TYPE_MEGASAS_GEN2,
|
|
|
9bac43 |
.desc = "LSI MegaRAID SAS 2108",
|
|
|
9bac43 |
diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
|
|
|
9bac43 |
index 765ab53..f807dc6 100644
|
|
|
9bac43 |
--- a/hw/scsi/mptsas.c
|
|
|
9bac43 |
+++ b/hw/scsi/mptsas.c
|
|
|
9bac43 |
@@ -1441,6 +1441,10 @@ static const TypeInfo mptsas_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(MPTSASState),
|
|
|
9bac43 |
.class_init = mptsas1068_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void mptsas_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
|
|
|
9bac43 |
index 6d6a791..b064a08 100644
|
|
|
9bac43 |
--- a/hw/sd/sdhci.c
|
|
|
9bac43 |
+++ b/hw/sd/sdhci.c
|
|
|
9bac43 |
@@ -1315,6 +1315,10 @@ static const TypeInfo sdhci_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(SDHCIState),
|
|
|
9bac43 |
.class_init = sdhci_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static Property sdhci_sysbus_properties[] = {
|
|
|
9bac43 |
diff --git a/hw/sh4/sh_pci.c b/hw/sh4/sh_pci.c
|
|
|
9bac43 |
index 38395c0..cbb01af 100644
|
|
|
9bac43 |
--- a/hw/sh4/sh_pci.c
|
|
|
9bac43 |
+++ b/hw/sh4/sh_pci.c
|
|
|
9bac43 |
@@ -179,6 +179,10 @@ static const TypeInfo sh_pci_host_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(PCIDevice),
|
|
|
9bac43 |
.class_init = sh_pci_host_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void sh_pci_device_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
|
|
|
9bac43 |
index bbdb40c..13bc121 100644
|
|
|
9bac43 |
--- a/hw/sparc64/sun4u.c
|
|
|
9bac43 |
+++ b/hw/sparc64/sun4u.c
|
|
|
9bac43 |
@@ -277,6 +277,10 @@ static const TypeInfo ebus_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(EbusState),
|
|
|
9bac43 |
.class_init = ebus_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
#define TYPE_OPENPROM "openprom"
|
|
|
9bac43 |
diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c
|
|
|
9bac43 |
index 6dedcb8..8c0fc53 100644
|
|
|
9bac43 |
--- a/hw/usb/hcd-ehci-pci.c
|
|
|
9bac43 |
+++ b/hw/usb/hcd-ehci-pci.c
|
|
|
9bac43 |
@@ -170,6 +170,10 @@ static const TypeInfo ehci_pci_type_info = {
|
|
|
9bac43 |
.instance_finalize = usb_ehci_pci_finalize,
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = ehci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void ehci_data_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c
|
|
|
9bac43 |
index 267982e..a31df67 100644
|
|
|
9bac43 |
--- a/hw/usb/hcd-ohci.c
|
|
|
9bac43 |
+++ b/hw/usb/hcd-ohci.c
|
|
|
9bac43 |
@@ -2139,6 +2139,10 @@ static const TypeInfo ohci_pci_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(OHCIPCIState),
|
|
|
9bac43 |
.class_init = ohci_pci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static Property ohci_sysbus_properties[] = {
|
|
|
9bac43 |
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
|
|
|
9bac43 |
index 465ed42..86d6ab8 100644
|
|
|
9bac43 |
--- a/hw/usb/hcd-uhci.c
|
|
|
9bac43 |
+++ b/hw/usb/hcd-uhci.c
|
|
|
9bac43 |
@@ -1336,6 +1336,10 @@ static const TypeInfo uhci_pci_type_info = {
|
|
|
9bac43 |
.class_size = sizeof(UHCIPCIDeviceClass),
|
|
|
9bac43 |
.abstract = true,
|
|
|
9bac43 |
.class_init = uhci_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void uhci_data_class_init(ObjectClass *klass, void *data)
|
|
|
9bac43 |
diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
|
|
|
9bac43 |
index 58046e6..4199771 100644
|
|
|
9bac43 |
--- a/hw/vfio/pci-quirks.c
|
|
|
9bac43 |
+++ b/hw/vfio/pci-quirks.c
|
|
|
9bac43 |
@@ -1199,6 +1199,10 @@ static TypeInfo vfio_pci_igd_lpc_bridge_info = {
|
|
|
9bac43 |
.name = "vfio-pci-igd-lpc-bridge",
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.class_init = vfio_pci_igd_lpc_bridge_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void vfio_pci_igd_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c
|
|
|
9bac43 |
index 49b3cd1..e596b08 100644
|
|
|
9bac43 |
--- a/hw/watchdog/wdt_i6300esb.c
|
|
|
9bac43 |
+++ b/hw/watchdog/wdt_i6300esb.c
|
|
|
9bac43 |
@@ -463,6 +463,10 @@ static const TypeInfo i6300esb_info = {
|
|
|
9bac43 |
.parent = TYPE_PCI_DEVICE,
|
|
|
9bac43 |
.instance_size = sizeof(I6300State),
|
|
|
9bac43 |
.class_init = i6300esb_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void i6300esb_register_types(void)
|
|
|
9bac43 |
diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c
|
|
|
9bac43 |
index 375efa6..01df341 100644
|
|
|
9bac43 |
--- a/hw/xen/xen_pt.c
|
|
|
9bac43 |
+++ b/hw/xen/xen_pt.c
|
|
|
9bac43 |
@@ -964,6 +964,10 @@ static const TypeInfo xen_pci_passthrough_info = {
|
|
|
9bac43 |
.instance_size = sizeof(XenPCIPassthroughState),
|
|
|
9bac43 |
.instance_finalize = xen_pci_passthrough_finalize,
|
|
|
9bac43 |
.class_init = xen_pci_passthrough_class_init,
|
|
|
9bac43 |
+ .interfaces = (InterfaceInfo[]) {
|
|
|
9bac43 |
+ { INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
|
|
9bac43 |
+ { },
|
|
|
9bac43 |
+ },
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
static void xen_pci_passthrough_register_types(void)
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|