All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [MIPS] Add PS/2 keyboard to MIPS R4K
@ 2007-02-13 21:44 Hervé Poussineau
  0 siblings, 0 replies; only message in thread
From: Hervé Poussineau @ 2007-02-13 21:44 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

Hi,

This patch adds a PS/2 keyboard to the emulated MIPS R4K board.
For example, the MIPS Magnum R4000 (and most of the Jazz-based systems) had
this interface.

Hervé

[-- Attachment #2: add_kbd_to_mips_r4k.diff --]
[-- Type: application/octet-stream, Size: 856 bytes --]

Index: hw/mips_r4k.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/mips_r4k.c,v
retrieving revision 1.33
diff -u -r1.33 mips_r4k.c
--- hw/mips_r4k.c	24 Jan 2007 22:00:13 -0000	1.33
+++ hw/mips_r4k.c	13 Feb 2007 21:24:24 -0000
@@ -126,6 +126,7 @@
                      env->kernel_cmdline, env->initrd_filename);
 }
 
+static
 void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
                     DisplayState *ds, const char **fd_filename, int snapshot,
                     const char *kernel_filename, const char *kernel_cmdline,
@@ -212,6 +212,8 @@
     for(i = 0; i < 2; i++)
         isa_ide_init(ide_iobase[i], ide_iobase2[i], ide_irq[i],
                      bs_table[2 * i], bs_table[2 * i + 1]);
+
+    kbd_init();
 }
 
 QEMUMachine mips_machine = {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-13 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13 21:44 [Qemu-devel] [MIPS] Add PS/2 keyboard to MIPS R4K Hervé Poussineau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.