diff options
author | Mark Cave-Ayland | 2022-06-24 15:40:49 +0200 |
---|---|---|
committer | Mark Cave-Ayland | 2022-06-26 19:40:12 +0200 |
commit | 6beb79e11a48b7876dfd63fcfb51d1a603936928 (patch) | |
tree | bc065e72bc1d3265c960b205bbf84dd6d73dae49 /include/hw/cpu | |
parent | ps2: introduce ps2_lower_irq() instead of calling update_irq() directly (diff) | |
download | qemu-6beb79e11a48b7876dfd63fcfb51d1a603936928.tar.gz qemu-6beb79e11a48b7876dfd63fcfb51d1a603936928.tar.xz qemu-6beb79e11a48b7876dfd63fcfb51d1a603936928.zip |
ps2: add gpio for output IRQ and optionally use it in ps2_raise_irq() and ps2_lower_irq()
Define the gpio for the PS2 output IRQ in ps2_init() and add logic to optionally
use it in ps2_raise_irq() and ps2_lower_irq() if the gpio is connected. If the
gpio is not connected then call the legacy update_irq() function as before.
This allows the incremental conversion of devices from the legacy update_irq()
function to use gpios instead.
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-35-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/cpu')
0 files changed, 0 insertions, 0 deletions