aboutsummaryrefslogtreecommitdiff
path: root/hw/input
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-12 22:52:29 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-18 19:28:46 +0100
commitcb5827cee33f3b99daef7005491eae3af4316df6 (patch)
tree421dd6692451a582cc91278658106d112eefeb9b /hw/input
parentef90a06f9961239d90d5a84c59078e8417bde77c (diff)
lasips2: introduce new LASIPS2_MOUSE_PORT QOM type
This will be soon be used to hold the underlying PS2_MOUSE_DEVICE object. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220712215251.7944-19-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/input')
-rw-r--r--hw/input/lasips2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
index b043f2e264..f70cf893f6 100644
--- a/hw/input/lasips2.c
+++ b/hw/input/lasips2.c
@@ -324,11 +324,18 @@ static const TypeInfo lasips2_kbd_port_info = {
.instance_size = sizeof(LASIPS2KbdPort),
};
+static const TypeInfo lasips2_mouse_port_info = {
+ .name = TYPE_LASIPS2_MOUSE_PORT,
+ .parent = TYPE_LASIPS2_PORT,
+ .instance_size = sizeof(LASIPS2MousePort),
+};
+
static void lasips2_register_types(void)
{
type_register_static(&lasips2_info);
type_register_static(&lasips2_port_info);
type_register_static(&lasips2_kbd_port_info);
+ type_register_static(&lasips2_mouse_port_info);
}
type_init(lasips2_register_types)