mirror of
https://github.com/qemu/qemu.git
synced 2026-05-17 15:39:58 +00:00
pckbd: don't use legacy ps2_mouse_init() function
Instantiate the PS2 mouse device within KBDState using object_initialize_child() in i8042_initfn() and i8042_mmio_init() and realize it in i8042_realizefn() and i8042_mmio_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-39-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
@@ -32,7 +32,7 @@ typedef struct KBDState {
|
||||
uint8_t cbdata;
|
||||
uint8_t pending_tmp;
|
||||
PS2KbdState ps2kbd;
|
||||
void *mouse;
|
||||
PS2MouseState ps2mouse;
|
||||
QEMUTimer *throttle_timer;
|
||||
|
||||
qemu_irq irqs[2];
|
||||
|
||||
Reference in New Issue
Block a user