mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06: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:
parent
5e8312ab8e
commit
9d1a425037
2 changed files with 20 additions and 9 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue