aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hw/input/lasips2.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h
index 9746b7a132..f4514081fe 100644
--- a/include/hw/input/lasips2.h
+++ b/include/hw/input/lasips2.h
@@ -25,9 +25,15 @@
#include "hw/sysbus.h"
#include "hw/input/ps2.h"
-struct LASIPS2State;
-typedef struct LASIPS2Port {
- struct LASIPS2State *parent;
+#define TYPE_LASIPS2_PORT "lasips2-port"
+OBJECT_DECLARE_SIMPLE_TYPE(LASIPS2Port, LASIPS2_PORT)
+
+typedef struct LASIPS2State LASIPS2State;
+
+struct LASIPS2Port {
+ DeviceState parent_obj;
+
+ LASIPS2State *parent;
MemoryRegion reg;
PS2State *ps2dev;
uint8_t id;
@@ -35,7 +41,7 @@ typedef struct LASIPS2Port {
uint8_t buf;
bool loopback_rbne;
bool irq;
-} LASIPS2Port;
+};
struct LASIPS2State {
SysBusDevice parent_obj;