Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- include/hw/net/pci.h | 1 + hw/net/e1000e.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/hw/net/pci.h b/include/hw/net/pci.h index b24b5257a5..92111f86f3 100644 --- a/include/hw/net/pci.h +++ b/include/hw/net/pci.h @@ -14,6 +14,7 @@ #include "hw/pci/pci_bus.h" #define TYPE_PCI_E1000 "e1000" +#define TYPE_PCI_E1000E "e1000e" PCIDevice *pci_nic_init_nofail(NICInfo *nd, PCIBus *rootbus, const char *default_model, diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 6c42b4478c..494f8cced6 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -40,6 +40,7 @@ #include "sysemu/sysemu.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" +#include "hw/net/pci.h" #include "hw/net/e1000_regs.h" @@ -49,8 +50,7 @@ #include "trace.h" #include "qapi/error.h" -#define TYPE_E1000E "e1000e" -#define E1000E(obj) OBJECT_CHECK(E1000EState, (obj), TYPE_E1000E) +#define E1000E(obj) OBJECT_CHECK(E1000EState, (obj), TYPE_PCI_E1000E) typedef struct E1000EState { PCIDevice parent_obj; @@ -703,7 +703,7 @@ static void e1000e_instance_init(Object *obj) } static const TypeInfo e1000e_info = { - .name = TYPE_E1000E, + .name = TYPE_PCI_E1000E, .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(E1000EState), .class_init = e1000e_class_init, -- 2.14.1