Received: from eggs.gnu.org ([2001:4830:134:3::10]:50683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAOdm-0006dE-0m for qemu-devel@nongnu.org; Fri, 25 Nov 2016 17:06:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAOdk-0000Ji-JL for qemu-devel@nongnu.org; Fri, 25 Nov 2016 17:06:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37366) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cAOdk-0000I5-Dl for qemu-devel@nongnu.org; Fri, 25 Nov 2016 17:06:40 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B8E28124F for ; Fri, 25 Nov 2016 22:06:39 +0000 (UTC) From: Eduardo Habkost Date: Fri, 25 Nov 2016 20:05:51 -0200 Message-Id: <1480111556-32586-16-git-send-email-ehabkost@redhat.com> In-Reply-To: <1480111556-32586-1-git-send-email-ehabkost@redhat.com> References: <1480111556-32586-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [RFC v2 15/20] eepro100: Add INTERFACE_LEGACY_PCI_DEVICE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Markus Armbruster , Marcel Apfelbaum , "Michael S. Tsirkin" Dynamic TypeInfo initialization, not handled by the script used in the previous patch. Signed-off-by: Eduardo Habkost --- 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