]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/display/milkymist-vgafb.c
Move QOM typedefs and add missing includes
[mirror_qemu.git] / hw / display / milkymist-vgafb.c
index 6a6441e6ea367ffe567b2aec920d51b2e78c202f..bbf412d9a0eaedd5cb2c888599c1fcfef402fea1 100644 (file)
@@ -32,6 +32,7 @@
 #include "ui/pixel_ops.h"
 #include "qemu/error-report.h"
 #include "qemu/module.h"
+#include "qom/object.h"
 
 #define BITS 8
 #include "migration/vmstate.h"
@@ -68,6 +69,7 @@ enum {
 };
 
 #define TYPE_MILKYMIST_VGAFB "milkymist-vgafb"
+typedef struct MilkymistVgafbState MilkymistVgafbState;
 #define MILKYMIST_VGAFB(obj) \
     OBJECT_CHECK(MilkymistVgafbState, (obj), TYPE_MILKYMIST_VGAFB)
 
@@ -84,7 +86,6 @@ struct MilkymistVgafbState {
 
     uint32_t regs[R_MAX];
 };
-typedef struct MilkymistVgafbState MilkymistVgafbState;
 
 static int vgafb_enabled(MilkymistVgafbState *s)
 {