aboutsummaryrefslogtreecommitdiffstats
path: root/hw/ps2.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-02-26 17:17:37 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-09 08:47:20 -0600
commit6937b3766fb47b87a986e7c8010546465de87a4c (patch)
tree5f3cd8fd57330a52a9b63b8759832561afc5ce22 /hw/ps2.c
parent03a23a85f4c2588778d7d58ae49e5521d79d1b06 (diff)
kbd leds: ps/2 kbd
Add led status notification support to the ps/2 kbd driver. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ps2.c')
-rw-r--r--hw/ps2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ps2.c b/hw/ps2.c
index 15a6650a6..f0b206aa8 100644
--- a/hw/ps2.c
+++ b/hw/ps2.c
@@ -185,6 +185,7 @@ static void ps2_reset_keyboard(PS2KbdState *s)
{
s->scan_enabled = 1;
s->scancode_set = 2;
+ kbd_put_ledstate(0);
}
void ps2_write_keyboard(void *opaque, int val)
@@ -259,6 +260,7 @@ void ps2_write_keyboard(void *opaque, int val)
s->common.write_cmd = -1;
break;
case KBD_CMD_SET_LEDS:
+ kbd_put_ledstate(val);
ps2_queue(&s->common, KBD_REPLY_ACK);
s->common.write_cmd = -1;
break;