mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
2ee1b52db1
commit
e2b50aea03
2 changed files with 11 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue