qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC v2 15/20] eepro100: Add INTERFACE_LEGACY_PCI_DEVICE


From: Eduardo Habkost
Subject: [Qemu-devel] [RFC v2 15/20] eepro100: Add INTERFACE_LEGACY_PCI_DEVICE
Date: Fri, 25 Nov 2016 20:05:51 -0200

Dynamic TypeInfo initialization, not handled by the script used
in the previous patch.

Signed-off-by: Eduardo Habkost <address@hidden>
---
Changes series v1 -> v2:
* (new patch added to series)
---
 hw/net/eepro100.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c
index 4bf71f2..5b55e31 100644
--- a/hw/net/eepro100.c
+++ b/hw/net/eepro100.c
@@ -2101,12 +2101,17 @@ static void eepro100_register_types(void)
     for (i = 0; i < ARRAY_SIZE(e100_devices); i++) {
         TypeInfo type_info = {};
         E100PCIDeviceInfo *info = &e100_devices[i];
+        InterfaceInfo interfaces[] = {
+            { INTERFACE_LEGACY_PCI_DEVICE },
+            { },
+        };
 
         type_info.name = info->name;
         type_info.parent = TYPE_PCI_DEVICE;
         type_info.class_init = eepro100_class_init;
         type_info.instance_size = sizeof(EEPRO100State);
         type_info.instance_init = eepro100_instance_init;
+        type_info.interfaces = interfaces;
 
         type_register(&type_info);
     }
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]