From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkZFu-0006AP-6V for qemu-devel@nongnu.org; Thu, 25 Feb 2010 03:39:34 -0500 Received: from [199.232.76.173] (port=33650 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkZFr-000684-5F for qemu-devel@nongnu.org; Thu, 25 Feb 2010 03:39:31 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkZFn-0007Ye-1f for qemu-devel@nongnu.org; Thu, 25 Feb 2010 03:39:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:18581) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NkZFm-0007YT-7q for qemu-devel@nongnu.org; Thu, 25 Feb 2010 03:39:26 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1P8dOlj027887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Feb 2010 03:39:24 -0500 From: Gerd Hoffmann Date: Thu, 25 Feb 2010 09:39:19 +0100 Message-Id: <1267087161-15204-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1267087161-15204-1-git-send-email-kraxel@redhat.com> References: <1267087161-15204-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 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 | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/ps2.c b/hw/ps2.c index 15a6650..3dc3b15 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