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
sufficient IMHO:
i386/azerty/be-latin1.kmap
i386/azerty/be2-latin1.kmap
i386/azerty/fr-latin0.kmap
i386/azerty/fr-latin1.kmap
i386/azerty/fr-pc.kmap
i386/azerty/fr.kmap
i386/qwerty/it-ibm.kmap
i386/qwerty/it.kmap
i386/qwerty/it2.kmap
i386/qwerty/nl.kmap
i386/qwerty/pc110.kmap
i386/qwerty/uk.kmap
i386/qwerty/us-latin1.kmap
i386/qwerty/us.kmap
i386/qwertz/de-latin1-nodeadkeys.kmap
i386/qwertz/de-latin1.kmap
i386/qwertz/de.kmap
i386/qwertz/fr_CH-latin1.kmap
i386/qwertz/fr_CH.kmap
...plus the include files needed by these.
Cheers,
Richard
--
__ _
|_) /| Richard Atterer | CS student at the Technische | GnuPG key:
| \/¯| http://atterer.net | Universität München, Germany | 0x888354F7
¯ ´` ¯
Reply to: