xref: /netbsd/sys/arch/prep/stand/boot/pcconstab.US (revision bf9ec67e)
1/*	$NetBSD: pcconstab.US,v 1.1 2000/02/29 15:21:50 nonaka Exp $	*/
2
3/*-
4 * Copyright (c) 1990, 1993
5 *	The Regents of the University of California.  All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz and Don Ahn.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 *    notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 *    notice, this list of conditions and the following disclaimer in the
17 *    documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 *    must display the following acknowledgement:
20 *	This product includes software developed by the University of
21 *	California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 *    may be used to endorse or promote products derived from this software
24 *    without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 *	@(#)pccons.c	8.1 (Berkeley) 6/11/93
39 */
40
41/*
42 *	US Keyboard mapping tables
43 */
44const unsigned short action[] = {
45	0,     ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,	/* scan  0- 7 */
46	ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,	/* scan  8-15 */
47	ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,	/* scan 16-23 */
48	ASCII, ASCII, ASCII, ASCII, ASCII,   CTL, ASCII, ASCII,	/* scan 24-31 */
49	ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,	/* scan 32-39 */
50	ASCII, ASCII,   SHF, ASCII, ASCII, ASCII, ASCII, ASCII,	/* scan 40-47 */
51	ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,   SHF, ASCII,	/* scan 48-55 */
52	  ALT, ASCII,   CPS,  FUNC,  FUNC,  FUNC,  FUNC,  FUNC,	/* scan 56-63 */
53	 FUNC,  FUNC,  FUNC,  FUNC,  FUNC,   NUM,SCROLL, ASCII,	/* scan 64-71 */
54	ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII, ASCII,	/* scan 72-79 */
55	ASCII, ASCII, ASCII, ASCII,     0,     0,     0,     0,	/* scan 80-87 */
56	0,0,0,0,0,0,0,0,	/* scan 88-95 */
57	0,0,0,0,0,0,0,0,	/* scan 96-103 */
58	0,0,0,0,0,0,0,0,	/* scan 104-111 */
59	0,0,0,0,0,0,0,0,	/* scan 112-119 */
60	0,0,0,0,0,0,0,0,	/* scan 120-127 */
61};
62
63const unsigned char unshift[] = {	/* no shift */
64	  0,   033,   '1',   '2',   '3',   '4',   '5',   '6',	/* scan  0- 7 */
65	'7',   '8',   '9',   '0',   '-',   '=',   010,  '\t',	/* scan  8-15 */
66	'q',   'w',   'e',   'r',   't',   'y',   'u',   'i',	/* scan 16-23 */
67	'o',   'p',   '[',   ']',  '\r',   CTL,   'a',   's',	/* scan 24-31 */
68	'd',   'f',   'g',   'h',   'j',   'k',   'l',   ';',	/* scan 32-39 */
69	'\'',  '`',   SHF,   '\\',  'z',   'x',   'c',   'v',	/* scan 40-47 */
70	'b',   'n',   'm',   ',',   '.',   '/',   SHF,   '*',	/* scan 48-55 */
71	ALT,   ' ',   CPS,     1,     2,     3,     4,     5,	/* scan 56-63 */
72	  6,     7,     8,     9,    10,   NUM,   STP,   '7',	/* scan 64-71 */
73	'8',   '9',   '-',   '4',   '5',   '6',   '+',   '1',	/* scan 72-79 */
74	'2',   '3',   '0',   0177,    0,     0,     0,     0,	/* scan 80-87 */
75	0,0,0,0,0,0,0,0,	/* scan 88-95 */
76	0,0,0,0,0,0,0,0,	/* scan 96-103 */
77	0,0,0,0,0,0,0,0,	/* scan 104-111 */
78	0,0,0,0,0,0,0,0,	/* scan 112-119 */
79	0,0,0,0,0,0,0,0,	/* scan 120-127 */
80};
81
82const unsigned char shift[] = {	/* shift shift */
83	  0,   033,   '!',   '@',   '#',   '$',   '%',   '^',	/* scan  0- 7 */
84	'&',   '*',   '(',   ')',   '_',   '+',   010,  '\t',	/* scan  8-15 */
85	'Q',   'W',   'E',   'R',   'T',   'Y',   'U',   'I',	/* scan 16-23 */
86	'O',   'P',   '{',   '}',  '\r',   CTL,   'A',   'S',	/* scan 24-31 */
87	'D',   'F',   'G',   'H',   'J',   'K',   'L',   ':',	/* scan 32-39 */
88	'"',   '~',   SHF,   '|',   'Z',   'X',   'C',   'V',	/* scan 40-47 */
89	'B',   'N',   'M',   '<',   '>',   '?',   SHF,   '*',	/* scan 48-55 */
90	ALT,   ' ',   CPS,     0,     0,   ' ',     0,     0,	/* scan 56-63 */
91	  0,     0,     0,     0,     0,   NUM,   STP,   '7',	/* scan 64-71 */
92	'8',   '9',   '-',   '4',   '5',   '6',   '+',   '1',	/* scan 72-79 */
93	'2',   '3',   '0',  0177,     0,     0,     0,     0,	/* scan 80-87 */
94	0,0,0,0,0,0,0,0,	/* scan 88-95 */
95	0,0,0,0,0,0,0,0,	/* scan 96-103 */
96	0,0,0,0,0,0,0,0,	/* scan 104-111 */
97	0,0,0,0,0,0,0,0,	/* scan 112-119 */
98	0,0,0,0,0,0,0,0,	/* scan 120-127 */
99};
100
101const unsigned char ctl[] = {	/* CTL shift */
102	  0,   033,   '!',   000,   '#',   '$',   '%',   036,	/* scan  0- 7 */
103	'&',   '*',   '(',   ')',   037,   '+',   034,'\177',	/* scan  8-15 */
104	021,   027,   005,   022,   024,   031,   025,   011,	/* scan 16-23 */
105	017,   020,   033,   035,  '\r',   CTL,   001,   023,	/* scan 24-31 */
106	004,   006,   007,   010,   012,   013,   014,   ';',	/* scan 32-39 */
107	'\'',  '`',   SHF,   034,   032,   030,   003,   026,	/* scan 40-47 */
108	002,   016,   015,   '<',   '>',   '?',   SHF,   '*',	/* scan 48-55 */
109	ALT,   ' ',   CPS,     0,     0,   ' ',     0,     0,	/* scan 56-63 */
110	CPS,     0,     0,     0,     0,     0,     0,     0,	/* scan 64-71 */
111	  0,     0,     0,     0,     0,     0,     0,     0,	/* scan 72-79 */
112	  0,     0,     0,  0177,     0,     0,     0,     0,	/* scan 80-87 */
113	  0,     0,   033,   '7',   '4',   '1',     0,   NUM,	/* scan 88-95 */
114	'8',   '5',   '2',     0,   STP,   '9',   '6',   '3',	/* scan 96-103*/
115	'.',     0,   '*',   '-',   '+',     0,     0,     0,	/*scan 104-111*/
116	0,0,0,0,0,0,0,0,	/* scan 112-119 */
117	0,0,0,0,0,0,0,0,	/* scan 120-127 */
118};
119