diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-07-12 22:52:27 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-07-18 19:28:46 +0100 |
commit | f8d89a7da4126f1756b1bba56c616afac96dfdce (patch) | |
tree | d5b6c4d3b97845a444b9bd1cd600d39cab0c7753 /hw/input | |
parent | f4907cb5cf8fba22f08b07fc709264712706bac7 (diff) | |
download | qemu-f8d89a7da4126f1756b1bba56c616afac96dfdce.zip qemu-f8d89a7da4126f1756b1bba56c616afac96dfdce.tar.gz qemu-f8d89a7da4126f1756b1bba56c616afac96dfdce.tar.bz2 |
lasips2: QOMify LASIPS2Port
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 <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-17-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) |