mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
lasips2: introduce new LASIPS2_KBD_PORT QOM type
This will be soon be used to hold the underlying PS2_KBD_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-18-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user