]> git.proxmox.com Git - mirror_qemu.git/commit - tests/libqtest.h
qtest: Add set_irq_in command to set IRQ/GPIO level
authorSteffen Görtz <contrib@steffen-goertz.de>
Mon, 7 Jan 2019 15:23:47 +0000 (15:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Jan 2019 15:23:47 +0000 (15:23 +0000)
commit9813dc6ac3954d58ba16b3920556f106f97e1c67
treee3a5ef5827aa29ec852dafc7d7509c6356d7abbd
parentead07aa4ef753f0facd19a7218402f7d19eff60a
qtest: Add set_irq_in command to set IRQ/GPIO level

Adds a new qtest command "set_irq_in" which allows
to set qemu gpio lines to a given level.

Based on https://lists.gnu.org/archive/html/qemu-devel/2012-12/msg02363.html
which never got merged.

Signed-off-by: Steffen Görtz <contrib@steffen-goertz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190103091119.9367-2-stefanha@redhat.com
Originally-by: Matthew Ogilvie <mmogilvi_qemu@miniinfo.net>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
qtest.c
tests/libqtest.c
tests/libqtest.h