mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ps2: remove update_irq() function and update_arg parameter
Now that all the PS2 devices have been converted to use GPIOs the update_irq() callback function and the update_arg parameter can be removed. This allows these arguments to be completely removed from ps2_kbd_init() and ps2_mouse_init(), along with the transitional logic that was added to ps2_raise_irq() and ps2_lower_irq(). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220624134109.881989-55-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
38f426b8af
commit
7227de94ad
5 changed files with 14 additions and 33 deletions
|
@ -274,11 +274,11 @@ static void lasips2_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
vmstate_register(NULL, s->base, &vmstate_lasips2, s);
|
||||
|
||||
s->kbd.dev = ps2_kbd_init(NULL, NULL);
|
||||
s->kbd.dev = ps2_kbd_init();
|
||||
qdev_connect_gpio_out(DEVICE(s->kbd.dev), PS2_DEVICE_IRQ,
|
||||
qdev_get_gpio_in_named(dev, "ps2-kbd-input-irq",
|
||||
0));
|
||||
s->mouse.dev = ps2_mouse_init(NULL, NULL);
|
||||
s->mouse.dev = ps2_mouse_init();
|
||||
qdev_connect_gpio_out(DEVICE(s->mouse.dev), PS2_DEVICE_IRQ,
|
||||
qdev_get_gpio_in_named(dev, "ps2-mouse-input-irq",
|
||||
0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue