]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/e1000e.c
Move QOM typedefs and add missing includes
[mirror_qemu.git] / hw / net / e1000e.c
index fda34518c9dc9d0974ab37bac62be0b3225aa96e..d631765f2a7f82c8fac39ca67b99a2df9a498faa 100644 (file)
 
 #include "trace.h"
 #include "qapi/error.h"
+#include "qom/object.h"
 
 #define TYPE_E1000E "e1000e"
+typedef struct E1000EState E1000EState;
 #define E1000E(obj) OBJECT_CHECK(E1000EState, (obj), TYPE_E1000E)
 
-typedef struct E1000EState {
+struct E1000EState {
     PCIDevice parent_obj;
     NICState *nic;
     NICConf conf;
@@ -79,7 +81,7 @@ typedef struct E1000EState {
 
     E1000ECore core;
 
-} E1000EState;
+};
 
 #define E1000E_MMIO_IDX     0
 #define E1000E_FLASH_IDX    1