From: Andries Brouwer <aebr@win.tue.nl>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: Andries Brouwer <aebr@win.tue.nl>,
linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: 2.6 input drivers FAQ
Date: Sun, 1 Feb 2004 16:14:52 +0100 [thread overview]
Message-ID: <20040201161452.A28063@pclin040.win.tue.nl> (raw)
In-Reply-To: <20040201135001.GA1804@ucw.cz>; from vojtech@suse.cz on Sun, Feb 01, 2004 at 02:50:01PM +0100
On Sun, Feb 01, 2004 at 02:50:01PM +0100, Vojtech Pavlik wrote:
> Sorry. I was typing that from memory. I'll fix it. Btw, could you make
> the kbd package accept scancodes in the 0x80-0xff range (same as e000 to
> e07f), if it is not yet there? And how about scancodes in the
> 0x100-0x1ff range? Will those work?
What is needed for the 2.6 kernel is rather volatile
(and maybe the present kernel version is not quite final yet).
But setkeycodes does ioctl(fd,KDSETKEYCODE,&a) where
a.keycode = atoi(argv[2]);
a.scancode = strtol(argv[1], &ep, 16);
if (a.scancode >= 0xe000) {
a.scancode -= 0xe000;
a.scancode += 128; /* some kernels needed +256 */
}
The 2.6.1 kernel is still very messy, with code
if (atkbd->emul) {
if (--atkbd->emul)
goto out;
code |= (atkbd->set != 3) ? 0x80 : 0x100;
}
where the representation of the e0 prefix depends on the current scancode mode.
A bad idea.
> One more question: Will kbdrate work properly (use ioctls) when compiled
> on a 2.6 kernels?
kbdrate first tries the KDKBDREP ioctl, then the KIOCSRATE ioctl,
and if both fail it will try to write to /dev/port.
Andries
next prev parent reply other threads:[~2004-02-01 15:14 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-01 10:06 Vojtech Pavlik
2004-02-01 13:15 ` Andries Brouwer
2004-02-01 13:50 ` Vojtech Pavlik
2004-02-01 15:14 ` Andries Brouwer [this message]
2004-02-02 9:35 ` Vojtech Pavlik
2004-02-02 9:43 ` Vojtech Pavlik
2004-02-01 13:51 ` Marcel J.E. Mol
2004-02-01 15:18 ` Andries Brouwer
2004-02-01 15:25 ` Andreas Jellinghaus
2004-02-01 15:56 ` Peter Osterlund
2004-02-01 16:58 ` Andreas Jellinghaus
2004-02-01 21:54 ` Vojtech Pavlik
2004-02-01 16:31 ` Joshua Kwan
2004-02-01 18:23 ` Gene Heskett
2004-02-02 16:45 ` Valdis.Kletnieks
2004-02-02 5:27 ` Valdis.Kletnieks
2004-02-02 9:23 ` Vojtech Pavlik
2004-02-02 18:12 ` Valdis.Kletnieks
2004-02-02 20:18 ` Vojtech Pavlik
2004-02-02 20:24 ` Joshua Kwan
2004-02-02 21:16 ` Vojtech Pavlik
2004-02-02 20:28 ` Valdis.Kletnieks
2004-02-02 21:19 ` Vojtech Pavlik
2004-02-02 9:24 ` Vojtech Pavlik
2004-02-02 9:29 ` Joshua Kwan
2004-02-01 21:54 ` 2.6 input drivers FAQ (ir-kbd-gpio.ko) Jose Luis Domingo Lopez
2004-02-02 10:27 ` Gerd Knorr
2004-02-16 22:42 ` Pavel Machek
2004-02-16 23:36 ` Arkadiusz Miskiewicz
2004-02-17 9:33 ` Gerd Knorr
2004-02-02 17:50 ` 2.6 input drivers FAQ Jesse Barnes
2004-02-02 11:34 Andries.Brouwer
2004-02-02 12:25 ` Vojtech Pavlik
2004-02-02 12:44 Andries.Brouwer
2004-02-02 12:56 ` Vojtech Pavlik
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=20040201161452.A28063@pclin040.win.tue.nl \
--to=aebr@win.tue.nl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®