All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [MIPS] Add PS/2 keyboard to MIPS R4K
Date: Tue, 13 Feb 2007 22:44:37 +0100	[thread overview]
Message-ID: <20070213214615.E3C92439F2@smtp6-g19.free.fr> (raw)

[-- 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 = {

                 reply	other threads:[~2007-02-13 21:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070213214615.E3C92439F2@smtp6-g19.free.fr \
    --to=hpoussin@reactos.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.