From c8e8bc85a6ba106ad4fd92468f6ef726200ab1ca Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Sat, 30 Jun 2018 07:50:23 +0200 Subject: m68k: Add NeXTcube keyboard device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is likely still quite incomplete (e.g. mouse and interrupts are not implemented yet), but it is good enough for keyboard input at the firmware monitor. This code has been taken from Bryce Lanham's GSoC 2011 NeXT branch at https://github.com/blanham/qemu-NeXT/blob/next-cube/hw/next-kbd.c and altered to fit the latest interface of the current QEMU (e.g. to use memory_region_init_io() instead of cpu_register_physical_memory()). Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20190831074519.32613-3-huth@tuxfamily.org> Signed-off-by: Thomas Huth --- include/hw/m68k/next-cube.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw') diff --git a/include/hw/m68k/next-cube.h b/include/hw/m68k/next-cube.h index 090c7c5..37f7ce3 100644 --- a/include/hw/m68k/next-cube.h +++ b/include/hw/m68k/next-cube.h @@ -4,4 +4,6 @@ #define TYPE_NEXTFB "next-fb" +#define TYPE_NEXTKBD "next-kbd" + #endif /* NEXT_CUBE_H */ -- cgit v1.1