]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - include/hw/net/msf2-emac.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / include / hw / net / msf2-emac.h
index 37966d3a81315705cefa8e0124bccb0b57e370e9..6aef7110070c7e5ac8106c8b8488130c2dc92694 100644 (file)
 #include "exec/memory.h"
 #include "net/net.h"
 #include "net/eth.h"
+#include "qom/object.h"
 
 #define TYPE_MSS_EMAC "msf2-emac"
+typedef struct MSF2EmacState MSF2EmacState;
 #define MSS_EMAC(obj) \
     OBJECT_CHECK(MSF2EmacState, (obj), TYPE_MSS_EMAC)
 
 #define R_MAX         (0x1a0 / 4)
 #define PHY_MAX_REGS  32
 
-typedef struct MSF2EmacState {
+struct MSF2EmacState {
     SysBusDevice parent;
 
     MemoryRegion mmio;
@@ -50,4 +52,4 @@ typedef struct MSF2EmacState {
     uint16_t phy_regs[PHY_MAX_REGS];
 
     uint32_t regs[R_MAX];
-} MSF2EmacState;
+};