Re: Bug#85629: keymap for RiscPC
On Fri, Apr 06, 2001 at 01:16:07AM +0200, Yann Dirson wrote:
> On Thu, Apr 05, 2001 at 11:16:28PM +0200, Andries.Brouwer@cwi.nl wrote:
[Why does the kernel remap the PS/2 codes?]
> > > I CC Andries, who may know the answer, or may be inderested in it.
> > Yes, I am interested. No, I don't know the answer.
I suspect it's historical cruft: The first Acorn computers that Linux
was ported to (Archimedes series) used a proprietary keyboard
interface. The mapping on RiscPCs was probably chosen to make the
codes compatible with those of the (now obsolete) Archimedes machines.
What a mess.
> > > The RiscPC kernel does an internal remapping of
> > > scancodes in the keyboard driver
> > Where in the kernel tree? At first sight I didnt see this in 2.4.3.
> As of 2.2.19, most probably in drivers/acorn/char/keyb_ps2.c I guess.
Yes, I think that's it. I actually tried deducing the lowlevel keycode
mapping for my script by looking at this and drivers/char/pc_keyb.c,
but finding out the mapping this way is, erm, "non-trivial". :-/
Another point: I don't think it's necessary to convert *all* of the
i386 maps for the RiscPC, given that RiscPCs are only really used in
some European contries and "down under". The following maps would be
...plus the include files needed by these.
|_) /| Richard Atterer | CS student at the Technische | GnuPG key:
| \/¯| http://atterer.net | Universität München, Germany | 0x888354F7
¯ ´` ¯