From 2a6505b0e79e553ed11570fb484071f3e5293cff Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Fri, 20 Dec 2019 22:15:10 +0100 Subject: hppa: add emulation of LASI PS2 controllers Signed-off-by: Sven Schnelle Message-Id: <20191220211512.3289-5-svens@stackframe.org> Signed-off-by: Richard Henderson --- include/hw/input/lasips2.h | 16 ++++++++++++++++ include/hw/input/ps2.h | 1 + 2 files changed, 17 insertions(+) create mode 100644 include/hw/input/lasips2.h (limited to 'include/hw/input') diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h new file mode 100644 index 0000000000..0cd7b59064 --- /dev/null +++ b/include/hw/input/lasips2.h @@ -0,0 +1,16 @@ +/* + * QEMU LASI PS/2 emulation + * + * Copyright (c) 2019 Sven Schnelle + * + */ +#ifndef HW_INPUT_LASIPS2_H +#define HW_INPUT_LASIPS2_H + +#include "exec/hwaddr.h" + +#define TYPE_LASIPS2 "lasips2" + +void lasips2_init(MemoryRegion *address_space, hwaddr base, qemu_irq irq); + +#endif /* HW_INPUT_LASIPS2_H */ diff --git a/include/hw/input/ps2.h b/include/hw/input/ps2.h index b60455d4f6..35d983897a 100644 --- a/include/hw/input/ps2.h +++ b/include/hw/input/ps2.h @@ -47,5 +47,6 @@ void ps2_queue_3(PS2State *s, int b1, int b2, int b3); void ps2_queue_4(PS2State *s, int b1, int b2, int b3, int b4); void ps2_keyboard_set_translation(void *opaque, int mode); void ps2_mouse_fake_event(void *opaque); +int ps2_queue_empty(PS2State *s); #endif /* HW_PS2_H */ -- cgit v1.2.3-55-g7522