From f8d89a7da4126f1756b1bba56c616afac96dfdce Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Tue, 12 Jul 2022 22:52:27 +0100 Subject: lasips2: QOMify LASIPS2Port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This becomes an abstract QOM type which will be a parent type for separate keyboard and mouse port types. Signed-off-by: Mark Cave-Ayland Tested-by: Helge Deller Acked-by: Helge Deller Reviewed-by: Peter Maydell Message-Id: <20220712215251.7944-17-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé --- hw/input/lasips2.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hw/input') diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c index b539c4d..56bfd75 100644 --- a/hw/input/lasips2.c +++ b/hw/input/lasips2.c @@ -311,9 +311,17 @@ static const TypeInfo lasips2_info = { .class_init = lasips2_class_init, }; +static const TypeInfo lasips2_port_info = { + .name = TYPE_LASIPS2_PORT, + .parent = TYPE_DEVICE, + .instance_size = sizeof(LASIPS2Port), + .abstract = true, +}; + static void lasips2_register_types(void) { type_register_static(&lasips2_info); + type_register_static(&lasips2_port_info); } type_init(lasips2_register_types) -- cgit v1.1