diff options
| author | Sven Schnelle <svens@stackframe.org> | 2019-12-20 22:15:10 +0100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2020-01-27 10:49:51 -0800 |
| commit | 2a6505b0e79e553ed11570fb484071f3e5293cff (patch) | |
| tree | 5af7510a955b00f49e8a5c294c3d863a04917249 /hw/input/ps2.c | |
| parent | c56b6209189f6a4945562dc772cff440f03e4868 (diff) | |
| download | focaccia-qemu-2a6505b0e79e553ed11570fb484071f3e5293cff.tar.gz focaccia-qemu-2a6505b0e79e553ed11570fb484071f3e5293cff.zip | |
hppa: add emulation of LASI PS2 controllers
Signed-off-by: Sven Schnelle <svens@stackframe.org> Message-Id: <20191220211512.3289-5-svens@stackframe.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/input/ps2.c')
| -rw-r--r-- | hw/input/ps2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 0b671b6339..f8746d2f52 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -192,6 +192,11 @@ static void ps2_reset_queue(PS2State *s) q->count = 0; } +int ps2_queue_empty(PS2State *s) +{ + return s->queue.count == 0; +} + void ps2_queue_noirq(PS2State *s, int b) { PS2Queue *q = &s->queue; |