All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Default keyboard LEDs
Date: Mon, 14 Jan 2008 10:27:06 +0000	[thread overview]
Message-ID: <20080114102706.GB4298@implementation.uk.xensource.com> (raw)
In-Reply-To: <478ADC0A.7020006@zytor.com>

H. Peter Anvin, le Sun 13 Jan 2008 19:50:34 -0800, a écrit :
> >Actually, what would be perfect would be to use the configuration that
> >the BIOS sets at boot by default.  That is device-dependent, however.
> >
> 
> It is, but it can be read out either by INT calls at initialization 
> time, or by reading out the byte at physical address 0x417:

I should have said "arch-dependent".
I didn't mean it wasn't possible, but just it'd probably be better that
driver experts do it, not me :)

> --------K-M00400017--------------------------
> MEM 0040h:0017h - KEYBOARD - STATUS FLAGS 1
> Size:   BYTE
> SeeAlso: MEM 0040h:0018h,INT 16/AH=02h,MEM 0040h:0096h
> 
> Bitfields for keyboard status flags 1:
> Bit(s)  Description     (Table M0010)
>  7      INSert active
>  6      Caps Lock active
>  5      Num Lock active
>  4      Scroll Lock active
>  3      either Alt pressed
>  2      either Ctrl pressed
>  1      Left Shift pressed
>  0      Right Shift pressed
> SeeAlso: #M0011,#00587
> 
> The same information is available through INT 16h, AH=02h.

Samuel
-
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Default keyboard LEDs
Date: Mon, 14 Jan 2008 10:27:06 +0000	[thread overview]
Message-ID: <20080114102706.GB4298@implementation.uk.xensource.com> (raw)
In-Reply-To: <478ADC0A.7020006@zytor.com>

H. Peter Anvin, le Sun 13 Jan 2008 19:50:34 -0800, a écrit :
> >Actually, what would be perfect would be to use the configuration that
> >the BIOS sets at boot by default.  That is device-dependent, however.
> >
> 
> It is, but it can be read out either by INT calls at initialization 
> time, or by reading out the byte at physical address 0x417:

I should have said "arch-dependent".
I didn't mean it wasn't possible, but just it'd probably be better that
driver experts do it, not me :)

> --------K-M00400017--------------------------
> MEM 0040h:0017h - KEYBOARD - STATUS FLAGS 1
> Size:   BYTE
> SeeAlso: MEM 0040h:0018h,INT 16/AH=02h,MEM 0040h:0096h
> 
> Bitfields for keyboard status flags 1:
> Bit(s)  Description     (Table M0010)
>  7      INSert active
>  6      Caps Lock active
>  5      Num Lock active
>  4      Scroll Lock active
>  3      either Alt pressed
>  2      either Ctrl pressed
>  1      Left Shift pressed
>  0      Right Shift pressed
> SeeAlso: #M0011,#00587
> 
> The same information is available through INT 16h, AH=02h.

Samuel

  reply	other threads:[~2008-01-14 10:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14  0:52 [PATCH] Default keyboard LEDs Samuel Thibault
2008-01-14  1:40 ` Jan Engelhardt
2008-01-14 10:24   ` Samuel Thibault
2008-01-14 10:24     ` Samuel Thibault
2008-01-14  3:50 ` H. Peter Anvin
2008-01-14 10:27   ` Samuel Thibault [this message]
2008-01-14 10:27     ` Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080114102706.GB4298@implementation.uk.xensource.com \
    --to=samuel.thibault@ens-lyon.org \
    --cc=hpa@zytor.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.