pc revision 154daed1
1// $Xorg: pc,v 1.3 2000/08/17 19:54:38 cpqbld Exp $
2//
3//Copyright (c) 1996  Digital Equipment Corporation
4//
5//Permission is hereby granted, free of charge, to any person obtaining
6//a copy of this software and associated documentation files (the
7//"Software"), to deal in the Software without restriction, including
8//without limitation the rights to use, copy, modify, merge, publish,
9//distribute, sublicense, and sell copies of the Software, and to
10//permit persons to whom the Software is furnished to do so, subject to
11//the following conditions:
12//
13//The above copyright notice and this permission notice shall be included
14//in all copies or substantial portions of the Software.
15//
16//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17//OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19//IN NO EVENT SHALL DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM,
20//DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21//OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22//THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23//
24//Except as contained in this notice, the name of the Digital Equipment 
25//Corporation shall not be used in advertising or otherwise to promote
26//the sale, use or other dealings in this Software without prior written
27//authorization from Digital Equipment Corporation.
28//
29// HISTORY
30// Log
31// Revision 1.2  1996/06/18  09:13:25  erik
32// use flags correctly, assorted cleanups and consortium fixes
33//
34// Revision 1.1.6.3  1995/10/25  21:00:14  William_Walker
35// 	Add pc104-key support
36// 	[1995/10/23  15:46:21  William_Walker]
37//
38// Revision 1.1.6.2  1995/08/07  17:40:37  William_Walker
39// 	Upgrade XKB to protocol 0.62 (dual submit from decx11)
40// 	[1995/08/06  14:06:28  William_Walker]
41// 
42// Revision 1.1.2.4  1995/08/05  15:25:56  William_Walker
43// 	Upgrade to XKB protocol 0.62
44// 	[1995/08/05  14:40:02  William_Walker]
45// 
46// Revision 1.1.2.3  1995/06/27  12:17:32  William_Walker
47// 	     Rename <TLDE> to ISO9995 compliant <AE00>.
48// 	[1995/06/26  20:24:07  William_Walker]
49// 
50// Revision 1.1.2.2  1995/06/05  19:21:31  William_Walker
51// 	New file.  I love keymaps.
52// 	[1995/06/05  18:07:34  William_Walker]
53// 
54// EndLog
55// 
56// @(#)RCSfile: pc  Revision: /main/3  (DEC) Date: 1996/01/24 12:13:36 
57// 
58xkb_keycodes "pc_common" {
59    // "Function" keys
60    <FK01>	= 9;
61    <FK02>	= 15;
62    <FK03>	= 23;
63    <FK04>	= 31;
64    <FK05>	= 39;
65    <FK06>	= 47;
66    <FK07>	= 55;
67    <FK08>	= 63;
68    <FK09>	= 71;
69    <FK10>	= 79;
70    <FK11>	= 86;
71    <FK12>	= 94;
72
73    // "Editing" keys
74
75    <UP>	= 99;
76    <LEFT>	= 97;
77    <DOWN>	= 96;
78    <RGHT>	= 106;
79
80    // "Keypad" keys
81    <KP7>	= 108;
82    <KP8>	= 117;
83    <KP9>	= 125;
84
85    <KP4>	= 107;
86    <KP5>	= 115;
87    <KP6>	= 116;
88
89    <KP1>	= 105;
90    <KP2>	= 114;
91    <KP3>	= 122;
92    <KPEN>	= 121;
93
94    <KP0>	= 112;
95    <KPDL>	= 113;
96
97    // "Alphanumeric" keys
98    <AE01>	= 22;
99    <AE02>	= 30;
100    <AE03>	= 38;
101    <AE04>	= 37;
102    <AE05>	= 46;
103    <AE06>	= 54;
104    <AE07>	= 61;
105    <AE08>	= 62;
106    <AE09>	= 70;
107    <AE10>	= 69;
108    <AE11>	= 78;
109    <AE12>	= 85;
110    <BKSP>	= 102;
111
112    <TAB>	= 13;
113    <AD01>	= 21;
114    <AD02>	= 29;
115    <AD03>	= 36;
116    <AD04>	= 45;
117    <AD05>	= 44;
118    <AD06>	= 53;
119    <AD07>	= 60;
120    <AD08>	= 67;
121    <AD09>	= 68;
122    <AD10>	= 77;
123    <AD11>	= 84;
124    <AD12>	= 91;
125
126    <CAPS>	= 20;
127    <AC01>	= 28;
128    <AC02>	= 27;
129    <AC03>	= 35;
130    <AC04>	= 43;
131    <AC05>	= 52;
132    <AC06>	= 51;
133    <AC07>	= 59;
134    <AC08>	= 66;
135    <AC09>	= 75;
136    <AC10>	= 76;
137    <AC11>	= 82;
138    <RTRN>	= 90;
139
140    <LFSH>	= 18;
141    <AB01>	= 26;
142    <AB02>	= 34;
143    <AB03>	= 33;
144    <AB04>	= 42;
145    <AB05>	= 50;
146    <AB06>	= 49;
147    <AB07>	= 58;
148    <AB08>	= 65;
149    <AB09>	= 73;
150    <AB10>	= 74;
151    <RTSH>	= 89;
152
153    <LCTL>	= 17;
154    <LALT>	= 25;
155    <SPCE>	= 41;
156    <RALT>	= 57;
157
158    <LDM>	= 255; // Support R5 Lock Down Modifiers
159
160};
161
162xkb_keycodes "pc10x" {
163    include "digital_vndr/pc(pc_common)"
164    <ESC>	= 8;
165    <AE00>	= 14;
166    <PRSC>	= 87;
167    <SCLK>	= 95;
168    <PAUS>	= 98;
169    <INS>	= 103;
170    <HOME>	= 110;
171    <PGUP>	= 111;
172    <DELE>	= 100;
173    <END>	= 101;
174    <PGDN>	= 109;
175    <NMLK>	= 118;
176    <KPDV>	= 119;
177    <KPMU>	= 126;
178    <KPSU>	= 132;
179    <KPAD>	= 124;
180    <RCTL>	= 88;
181
182    alias <TLDE> = <AE00>;
183
184    indicator 3 = "Caps Lock";
185    indicator 4 = "Scroll Lock";
186};
187
188xkb_keycodes "pc101" {
189    include "digital_vndr/pc(pc10x)"
190    <BKSL>  = 92;
191    indicator 5 = "Num Lock";
192};
193
194
195xkb_keycodes "pc102" {
196    include "digital_vndr/pc(pc10x)"
197    <BKSL>  = 19;
198    <AC12>  = 83;
199    indicator 5 = "Num Lock";
200};
201
202xkb_keycodes "pc104" {
203    include "digital_vndr/pc(pc101)"
204    <LWIN>  = 139;
205    <RWIN>  = 140;
206    <MENU>  = 141;
207};
208
209xkb_keycodes "lk411_common" {
210    include "digital_vndr/pc(pc_common)"
211    <AE00>      = 8;
212    <AB00>      = 14;
213    <FK13>	= 24;
214    <FK14>	= 10;
215    <FK17>	= 16;
216    <FK18>	= 87;
217    <FK19>	= 95;
218    <FK20>	= 98;
219    <HELP>	= 11;
220    <DO>	= 12;
221    <FIND>	= 110;
222    <INS>	= 103;
223    <DELE>	= 100;
224    <SELE>	= 101;
225    <PGUP>	= 111;
226    <PGDN>	= 109;
227    <KPF1>	= 118;
228    <KPF2>	= 119;
229    <KPF3>	= 126;
230    <KPF4>	= 132;
231    <KPSU>	= 19;
232    <KPCO>	= 124;
233    <LCMP>	= 40;
234    <RCMP>	= 88;
235
236    alias <TLDE> = <AE00>;
237
238    indicator 3 = "Caps Lock";
239    indicator 4 = "Scroll Lock";
240};
241
242xkb_keycodes "lk411" {
243    include "digital_vndr/pc(lk411_common)"
244    <BKSL>	= 92;
245};
246
247xkb_keycodes "lk450" {
248    include	"digital_vndr/pc(lk411)"
249    indicator 2 = "Compose";
250    indicator 1 = "Wait";
251};
252
253// Japanese variants
254//
255// PCXAJ-AA = pc+BKSL+AC12+AB11+MUHE+KANJ+HIRA+indicator
256// LK411-AJ = lk411+MUHE+KANJ+HIRA
257// LK411-JJ = lk411+BKSL+AZ01+MUHE+KANJ+HIRA
258// LK411-LT = lk411
259
260xkb_keycodes "pcxajaa" {
261    include "digital_vndr/pc(pc10x)"
262    <BKSL>  = 93;
263    <AC12>  = 83;
264    <AB11>  = 81;
265    <MUHE>  = 133;
266    <KANJ>  = 134;
267    <HIRA>  = 135;
268    indicator 5 = "Group 2";
269};
270
271xkb_keycodes "lk411jj" {
272    include "digital_vndr/pc(lk411_common)"
273    <AB11>  = 81;
274    <BKSL>  = 83;
275    <MUHE>  = 133;
276    <KANJ>  = 134;
277    <HIRA>  = 135;
278};
279
280
281