qemu/include/hw/input
Mark Cave-Ayland 212a300303 lasips2: switch to using port-based IRQs
Now we can implement port-based IRQs by wiring the PS2 device IRQs to the
LASI2Port named input gpios rather than directly to the LASIPS2 device, and
generate the LASIPS2 output IRQ from the int_status bitmap representing the
individual port IRQs instead of the birq boolean.

This enables us to remove the separate PS2 keyboard and PS2 mouse named input
gpios from the LASIPS2 device and simplify the register implementation to
drive the port IRQ using qemu_set_irq() rather than accessing the LASIPS2
device IRQs directly. As a consequence the IRQ level logic in lasips2_set_irq()
can also be simplified accordingly.

For now this patch ignores adding the int_status bitmap and simply drops the
birq boolean from the vmstate_lasips2 VMStateDescription. This is because the
migration stream is already missing some required LASIPS2 fields, and as this
series already introduces a migration break for the lasips2 device it is
easiest to fix this in a follow-up patch.

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>
Message-Id: <20220712215251.7944-29-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2022-07-18 19:28:46 +01:00
..
adb-keys.h adb-keys.h: initial commit 2016-09-23 10:29:40 +10:00
adb.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
gamepad.h Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
hid.h Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
i8042.h pckbd: add QEMU interface comment for I8042 device 2022-06-26 18:40:12 +01:00
lasips2.h lasips2: switch to using port-based IRQs 2022-07-18 19:28:46 +01:00
lm832x.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
pl050.h pl050: don't use legacy ps2_mouse_init() function 2022-07-18 19:28:46 +01:00
ps2.h ps2: remove update_irq() function and update_arg parameter 2022-06-26 18:40:12 +01:00
tsc2xxx.h hw/input/tsc2xxx: Reduce MouseTransformInfo structure exposure 2020-09-21 11:22:34 +02:00