1f16aa97dSGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
260d4ae8dSGreg Kroah-Hartman/* Do not edit this file! It was automatically generated by     */
3*0d49ee83SJiri Slaby/*    loadkeys --mktable --unicode defkeymap.map > defkeymap.c  */
460d4ae8dSGreg Kroah-Hartman
560d4ae8dSGreg Kroah-Hartman#include <linux/types.h>
660d4ae8dSGreg Kroah-Hartman#include <linux/keyboard.h>
760d4ae8dSGreg Kroah-Hartman#include <linux/kd.h>
860d4ae8dSGreg Kroah-Hartman
9f14e0394SJiri Slabyunsigned short plain_map[NR_KEYS] = {
1060d4ae8dSGreg Kroah-Hartman	0xf200,	0xf01b,	0xf031,	0xf032,	0xf033,	0xf034,	0xf035,	0xf036,
1160d4ae8dSGreg Kroah-Hartman	0xf037,	0xf038,	0xf039,	0xf030,	0xf02d,	0xf03d,	0xf07f,	0xf009,
1260d4ae8dSGreg Kroah-Hartman	0xfb71,	0xfb77,	0xfb65,	0xfb72,	0xfb74,	0xfb79,	0xfb75,	0xfb69,
1360d4ae8dSGreg Kroah-Hartman	0xfb6f,	0xfb70,	0xf05b,	0xf05d,	0xf201,	0xf702,	0xfb61,	0xfb73,
1460d4ae8dSGreg Kroah-Hartman	0xfb64,	0xfb66,	0xfb67,	0xfb68,	0xfb6a,	0xfb6b,	0xfb6c,	0xf03b,
1560d4ae8dSGreg Kroah-Hartman	0xf027,	0xf060,	0xf700,	0xf05c,	0xfb7a,	0xfb78,	0xfb63,	0xfb76,
1660d4ae8dSGreg Kroah-Hartman	0xfb62,	0xfb6e,	0xfb6d,	0xf02c,	0xf02e,	0xf02f,	0xf700,	0xf30c,
1760d4ae8dSGreg Kroah-Hartman	0xf703,	0xf020,	0xf207,	0xf100,	0xf101,	0xf102,	0xf103,	0xf104,
1860d4ae8dSGreg Kroah-Hartman	0xf105,	0xf106,	0xf107,	0xf108,	0xf109,	0xf208,	0xf209,	0xf307,
1960d4ae8dSGreg Kroah-Hartman	0xf308,	0xf309,	0xf30b,	0xf304,	0xf305,	0xf306,	0xf30a,	0xf301,
2060d4ae8dSGreg Kroah-Hartman	0xf302,	0xf303,	0xf300,	0xf310,	0xf206,	0xf200,	0xf03c,	0xf10a,
2160d4ae8dSGreg Kroah-Hartman	0xf10b,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
2260d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf01c,	0xf701,	0xf205,	0xf114,	0xf603,
2360d4ae8dSGreg Kroah-Hartman	0xf118,	0xf601,	0xf602,	0xf117,	0xf600,	0xf119,	0xf115,	0xf116,
2460d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
2560d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
2660d4ae8dSGreg Kroah-Hartman};
2760d4ae8dSGreg Kroah-Hartman
28f14e0394SJiri Slabystatic unsigned short shift_map[NR_KEYS] = {
2960d4ae8dSGreg Kroah-Hartman	0xf200,	0xf01b,	0xf021,	0xf040,	0xf023,	0xf024,	0xf025,	0xf05e,
3060d4ae8dSGreg Kroah-Hartman	0xf026,	0xf02a,	0xf028,	0xf029,	0xf05f,	0xf02b,	0xf07f,	0xf009,
3160d4ae8dSGreg Kroah-Hartman	0xfb51,	0xfb57,	0xfb45,	0xfb52,	0xfb54,	0xfb59,	0xfb55,	0xfb49,
3260d4ae8dSGreg Kroah-Hartman	0xfb4f,	0xfb50,	0xf07b,	0xf07d,	0xf201,	0xf702,	0xfb41,	0xfb53,
3360d4ae8dSGreg Kroah-Hartman	0xfb44,	0xfb46,	0xfb47,	0xfb48,	0xfb4a,	0xfb4b,	0xfb4c,	0xf03a,
3460d4ae8dSGreg Kroah-Hartman	0xf022,	0xf07e,	0xf700,	0xf07c,	0xfb5a,	0xfb58,	0xfb43,	0xfb56,
3560d4ae8dSGreg Kroah-Hartman	0xfb42,	0xfb4e,	0xfb4d,	0xf03c,	0xf03e,	0xf03f,	0xf700,	0xf30c,
3660d4ae8dSGreg Kroah-Hartman	0xf703,	0xf020,	0xf207,	0xf10a,	0xf10b,	0xf10c,	0xf10d,	0xf10e,
3760d4ae8dSGreg Kroah-Hartman	0xf10f,	0xf110,	0xf111,	0xf112,	0xf113,	0xf213,	0xf203,	0xf307,
3860d4ae8dSGreg Kroah-Hartman	0xf308,	0xf309,	0xf30b,	0xf304,	0xf305,	0xf306,	0xf30a,	0xf301,
3960d4ae8dSGreg Kroah-Hartman	0xf302,	0xf303,	0xf300,	0xf310,	0xf206,	0xf200,	0xf03e,	0xf10a,
4060d4ae8dSGreg Kroah-Hartman	0xf10b,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
4160d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf200,	0xf701,	0xf205,	0xf114,	0xf603,
4260d4ae8dSGreg Kroah-Hartman	0xf20b,	0xf601,	0xf602,	0xf117,	0xf600,	0xf20a,	0xf115,	0xf116,
4360d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
4460d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
4560d4ae8dSGreg Kroah-Hartman};
4660d4ae8dSGreg Kroah-Hartman
47f14e0394SJiri Slabystatic unsigned short altgr_map[NR_KEYS] = {
4860d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf040,	0xf200,	0xf024,	0xf200,	0xf200,
4960d4ae8dSGreg Kroah-Hartman	0xf07b,	0xf05b,	0xf05d,	0xf07d,	0xf05c,	0xf200,	0xf200,	0xf200,
5060d4ae8dSGreg Kroah-Hartman	0xfb71,	0xfb77,	0xf918,	0xfb72,	0xfb74,	0xfb79,	0xfb75,	0xfb69,
5160d4ae8dSGreg Kroah-Hartman	0xfb6f,	0xfb70,	0xf200,	0xf07e,	0xf201,	0xf702,	0xf914,	0xfb73,
5260d4ae8dSGreg Kroah-Hartman	0xf917,	0xf919,	0xfb67,	0xfb68,	0xfb6a,	0xfb6b,	0xfb6c,	0xf200,
5360d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf700,	0xf200,	0xfb7a,	0xfb78,	0xf916,	0xfb76,
5460d4ae8dSGreg Kroah-Hartman	0xf915,	0xfb6e,	0xfb6d,	0xf200,	0xf200,	0xf200,	0xf700,	0xf30c,
5560d4ae8dSGreg Kroah-Hartman	0xf703,	0xf200,	0xf207,	0xf50c,	0xf50d,	0xf50e,	0xf50f,	0xf510,
5660d4ae8dSGreg Kroah-Hartman	0xf511,	0xf512,	0xf513,	0xf514,	0xf515,	0xf208,	0xf202,	0xf911,
5760d4ae8dSGreg Kroah-Hartman	0xf912,	0xf913,	0xf30b,	0xf90e,	0xf90f,	0xf910,	0xf30a,	0xf90b,
5860d4ae8dSGreg Kroah-Hartman	0xf90c,	0xf90d,	0xf90a,	0xf310,	0xf206,	0xf200,	0xf07c,	0xf516,
5960d4ae8dSGreg Kroah-Hartman	0xf517,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
6060d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf200,	0xf701,	0xf205,	0xf114,	0xf603,
6160d4ae8dSGreg Kroah-Hartman	0xf118,	0xf601,	0xf602,	0xf117,	0xf600,	0xf119,	0xf115,	0xf116,
6260d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
6360d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
6460d4ae8dSGreg Kroah-Hartman};
6560d4ae8dSGreg Kroah-Hartman
66f14e0394SJiri Slabystatic unsigned short ctrl_map[NR_KEYS] = {
6760d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf000,	0xf01b,	0xf01c,	0xf01d,	0xf01e,
6860d4ae8dSGreg Kroah-Hartman	0xf01f,	0xf07f,	0xf200,	0xf200,	0xf01f,	0xf200,	0xf008,	0xf200,
6960d4ae8dSGreg Kroah-Hartman	0xf011,	0xf017,	0xf005,	0xf012,	0xf014,	0xf019,	0xf015,	0xf009,
7060d4ae8dSGreg Kroah-Hartman	0xf00f,	0xf010,	0xf01b,	0xf01d,	0xf201,	0xf702,	0xf001,	0xf013,
7160d4ae8dSGreg Kroah-Hartman	0xf004,	0xf006,	0xf007,	0xf008,	0xf00a,	0xf00b,	0xf00c,	0xf200,
7260d4ae8dSGreg Kroah-Hartman	0xf007,	0xf000,	0xf700,	0xf01c,	0xf01a,	0xf018,	0xf003,	0xf016,
7360d4ae8dSGreg Kroah-Hartman	0xf002,	0xf00e,	0xf00d,	0xf200,	0xf20e,	0xf07f,	0xf700,	0xf30c,
7460d4ae8dSGreg Kroah-Hartman	0xf703,	0xf000,	0xf207,	0xf100,	0xf101,	0xf102,	0xf103,	0xf104,
7560d4ae8dSGreg Kroah-Hartman	0xf105,	0xf106,	0xf107,	0xf108,	0xf109,	0xf208,	0xf204,	0xf307,
7660d4ae8dSGreg Kroah-Hartman	0xf308,	0xf309,	0xf30b,	0xf304,	0xf305,	0xf306,	0xf30a,	0xf301,
7760d4ae8dSGreg Kroah-Hartman	0xf302,	0xf303,	0xf300,	0xf310,	0xf206,	0xf200,	0xf200,	0xf10a,
7860d4ae8dSGreg Kroah-Hartman	0xf10b,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
7960d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf01c,	0xf701,	0xf205,	0xf114,	0xf603,
8060d4ae8dSGreg Kroah-Hartman	0xf118,	0xf601,	0xf602,	0xf117,	0xf600,	0xf119,	0xf115,	0xf116,
8160d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
8260d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
8360d4ae8dSGreg Kroah-Hartman};
8460d4ae8dSGreg Kroah-Hartman
85f14e0394SJiri Slabystatic unsigned short shift_ctrl_map[NR_KEYS] = {
8660d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf000,	0xf200,	0xf200,	0xf200,	0xf200,
8760d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf01f,	0xf200,	0xf200,	0xf200,
8860d4ae8dSGreg Kroah-Hartman	0xf011,	0xf017,	0xf005,	0xf012,	0xf014,	0xf019,	0xf015,	0xf009,
8960d4ae8dSGreg Kroah-Hartman	0xf00f,	0xf010,	0xf200,	0xf200,	0xf201,	0xf702,	0xf001,	0xf013,
9060d4ae8dSGreg Kroah-Hartman	0xf004,	0xf006,	0xf007,	0xf008,	0xf00a,	0xf00b,	0xf00c,	0xf200,
9160d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf700,	0xf200,	0xf01a,	0xf018,	0xf003,	0xf016,
9260d4ae8dSGreg Kroah-Hartman	0xf002,	0xf00e,	0xf00d,	0xf200,	0xf200,	0xf200,	0xf700,	0xf30c,
9360d4ae8dSGreg Kroah-Hartman	0xf703,	0xf200,	0xf207,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
9460d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf208,	0xf200,	0xf307,
9560d4ae8dSGreg Kroah-Hartman	0xf308,	0xf309,	0xf30b,	0xf304,	0xf305,	0xf306,	0xf30a,	0xf301,
9660d4ae8dSGreg Kroah-Hartman	0xf302,	0xf303,	0xf300,	0xf310,	0xf206,	0xf200,	0xf200,	0xf200,
9760d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
9860d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf200,	0xf701,	0xf205,	0xf114,	0xf603,
9960d4ae8dSGreg Kroah-Hartman	0xf118,	0xf601,	0xf602,	0xf117,	0xf600,	0xf119,	0xf115,	0xf116,
10060d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
10160d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
10260d4ae8dSGreg Kroah-Hartman};
10360d4ae8dSGreg Kroah-Hartman
104f14e0394SJiri Slabystatic unsigned short alt_map[NR_KEYS] = {
10560d4ae8dSGreg Kroah-Hartman	0xf200,	0xf81b,	0xf831,	0xf832,	0xf833,	0xf834,	0xf835,	0xf836,
10660d4ae8dSGreg Kroah-Hartman	0xf837,	0xf838,	0xf839,	0xf830,	0xf82d,	0xf83d,	0xf87f,	0xf809,
10760d4ae8dSGreg Kroah-Hartman	0xf871,	0xf877,	0xf865,	0xf872,	0xf874,	0xf879,	0xf875,	0xf869,
10860d4ae8dSGreg Kroah-Hartman	0xf86f,	0xf870,	0xf85b,	0xf85d,	0xf80d,	0xf702,	0xf861,	0xf873,
10960d4ae8dSGreg Kroah-Hartman	0xf864,	0xf866,	0xf867,	0xf868,	0xf86a,	0xf86b,	0xf86c,	0xf83b,
11060d4ae8dSGreg Kroah-Hartman	0xf827,	0xf860,	0xf700,	0xf85c,	0xf87a,	0xf878,	0xf863,	0xf876,
11160d4ae8dSGreg Kroah-Hartman	0xf862,	0xf86e,	0xf86d,	0xf82c,	0xf82e,	0xf82f,	0xf700,	0xf30c,
11260d4ae8dSGreg Kroah-Hartman	0xf703,	0xf820,	0xf207,	0xf500,	0xf501,	0xf502,	0xf503,	0xf504,
11360d4ae8dSGreg Kroah-Hartman	0xf505,	0xf506,	0xf507,	0xf508,	0xf509,	0xf208,	0xf209,	0xf907,
11460d4ae8dSGreg Kroah-Hartman	0xf908,	0xf909,	0xf30b,	0xf904,	0xf905,	0xf906,	0xf30a,	0xf901,
11560d4ae8dSGreg Kroah-Hartman	0xf902,	0xf903,	0xf900,	0xf310,	0xf206,	0xf200,	0xf83c,	0xf50a,
11660d4ae8dSGreg Kroah-Hartman	0xf50b,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
11760d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf01c,	0xf701,	0xf205,	0xf114,	0xf603,
11860d4ae8dSGreg Kroah-Hartman	0xf118,	0xf210,	0xf211,	0xf117,	0xf600,	0xf119,	0xf115,	0xf116,
11960d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
12060d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
12160d4ae8dSGreg Kroah-Hartman};
12260d4ae8dSGreg Kroah-Hartman
123f14e0394SJiri Slabystatic unsigned short ctrl_alt_map[NR_KEYS] = {
12460d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
12560d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
12660d4ae8dSGreg Kroah-Hartman	0xf811,	0xf817,	0xf805,	0xf812,	0xf814,	0xf819,	0xf815,	0xf809,
12760d4ae8dSGreg Kroah-Hartman	0xf80f,	0xf810,	0xf200,	0xf200,	0xf201,	0xf702,	0xf801,	0xf813,
12860d4ae8dSGreg Kroah-Hartman	0xf804,	0xf806,	0xf807,	0xf808,	0xf80a,	0xf80b,	0xf80c,	0xf200,
12960d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf700,	0xf200,	0xf81a,	0xf818,	0xf803,	0xf816,
13060d4ae8dSGreg Kroah-Hartman	0xf802,	0xf80e,	0xf80d,	0xf200,	0xf200,	0xf200,	0xf700,	0xf30c,
13160d4ae8dSGreg Kroah-Hartman	0xf703,	0xf200,	0xf207,	0xf500,	0xf501,	0xf502,	0xf503,	0xf504,
13260d4ae8dSGreg Kroah-Hartman	0xf505,	0xf506,	0xf507,	0xf508,	0xf509,	0xf208,	0xf200,	0xf307,
13360d4ae8dSGreg Kroah-Hartman	0xf308,	0xf309,	0xf30b,	0xf304,	0xf305,	0xf306,	0xf30a,	0xf301,
13460d4ae8dSGreg Kroah-Hartman	0xf302,	0xf303,	0xf300,	0xf20c,	0xf206,	0xf200,	0xf200,	0xf50a,
13560d4ae8dSGreg Kroah-Hartman	0xf50b,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
13660d4ae8dSGreg Kroah-Hartman	0xf30e,	0xf702,	0xf30d,	0xf200,	0xf701,	0xf205,	0xf114,	0xf603,
13760d4ae8dSGreg Kroah-Hartman	0xf118,	0xf601,	0xf602,	0xf117,	0xf600,	0xf119,	0xf115,	0xf20c,
13860d4ae8dSGreg Kroah-Hartman	0xf11a,	0xf10c,	0xf10d,	0xf11b,	0xf11c,	0xf110,	0xf311,	0xf11d,
13960d4ae8dSGreg Kroah-Hartman	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
14060d4ae8dSGreg Kroah-Hartman};
14160d4ae8dSGreg Kroah-Hartman
142*0d49ee83SJiri Slabyunsigned short *key_maps[MAX_NR_KEYMAPS] = {
14360d4ae8dSGreg Kroah-Hartman	plain_map, shift_map, altgr_map, NULL,
14460d4ae8dSGreg Kroah-Hartman	ctrl_map, shift_ctrl_map, NULL, NULL,
14560d4ae8dSGreg Kroah-Hartman	alt_map, NULL, NULL, NULL,
14660d4ae8dSGreg Kroah-Hartman	ctrl_alt_map, NULL
14760d4ae8dSGreg Kroah-Hartman};
14860d4ae8dSGreg Kroah-Hartman
14960d4ae8dSGreg Kroah-Hartmanunsigned int keymap_count = 7;
15060d4ae8dSGreg Kroah-Hartman
15160d4ae8dSGreg Kroah-Hartman/*
15260d4ae8dSGreg Kroah-Hartman * Philosophy: most people do not define more strings, but they who do
15360d4ae8dSGreg Kroah-Hartman * often want quite a lot of string space. So, we statically allocate
15460d4ae8dSGreg Kroah-Hartman * the default and allocate dynamically in chunks of 512 bytes.
15560d4ae8dSGreg Kroah-Hartman */
15660d4ae8dSGreg Kroah-Hartman
15760d4ae8dSGreg Kroah-Hartmanchar func_buf[] = {
15860d4ae8dSGreg Kroah-Hartman	'\033', '[', '[', 'A', 0,
15960d4ae8dSGreg Kroah-Hartman	'\033', '[', '[', 'B', 0,
16060d4ae8dSGreg Kroah-Hartman	'\033', '[', '[', 'C', 0,
16160d4ae8dSGreg Kroah-Hartman	'\033', '[', '[', 'D', 0,
16260d4ae8dSGreg Kroah-Hartman	'\033', '[', '[', 'E', 0,
16360d4ae8dSGreg Kroah-Hartman	'\033', '[', '1', '7', '~', 0,
16460d4ae8dSGreg Kroah-Hartman	'\033', '[', '1', '8', '~', 0,
16560d4ae8dSGreg Kroah-Hartman	'\033', '[', '1', '9', '~', 0,
16660d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '0', '~', 0,
16760d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '1', '~', 0,
16860d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '3', '~', 0,
16960d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '4', '~', 0,
17060d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '5', '~', 0,
17160d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '6', '~', 0,
17260d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '8', '~', 0,
17360d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '9', '~', 0,
17460d4ae8dSGreg Kroah-Hartman	'\033', '[', '3', '1', '~', 0,
17560d4ae8dSGreg Kroah-Hartman	'\033', '[', '3', '2', '~', 0,
17660d4ae8dSGreg Kroah-Hartman	'\033', '[', '3', '3', '~', 0,
17760d4ae8dSGreg Kroah-Hartman	'\033', '[', '3', '4', '~', 0,
17860d4ae8dSGreg Kroah-Hartman	'\033', '[', '1', '~', 0,
17960d4ae8dSGreg Kroah-Hartman	'\033', '[', '2', '~', 0,
18060d4ae8dSGreg Kroah-Hartman	'\033', '[', '3', '~', 0,
18160d4ae8dSGreg Kroah-Hartman	'\033', '[', '4', '~', 0,
18260d4ae8dSGreg Kroah-Hartman	'\033', '[', '5', '~', 0,
18360d4ae8dSGreg Kroah-Hartman	'\033', '[', '6', '~', 0,
18460d4ae8dSGreg Kroah-Hartman	'\033', '[', 'M', 0,
18560d4ae8dSGreg Kroah-Hartman	'\033', '[', 'P', 0,
18660d4ae8dSGreg Kroah-Hartman};
18760d4ae8dSGreg Kroah-Hartman
18860d4ae8dSGreg Kroah-Hartmanchar *funcbufptr = func_buf;
18960d4ae8dSGreg Kroah-Hartmanint funcbufsize = sizeof(func_buf);
19060d4ae8dSGreg Kroah-Hartmanint funcbufleft = 0;          /* space left */
19160d4ae8dSGreg Kroah-Hartman
19260d4ae8dSGreg Kroah-Hartmanchar *func_table[MAX_NR_FUNC] = {
19360d4ae8dSGreg Kroah-Hartman	func_buf + 0,
19460d4ae8dSGreg Kroah-Hartman	func_buf + 5,
19560d4ae8dSGreg Kroah-Hartman	func_buf + 10,
19660d4ae8dSGreg Kroah-Hartman	func_buf + 15,
19760d4ae8dSGreg Kroah-Hartman	func_buf + 20,
19860d4ae8dSGreg Kroah-Hartman	func_buf + 25,
19960d4ae8dSGreg Kroah-Hartman	func_buf + 31,
20060d4ae8dSGreg Kroah-Hartman	func_buf + 37,
20160d4ae8dSGreg Kroah-Hartman	func_buf + 43,
20260d4ae8dSGreg Kroah-Hartman	func_buf + 49,
20360d4ae8dSGreg Kroah-Hartman	func_buf + 55,
20460d4ae8dSGreg Kroah-Hartman	func_buf + 61,
20560d4ae8dSGreg Kroah-Hartman	func_buf + 67,
20660d4ae8dSGreg Kroah-Hartman	func_buf + 73,
20760d4ae8dSGreg Kroah-Hartman	func_buf + 79,
20860d4ae8dSGreg Kroah-Hartman	func_buf + 85,
20960d4ae8dSGreg Kroah-Hartman	func_buf + 91,
21060d4ae8dSGreg Kroah-Hartman	func_buf + 97,
21160d4ae8dSGreg Kroah-Hartman	func_buf + 103,
21260d4ae8dSGreg Kroah-Hartman	func_buf + 109,
21360d4ae8dSGreg Kroah-Hartman	func_buf + 115,
21460d4ae8dSGreg Kroah-Hartman	func_buf + 120,
21560d4ae8dSGreg Kroah-Hartman	func_buf + 125,
21660d4ae8dSGreg Kroah-Hartman	func_buf + 130,
21760d4ae8dSGreg Kroah-Hartman	func_buf + 135,
21860d4ae8dSGreg Kroah-Hartman	func_buf + 140,
21960d4ae8dSGreg Kroah-Hartman	func_buf + 145,
22060d4ae8dSGreg Kroah-Hartman	NULL,
22160d4ae8dSGreg Kroah-Hartman	NULL,
22260d4ae8dSGreg Kroah-Hartman	func_buf + 149,
22360d4ae8dSGreg Kroah-Hartman	NULL,
22460d4ae8dSGreg Kroah-Hartman};
22560d4ae8dSGreg Kroah-Hartman
22660d4ae8dSGreg Kroah-Hartmanstruct kbdiacruc accent_table[MAX_DIACR] = {
227e81de384SJiri Slaby	{'`', 'A', 0x00c0},	{'`', 'a', 0x00e0},
228e81de384SJiri Slaby	{'\'', 'A', 0x00c1},	{'\'', 'a', 0x00e1},
229e81de384SJiri Slaby	{'^', 'A', 0x00c2},	{'^', 'a', 0x00e2},
230e81de384SJiri Slaby	{'~', 'A', 0x00c3},	{'~', 'a', 0x00e3},
231e81de384SJiri Slaby	{'"', 'A', 0x00c4},	{'"', 'a', 0x00e4},
232e81de384SJiri Slaby	{'O', 'A', 0x00c5},	{'o', 'a', 0x00e5},
233e81de384SJiri Slaby	{'0', 'A', 0x00c5},	{'0', 'a', 0x00e5},
234e81de384SJiri Slaby	{'A', 'A', 0x00c5},	{'a', 'a', 0x00e5},
235e81de384SJiri Slaby	{'A', 'E', 0x00c6},	{'a', 'e', 0x00e6},
236e81de384SJiri Slaby	{',', 'C', 0x00c7},	{',', 'c', 0x00e7},
237e81de384SJiri Slaby	{'`', 'E', 0x00c8},	{'`', 'e', 0x00e8},
238e81de384SJiri Slaby	{'\'', 'E', 0x00c9},	{'\'', 'e', 0x00e9},
239e81de384SJiri Slaby	{'^', 'E', 0x00ca},	{'^', 'e', 0x00ea},
240e81de384SJiri Slaby	{'"', 'E', 0x00cb},	{'"', 'e', 0x00eb},
241e81de384SJiri Slaby	{'`', 'I', 0x00cc},	{'`', 'i', 0x00ec},
242e81de384SJiri Slaby	{'\'', 'I', 0x00cd},	{'\'', 'i', 0x00ed},
243e81de384SJiri Slaby	{'^', 'I', 0x00ce},	{'^', 'i', 0x00ee},
244e81de384SJiri Slaby	{'"', 'I', 0x00cf},	{'"', 'i', 0x00ef},
245e81de384SJiri Slaby	{'-', 'D', 0x00d0},	{'-', 'd', 0x00f0},
246e81de384SJiri Slaby	{'~', 'N', 0x00d1},	{'~', 'n', 0x00f1},
247e81de384SJiri Slaby	{'`', 'O', 0x00d2},	{'`', 'o', 0x00f2},
248e81de384SJiri Slaby	{'\'', 'O', 0x00d3},	{'\'', 'o', 0x00f3},
249e81de384SJiri Slaby	{'^', 'O', 0x00d4},	{'^', 'o', 0x00f4},
250e81de384SJiri Slaby	{'~', 'O', 0x00d5},	{'~', 'o', 0x00f5},
251e81de384SJiri Slaby	{'"', 'O', 0x00d6},	{'"', 'o', 0x00f6},
252e81de384SJiri Slaby	{'/', 'O', 0x00d8},	{'/', 'o', 0x00f8},
253e81de384SJiri Slaby	{'`', 'U', 0x00d9},	{'`', 'u', 0x00f9},
254e81de384SJiri Slaby	{'\'', 'U', 0x00da},	{'\'', 'u', 0x00fa},
255e81de384SJiri Slaby	{'^', 'U', 0x00db},	{'^', 'u', 0x00fb},
256e81de384SJiri Slaby	{'"', 'U', 0x00dc},	{'"', 'u', 0x00fc},
257e81de384SJiri Slaby	{'\'', 'Y', 0x00dd},	{'\'', 'y', 0x00fd},
258e81de384SJiri Slaby	{'T', 'H', 0x00de},	{'t', 'h', 0x00fe},
259e81de384SJiri Slaby	{'s', 's', 0x00df},	{'"', 'y', 0x00ff},
260e81de384SJiri Slaby	{'s', 'z', 0x00df},	{'i', 'j', 0x00ff},
26160d4ae8dSGreg Kroah-Hartman};
26260d4ae8dSGreg Kroah-Hartman
26360d4ae8dSGreg Kroah-Hartmanunsigned int accent_table_size = 68;
264