510 lines
17 KiB
C
510 lines
17 KiB
C
|
/* $NetBSD: rc7500_kbd_map.c,v 1.1 1997/10/14 10:52:39 mark Exp $ */
|
||
|
|
||
|
/*
|
||
|
* Copyright (c) 1994-1997 Mark Brinicombe.
|
||
|
* Copyright (c) 1994 Brini.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* This code is derived from software written for Brini by Mark Brinicombe
|
||
|
*
|
||
|
* Redistribution and use in source and binary forms, with or without
|
||
|
* modification, are permitted provided that the following conditions
|
||
|
* are met:
|
||
|
* 1. Redistributions of source code must retain the above copyright
|
||
|
* notice, this list of conditions and the following disclaimer.
|
||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||
|
* notice, this list of conditions and the following disclaimer in the
|
||
|
* documentation and/or other materials provided with the distribution.
|
||
|
* 3. All advertising materials mentioning features or use of this software
|
||
|
* must display the following acknowledgement:
|
||
|
* This product includes software developed by Mark Brinicombe.
|
||
|
* 4. The name of the company nor the name of the author may be used to
|
||
|
* endorse or promote products derived from this software without specific
|
||
|
* prior written permission.
|
||
|
*
|
||
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||
|
* IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||
|
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
* SUCH DAMAGE.
|
||
|
*
|
||
|
* RiscBSD kernel project
|
||
|
*
|
||
|
* kbd.c
|
||
|
*
|
||
|
* Keyboard driver functions
|
||
|
*
|
||
|
* Created : 09/10/94
|
||
|
*/
|
||
|
|
||
|
#include <sys/param.h>
|
||
|
#include <sys/systm.h>
|
||
|
#include <sys/kernel.h>
|
||
|
#include <sys/proc.h>
|
||
|
#include <sys/device.h>
|
||
|
#include <sys/tty.h>
|
||
|
#include <sys/select.h>
|
||
|
|
||
|
#include <machine/bus.h>
|
||
|
#include <arm32/dev/kbdvar.h>
|
||
|
|
||
|
/* Define mappings for each possible code */
|
||
|
|
||
|
key_struct keys[256] = {
|
||
|
/* 0x00 - 0x0f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x80 },
|
||
|
{ 0x89, 0x99, 0x00, 0x489, 0x00 },
|
||
|
{ 0x8a, 0x9a, 0x00, 0x00, 0x00 },
|
||
|
{ 0x85, 0x95, 0x00, 0x485, 0x00 },
|
||
|
{ 0x83, 0x93, 0x00, 0x483, 0x00 },
|
||
|
{ 0x81, 0x91, 0x00, 0x481, 0x00 },
|
||
|
{ 0x82, 0x92, 0x00, 0x482, 0x00 },
|
||
|
{ 0x8c, 0x9c, 0x00, 0x48c, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x88, 0x98, 0x00, 0x488, 0x00 },
|
||
|
{ 0x86, 0x96, 0x00, 0x486, 0x00 },
|
||
|
{ 0x84, 0x94, 0x00, 0x484, 0x00 },
|
||
|
{ 0x09, 0x09, 0x09, 0x09, 0x00 },
|
||
|
#ifdef RC7500
|
||
|
{ 0x60, 0x7e, 0x00, 0x00, 0x00 },
|
||
|
#else
|
||
|
{ 0x60, 0x00, 0x00, 0x00, 0x00 },
|
||
|
#endif
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x10 - 0x1f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x84 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x82 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x81 },
|
||
|
{ 0x71, 0x51, 0x11, 0x00, 0x40 },
|
||
|
{ 0x31, 0x21, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x7a, 0x5a, 0x1a, 0x00, 0x40 },
|
||
|
{ 0x73, 0x53, 0x13, 0x00, 0x40 },
|
||
|
{ 0x61, 0x41, 0x01, 0x00, 0x40 },
|
||
|
{ 0x77, 0x57, 0x17, 0x00, 0x40 },
|
||
|
{ 0x32, 0x22, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x20 - 0x2f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x63, 0x43, 0x03, 0x00, 0x40 },
|
||
|
{ 0x78, 0x58, 0x18, 0x00, 0x40 },
|
||
|
{ 0x64, 0x44, 0x04, 0x00, 0x40 },
|
||
|
{ 0x65, 0x45, 0x05, 0x00, 0x40 },
|
||
|
{ 0x34, 0x24, 0x00, 0x00, 0x00 },
|
||
|
{ 0x33, 0x23, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x20, 0x20, 0x20, 0x20, 0x00 },
|
||
|
{ 0x76, 0x56, 0x16, 0x00, 0x40 },
|
||
|
{ 0x66, 0x46, 0x06, 0x00, 0x40 },
|
||
|
{ 0x74, 0x54, 0x14, 0x00, 0x40 },
|
||
|
{ 0x72, 0x52, 0x12, 0x00, 0x40 },
|
||
|
{ 0x35, 0x25, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x30 - 0x3f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x6e, 0x4e, 0x0e, 0x00, 0x40 },
|
||
|
{ 0x62, 0x42, 0x02, 0x00, 0x40 },
|
||
|
{ 0x68, 0x48, 0x08, 0x00, 0x40 },
|
||
|
{ 0x67, 0x47, 0x07, 0x00, 0x40 },
|
||
|
{ 0x79, 0x59, 0x19, 0x00, 0x40 },
|
||
|
{ 0x36, 0x5e, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x6d, 0x4d, 0x0d, 0x00, 0x40 },
|
||
|
{ 0x6a, 0x4a, 0x0a, 0x00, 0x40 },
|
||
|
{ 0x75, 0x55, 0x15, 0x00, 0x40 },
|
||
|
{ 0x37, 0x26, 0x00, 0x00, 0x00 },
|
||
|
{ 0x38, 0x2a, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x40 - 0x4f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2c, 0x3c, 0x00, 0x00, 0x00 },
|
||
|
{ 0x6b, 0x4b, 0x0b, 0x00, 0x40 },
|
||
|
{ 0x69, 0x49, 0x09, 0x00, 0x40 },
|
||
|
{ 0x6f, 0x4f, 0x0f, 0x00, 0x40 },
|
||
|
{ 0x30, 0x29, 0x00, 0x00, 0x00 },
|
||
|
{ 0x39, 0x28, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2e, 0x3e, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2f, 0x3f, 0x00, 0x00, 0x00 },
|
||
|
{ 0x6c, 0x4c, 0x0c, 0x00, 0x40 },
|
||
|
{ 0x3b, 0x3a, 0x00, 0x00, 0x00 },
|
||
|
{ 0x70, 0x50, 0x10, 0x00, 0x40 },
|
||
|
{ 0x2d, 0x5f, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x50 - 0x5f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
#ifdef RC7500
|
||
|
{ 0x27, 0x22, 0x00, 0x00, 0x00 },
|
||
|
#else
|
||
|
{ 0x27, 0x40, 0x00, 0x00, 0x00 },
|
||
|
#endif
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x5b, 0x7b, 0x00, 0x00, 0x00 },
|
||
|
{ 0x3d, 0x2b, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0xa0 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x82 },
|
||
|
{ 0x0d, 0x0d, 0x0d, 0x00, 0x00 },
|
||
|
{ 0x5d, 0x7d, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
#ifdef RC7500
|
||
|
{ 0x5c, 0x7c, 0x00, 0x00, 0x00 },
|
||
|
#else
|
||
|
{ 0x23, 0x7e, 0x00, 0x00, 0x00 },
|
||
|
#endif
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x60 - 0x6f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x5c, 0x7c, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x08, 0x7f, 0x08, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x31, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x34, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x37, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x70 - 0x7f */
|
||
|
{ 0x30, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2e, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x32, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x35, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x36, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x38, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x1b, 0x1b, 0x21b, 0x1b, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x90 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2b, 0x00, 0x00, 0x22b, 0x00 },
|
||
|
{ 0x33, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2d, 0x00, 0x00, 0x22d, 0x00 },
|
||
|
{ 0x2a, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x39, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x88 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x80 - 0x8f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x87, 0x97, 0x00, 0x487, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x90 - 0x9f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0xa0 - 0xaf */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0xb0 - 0xbf */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0xc0 - 0xcf */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0xd0 - 0xdf */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0xe0 - 0xef */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0xf0 - 0xff */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 }
|
||
|
};
|
||
|
|
||
|
/* Define mappings for each possible code */
|
||
|
|
||
|
key_struct E0keys[128] = {
|
||
|
|
||
|
/* 0x00 - 0x0f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x10 - 0x1f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x84 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x81 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x20 - 0x2f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x30 - 0x3f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x40 - 0x4f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x2f, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x50 - 0x5f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x0d, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x60 - 0x6f */
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x10b, 0x00, 0x00, 0x20b, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x102, 0x00, 0x00, 0x202, 0x00 },
|
||
|
{ 0x10a, 0x00, 0x00, 0x20a, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
|
||
|
/* 0x70 - 0x7f */
|
||
|
{ 0x108, 0x00, 0x00, 0x208, 0x00 },
|
||
|
{ 0x109, 0x00, 0x00, 0x209, 0x00 },
|
||
|
{ 0x101, 0x105, 0x00, 0x201, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x103, 0x00, 0x00, 0x203, 0x00 },
|
||
|
{ 0x100, 0x104, 0x00, 0x200, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x104, 0x100, 0x00, 0x204, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x105, 0x101, 0x00, 0x205, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
{ 0x00, 0x00, 0x00, 0x00, 0x00 },
|
||
|
};
|
||
|
/* End of kbd_map.c */
|