ia64/linux-2.6.18-xen.hg

annotate drivers/char/defkeymap.c_shipped @ 893:f994bfe9b93b

linux/blktap2: reduce TLB flush scope

c/s 885 added very coarse TLB flushing. Since these flushes always
follow single page updates, single page flushes (when available) are
sufficient.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 04 10:32:57 2009 +0100 (2009-06-04)
parents 831230e53067
children
rev   line source
ian@0 1 /* Do not edit this file! It was automatically generated by */
ian@0 2 /* loadkeys --mktable defkeymap.map > defkeymap.c */
ian@0 3
ian@0 4 #include <linux/types.h>
ian@0 5 #include <linux/keyboard.h>
ian@0 6 #include <linux/kd.h>
ian@0 7
ian@0 8 u_short plain_map[NR_KEYS] = {
ian@0 9 0xf200, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
ian@0 10 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
ian@0 11 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
ian@0 12 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
ian@0 13 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
ian@0 14 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
ian@0 15 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
ian@0 16 0xf703, 0xf020, 0xf207, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
ian@0 17 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
ian@0 18 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
ian@0 19 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
ian@0 20 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 21 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 22 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
ian@0 23 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 24 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 25 };
ian@0 26
ian@0 27 u_short shift_map[NR_KEYS] = {
ian@0 28 0xf200, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
ian@0 29 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
ian@0 30 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
ian@0 31 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
ian@0 32 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
ian@0 33 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
ian@0 34 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
ian@0 35 0xf703, 0xf020, 0xf207, 0xf10a, 0xf10b, 0xf10c, 0xf10d, 0xf10e,
ian@0 36 0xf10f, 0xf110, 0xf111, 0xf112, 0xf113, 0xf213, 0xf203, 0xf307,
ian@0 37 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
ian@0 38 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf10a,
ian@0 39 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 40 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 41 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
ian@0 42 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 43 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 44 };
ian@0 45
ian@0 46 u_short altgr_map[NR_KEYS] = {
ian@0 47 0xf200, 0xf200, 0xf200, 0xf040, 0xf200, 0xf024, 0xf200, 0xf200,
ian@0 48 0xf07b, 0xf05b, 0xf05d, 0xf07d, 0xf05c, 0xf200, 0xf200, 0xf200,
ian@0 49 0xfb71, 0xfb77, 0xf918, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
ian@0 50 0xfb6f, 0xfb70, 0xf200, 0xf07e, 0xf201, 0xf702, 0xf914, 0xfb73,
ian@0 51 0xf917, 0xf919, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf200,
ian@0 52 0xf200, 0xf200, 0xf700, 0xf200, 0xfb7a, 0xfb78, 0xf916, 0xfb76,
ian@0 53 0xf915, 0xfb6e, 0xfb6d, 0xf200, 0xf200, 0xf200, 0xf700, 0xf30c,
ian@0 54 0xf703, 0xf200, 0xf207, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
ian@0 55 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf202, 0xf911,
ian@0 56 0xf912, 0xf913, 0xf30b, 0xf90e, 0xf90f, 0xf910, 0xf30a, 0xf90b,
ian@0 57 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
ian@0 58 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 59 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 60 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
ian@0 61 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 62 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 63 };
ian@0 64
ian@0 65 u_short ctrl_map[NR_KEYS] = {
ian@0 66 0xf200, 0xf200, 0xf200, 0xf000, 0xf01b, 0xf01c, 0xf01d, 0xf01e,
ian@0 67 0xf01f, 0xf07f, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf200,
ian@0 68 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
ian@0 69 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf201, 0xf702, 0xf001, 0xf013,
ian@0 70 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
ian@0 71 0xf007, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
ian@0 72 0xf002, 0xf00e, 0xf00d, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
ian@0 73 0xf703, 0xf000, 0xf207, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
ian@0 74 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf204, 0xf307,
ian@0 75 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
ian@0 76 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf200, 0xf10a,
ian@0 77 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 78 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 79 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
ian@0 80 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 81 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 82 };
ian@0 83
ian@0 84 u_short shift_ctrl_map[NR_KEYS] = {
ian@0 85 0xf200, 0xf200, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 86 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf200, 0xf200,
ian@0 87 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
ian@0 88 0xf00f, 0xf010, 0xf200, 0xf200, 0xf201, 0xf702, 0xf001, 0xf013,
ian@0 89 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
ian@0 90 0xf200, 0xf200, 0xf700, 0xf200, 0xf01a, 0xf018, 0xf003, 0xf016,
ian@0 91 0xf002, 0xf00e, 0xf00d, 0xf200, 0xf200, 0xf200, 0xf700, 0xf30c,
ian@0 92 0xf703, 0xf200, 0xf207, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 93 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf208, 0xf200, 0xf307,
ian@0 94 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
ian@0 95 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf200, 0xf200,
ian@0 96 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 97 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 98 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
ian@0 99 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 100 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 101 };
ian@0 102
ian@0 103 u_short alt_map[NR_KEYS] = {
ian@0 104 0xf200, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
ian@0 105 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
ian@0 106 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
ian@0 107 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
ian@0 108 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
ian@0 109 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
ian@0 110 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
ian@0 111 0xf703, 0xf820, 0xf207, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
ian@0 112 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf907,
ian@0 113 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
ian@0 114 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
ian@0 115 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 116 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 117 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
ian@0 118 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 119 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 120 };
ian@0 121
ian@0 122 u_short ctrl_alt_map[NR_KEYS] = {
ian@0 123 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 124 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 125 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
ian@0 126 0xf80f, 0xf810, 0xf200, 0xf200, 0xf201, 0xf702, 0xf801, 0xf813,
ian@0 127 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
ian@0 128 0xf200, 0xf200, 0xf700, 0xf200, 0xf81a, 0xf818, 0xf803, 0xf816,
ian@0 129 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf200, 0xf200, 0xf700, 0xf30c,
ian@0 130 0xf703, 0xf200, 0xf207, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
ian@0 131 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf200, 0xf307,
ian@0 132 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
ian@0 133 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf200, 0xf50a,
ian@0 134 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 135 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf701, 0xf205, 0xf114, 0xf603,
ian@0 136 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
ian@0 137 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
ian@0 138 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
ian@0 139 };
ian@0 140
ian@0 141 ushort *key_maps[MAX_NR_KEYMAPS] = {
ian@0 142 plain_map, shift_map, altgr_map, NULL,
ian@0 143 ctrl_map, shift_ctrl_map, NULL, NULL,
ian@0 144 alt_map, NULL, NULL, NULL,
ian@0 145 ctrl_alt_map, NULL
ian@0 146 };
ian@0 147
ian@0 148 unsigned int keymap_count = 7;
ian@0 149
ian@0 150 /*
ian@0 151 * Philosophy: most people do not define more strings, but they who do
ian@0 152 * often want quite a lot of string space. So, we statically allocate
ian@0 153 * the default and allocate dynamically in chunks of 512 bytes.
ian@0 154 */
ian@0 155
ian@0 156 char func_buf[] = {
ian@0 157 '\033', '[', '[', 'A', 0,
ian@0 158 '\033', '[', '[', 'B', 0,
ian@0 159 '\033', '[', '[', 'C', 0,
ian@0 160 '\033', '[', '[', 'D', 0,
ian@0 161 '\033', '[', '[', 'E', 0,
ian@0 162 '\033', '[', '1', '7', '~', 0,
ian@0 163 '\033', '[', '1', '8', '~', 0,
ian@0 164 '\033', '[', '1', '9', '~', 0,
ian@0 165 '\033', '[', '2', '0', '~', 0,
ian@0 166 '\033', '[', '2', '1', '~', 0,
ian@0 167 '\033', '[', '2', '3', '~', 0,
ian@0 168 '\033', '[', '2', '4', '~', 0,
ian@0 169 '\033', '[', '2', '5', '~', 0,
ian@0 170 '\033', '[', '2', '6', '~', 0,
ian@0 171 '\033', '[', '2', '8', '~', 0,
ian@0 172 '\033', '[', '2', '9', '~', 0,
ian@0 173 '\033', '[', '3', '1', '~', 0,
ian@0 174 '\033', '[', '3', '2', '~', 0,
ian@0 175 '\033', '[', '3', '3', '~', 0,
ian@0 176 '\033', '[', '3', '4', '~', 0,
ian@0 177 '\033', '[', '1', '~', 0,
ian@0 178 '\033', '[', '2', '~', 0,
ian@0 179 '\033', '[', '3', '~', 0,
ian@0 180 '\033', '[', '4', '~', 0,
ian@0 181 '\033', '[', '5', '~', 0,
ian@0 182 '\033', '[', '6', '~', 0,
ian@0 183 '\033', '[', 'M', 0,
ian@0 184 '\033', '[', 'P', 0,
ian@0 185 };
ian@0 186
ian@0 187 char *funcbufptr = func_buf;
ian@0 188 int funcbufsize = sizeof(func_buf);
ian@0 189 int funcbufleft = 0; /* space left */
ian@0 190
ian@0 191 char *func_table[MAX_NR_FUNC] = {
ian@0 192 func_buf + 0,
ian@0 193 func_buf + 5,
ian@0 194 func_buf + 10,
ian@0 195 func_buf + 15,
ian@0 196 func_buf + 20,
ian@0 197 func_buf + 25,
ian@0 198 func_buf + 31,
ian@0 199 func_buf + 37,
ian@0 200 func_buf + 43,
ian@0 201 func_buf + 49,
ian@0 202 func_buf + 55,
ian@0 203 func_buf + 61,
ian@0 204 func_buf + 67,
ian@0 205 func_buf + 73,
ian@0 206 func_buf + 79,
ian@0 207 func_buf + 85,
ian@0 208 func_buf + 91,
ian@0 209 func_buf + 97,
ian@0 210 func_buf + 103,
ian@0 211 func_buf + 109,
ian@0 212 func_buf + 115,
ian@0 213 func_buf + 120,
ian@0 214 func_buf + 125,
ian@0 215 func_buf + 130,
ian@0 216 func_buf + 135,
ian@0 217 func_buf + 140,
ian@0 218 func_buf + 145,
ian@0 219 NULL,
ian@0 220 NULL,
ian@0 221 func_buf + 149,
ian@0 222 NULL,
ian@0 223 };
ian@0 224
ian@0 225 struct kbdiacr accent_table[MAX_DIACR] = {
ian@0 226 {'`', 'A', '\300'}, {'`', 'a', '\340'},
ian@0 227 {'\'', 'A', '\301'}, {'\'', 'a', '\341'},
ian@0 228 {'^', 'A', '\302'}, {'^', 'a', '\342'},
ian@0 229 {'~', 'A', '\303'}, {'~', 'a', '\343'},
ian@0 230 {'"', 'A', '\304'}, {'"', 'a', '\344'},
ian@0 231 {'O', 'A', '\305'}, {'o', 'a', '\345'},
ian@0 232 {'0', 'A', '\305'}, {'0', 'a', '\345'},
ian@0 233 {'A', 'A', '\305'}, {'a', 'a', '\345'},
ian@0 234 {'A', 'E', '\306'}, {'a', 'e', '\346'},
ian@0 235 {',', 'C', '\307'}, {',', 'c', '\347'},
ian@0 236 {'`', 'E', '\310'}, {'`', 'e', '\350'},
ian@0 237 {'\'', 'E', '\311'}, {'\'', 'e', '\351'},
ian@0 238 {'^', 'E', '\312'}, {'^', 'e', '\352'},
ian@0 239 {'"', 'E', '\313'}, {'"', 'e', '\353'},
ian@0 240 {'`', 'I', '\314'}, {'`', 'i', '\354'},
ian@0 241 {'\'', 'I', '\315'}, {'\'', 'i', '\355'},
ian@0 242 {'^', 'I', '\316'}, {'^', 'i', '\356'},
ian@0 243 {'"', 'I', '\317'}, {'"', 'i', '\357'},
ian@0 244 {'-', 'D', '\320'}, {'-', 'd', '\360'},
ian@0 245 {'~', 'N', '\321'}, {'~', 'n', '\361'},
ian@0 246 {'`', 'O', '\322'}, {'`', 'o', '\362'},
ian@0 247 {'\'', 'O', '\323'}, {'\'', 'o', '\363'},
ian@0 248 {'^', 'O', '\324'}, {'^', 'o', '\364'},
ian@0 249 {'~', 'O', '\325'}, {'~', 'o', '\365'},
ian@0 250 {'"', 'O', '\326'}, {'"', 'o', '\366'},
ian@0 251 {'/', 'O', '\330'}, {'/', 'o', '\370'},
ian@0 252 {'`', 'U', '\331'}, {'`', 'u', '\371'},
ian@0 253 {'\'', 'U', '\332'}, {'\'', 'u', '\372'},
ian@0 254 {'^', 'U', '\333'}, {'^', 'u', '\373'},
ian@0 255 {'"', 'U', '\334'}, {'"', 'u', '\374'},
ian@0 256 {'\'', 'Y', '\335'}, {'\'', 'y', '\375'},
ian@0 257 {'T', 'H', '\336'}, {'t', 'h', '\376'},
ian@0 258 {'s', 's', '\337'}, {'"', 'y', '\377'},
ian@0 259 {'s', 'z', '\337'}, {'i', 'j', '\377'},
ian@0 260 };
ian@0 261
ian@0 262 unsigned int accent_table_size = 68;