pckbd: handle A20 IRQ as GPIO
authorEfimov Vasily <real@ispras.ru>
Wed, 22 Jun 2016 12:24:51 +0000 (15:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 12:03:46 +0000 (14:03 +0200)
commit3115b9e2d286188a54d6f415186ae556046b68a3
tree06f1e57ef774312c190c2cc44b34074a44f1d231
parent8d1c7158a059e9a55181517aa61faf422831b8f8
pckbd: handle A20 IRQ as GPIO

The i8042 device has outgouing IRQ line A20. Currently the IRQ is referenced
by a pointer which normally is set during machine initialization. The pointer
is never changed at runtime. So common GPIO model can be applied to A20 IRQ
line. Note that checking for IRQ to be connected as in previous version
of code is not required because qemu_set_irq will do it.

Signed-off-by: Efimov Vasily <real@ispras.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/input/pckbd.c
include/hw/i386/pc.h