diff options
author | Mark Cave-Ayland | 2022-07-12 23:52:43 +0200 |
---|---|---|
committer | Mark Cave-Ayland | 2022-07-18 20:28:46 +0200 |
commit | e2b50aea03fcdcea58057e453e1d9f9a3aa6a7eb (patch) | |
tree | 8135e144544417de6a7680220624e0238b2dbbd3 /include | |
parent | lasips2: switch register memory region to DEVICE_BIG_ENDIAN (diff) | |
download | qemu-e2b50aea03fcdcea58057e453e1d9f9a3aa6a7eb.tar.gz qemu-e2b50aea03fcdcea58057e453e1d9f9a3aa6a7eb.tar.xz qemu-e2b50aea03fcdcea58057e453e1d9f9a3aa6a7eb.zip |
lasips2: don't use legacy ps2_kbd_init() function
Instantiate the PS2 keyboard device within LASIPS2KbdPort using
object_initialize_child() in lasips2_kbd_port_init() and realize it in
lasips2_kbd_port_realize() accordingly.
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-33-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/input/lasips2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h index 9fe9e63a66..4a0ad999d7 100644 --- a/include/hw/input/lasips2.h +++ b/include/hw/input/lasips2.h @@ -52,6 +52,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(LASIPS2KbdPort, LASIPS2_KBD_PORT) struct LASIPS2KbdPort { LASIPS2Port parent_obj; + + PS2KbdState kbd; }; #define TYPE_LASIPS2_MOUSE_PORT "lasips2-mouse-port" |