From ef90a06f9961239d90d5a84c59078e8417bde77c Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Tue, 12 Jul 2022 22:52:28 +0100 Subject: lasips2: introduce new LASIPS2_KBD_PORT QOM type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be soon be used to hold the underlying PS2_KBD_DEVICE object. Signed-off-by: Mark Cave-Ayland Tested-by: Helge Deller Acked-by: Helge Deller Reviewed-by: Peter Maydell Message-Id: <20220712215251.7944-18-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé --- hw/input/lasips2.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hw/input') diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c index 56bfd759af..b043f2e264 100644 --- a/hw/input/lasips2.c +++ b/hw/input/lasips2.c @@ -318,10 +318,17 @@ static const TypeInfo lasips2_port_info = { .abstract = true, }; +static const TypeInfo lasips2_kbd_port_info = { + .name = TYPE_LASIPS2_KBD_PORT, + .parent = TYPE_LASIPS2_PORT, + .instance_size = sizeof(LASIPS2KbdPort), +}; + 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_init(lasips2_register_types) -- cgit 1.4.1