From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S8Uip-0006bo-Nu for mharc-grub-devel@gnu.org; Fri, 16 Mar 2012 06:49:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Uik-0006YH-4L for grub-devel@gnu.org; Fri, 16 Mar 2012 06:49:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8UiL-0000lu-Kg for grub-devel@gnu.org; Fri, 16 Mar 2012 06:49:17 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:60088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8UiL-0000lG-BN for grub-devel@gnu.org; Fri, 16 Mar 2012 06:48:53 -0400 Received: by eaal1 with SMTP id l1so2256317eaa.0 for ; Fri, 16 Mar 2012 03:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=bsQFYIsmm1DrIyWH6TWds2S9Ipwn+uAAfqsCembB30w=; b=ta8sq+de5ttqmizcudYcBoEHlxPFRgwSobImmTIDSCE/8P9BWOE8o/e+UAjq1/OtmF IoGY2/FTDCfAEfh3xo99rmB6+2ahnB7dnt/vhw3S2068gjCFcJL3CEHrSqyhkzsMUEDz F8lKjK/eFu+q/dISKkV3Aex+Egf+ZWL09+Ei/jT9/Xz2T4S6+XdnMNwQ0+luiwRFlIix QfnGKNHWirhmVwtfvxVIKc4niMm5Lm5ruQIbcMVZoZjWDI/GYt/U59/EFGO/wT5RAUhj YV9ftJBMZqP3GRtFCifiqca9VN2075VXi3mJLp9nm0/5MCAAQgwdGQ00xwDWxlxTpDia dv7A== Received: by 10.213.29.206 with SMTP id r14mr123929ebc.88.1331894927150; Fri, 16 Mar 2012 03:48:47 -0700 (PDT) Received: from debian.x201.phnet (89-234.197-178.cust.bluewin.ch. [178.197.234.89]) by mx.google.com with ESMTPS id q45sm17057228eem.7.2012.03.16.03.48.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Mar 2012 03:48:45 -0700 (PDT) Message-ID: <4F631A83.4020006@gmail.com> Date: Fri, 16 Mar 2012 11:48:35 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120124 Icedove/9.0.1 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: getting status of frontkeys References: <4F63040D.8020408@jomammele.de> In-Reply-To: <4F63040D.8020408@jomammele.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 Cc: Joachim Mammele X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 10:49:22 -0000 On 16.03.2012 10:12, Joachim Mammele wrote: > bits = 32; > outb(bits, 0x20A); > outw(-16832, 0x20C); > bits9 = inb(0x209); > return bits9; This code is easy to port to GRUB2. Just have a look at cmostest command to see what wrapping you need and replace in* with grub_in* and out* with grub_out* -- Regards Vladimir 'φ-coder/phcoder' Serbinenko