From patchwork Fri Feb 26 16:17:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 46354 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CDE92B7D0A for ; Sat, 27 Feb 2010 03:39:24 +1100 (EST) Received: from localhost ([127.0.0.1]:47822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nl3Dl-0006vz-7I for incoming@patchwork.ozlabs.org; Fri, 26 Feb 2010 11:39:21 -0500 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 Received: from zweiblum.home.kraxel.org (vpn1-4-31.ams2.redhat.com [10.36.4.31]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1QGHfFH029397; Fri, 26 Feb 2010 11:17:42 -0500 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id 4066E70117; Fri, 26 Feb 2010 17:17:39 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH v2 2/4] kbd leds: ps/2 kbd X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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;