From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nl2sw-0001dw-JO for qemu-devel@nongnu.org; Fri, 26 Feb 2010 11:17:50 -0500 Received: from [199.232.76.173] (port=52140 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nl2sv-0001bq-FX for qemu-devel@nongnu.org; Fri, 26 Feb 2010 11:17:49 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nl2st-0004qT-7x for qemu-devel@nongnu.org; Fri, 26 Feb 2010 11:17:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2818) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nl2ss-0004pq-Iv for qemu-devel@nongnu.org; Fri, 26 Feb 2010 11:17:46 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1QGHhtJ026778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 26 Feb 2010 11:17:43 -0500 From: Gerd Hoffmann Date: Fri, 26 Feb 2010 17:17:37 +0100 Message-Id: <1267201059-24145-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1267201059-24145-1-git-send-email-kraxel@redhat.com> References: <1267201059-24145-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v2 2/4] kbd leds: ps/2 kbd List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Add led status notification support to the ps/2 kbd driver. Signed-off-by: Gerd Hoffmann --- hw/ps2.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/ps2.c b/hw/ps2.c index 15a6650..f0b206a 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; -- 1.6.6.1