18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci/* Do not edit this file! It was automatically generated by   */
48c2ecf20Sopenharmony_ci/*    loadkeys --mktable defkeymap.map > defkeymap.c          */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/types.h>
78c2ecf20Sopenharmony_ci#include <linux/keyboard.h>
88c2ecf20Sopenharmony_ci#include <linux/kd.h>
98c2ecf20Sopenharmony_ci#include <linux/kbd_kern.h>
108c2ecf20Sopenharmony_ci#include <linux/kbd_diacr.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include "keyboard.h"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciu_short ebc_plain_map[NR_KEYS] = {
158c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
168c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
178c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
188c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
198c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
208c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
218c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
228c2ecf20Sopenharmony_ci	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,	0xf000,
238c2ecf20Sopenharmony_ci	0xf020,	0xf000,	0xf0e2,	0xf0e4,	0xf0e0,	0xf0e1,	0xf0e3,	0xf0e5,
248c2ecf20Sopenharmony_ci	0xf0e7,	0xf0f1,	0xf0a2,	0xf02e,	0xf03c,	0xf028,	0xf02b,	0xf07c,
258c2ecf20Sopenharmony_ci	0xf026,	0xf0e9,	0xf0e2,	0xf0eb,	0xf0e8,	0xf0ed,	0xf0ee,	0xf0ef,
268c2ecf20Sopenharmony_ci	0xf0ec,	0xf0df,	0xf021,	0xf024,	0xf02a,	0xf029,	0xf03b,	0xf0ac,
278c2ecf20Sopenharmony_ci	0xf02d,	0xf02f,	0xf0c2,	0xf0c4,	0xf0c0,	0xf0c1,	0xf0c3,	0xf0c5,
288c2ecf20Sopenharmony_ci	0xf0c7,	0xf0d1,	0xf0a6,	0xf02c,	0xf025,	0xf05f,	0xf03e,	0xf03f,
298c2ecf20Sopenharmony_ci	0xf0f8,	0xf0c9,	0xf0ca,	0xf0cb,	0xf0c8,	0xf0cd,	0xf0ce,	0xf0cf,
308c2ecf20Sopenharmony_ci	0xf0cc,	0xf060,	0xf03a,	0xf023,	0xf040,	0xf027,	0xf03d,	0xf022,
318c2ecf20Sopenharmony_ci};
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_cistatic u_short shift_map[NR_KEYS] = {
348c2ecf20Sopenharmony_ci	0xf0d8,	0xf061,	0xf062,	0xf063,	0xf064,	0xf065,	0xf066,	0xf067,
358c2ecf20Sopenharmony_ci	0xf068,	0xf069,	0xf0ab,	0xf0bb,	0xf0f0,	0xf0fd,	0xf0fe,	0xf0b1,
368c2ecf20Sopenharmony_ci	0xf0b0,	0xf06a,	0xf06b,	0xf06c,	0xf06d,	0xf06e,	0xf06f,	0xf070,
378c2ecf20Sopenharmony_ci	0xf071,	0xf072,	0xf000,	0xf000,	0xf0e6,	0xf0b8,	0xf0c6,	0xf0a4,
388c2ecf20Sopenharmony_ci	0xf0b5,	0xf07e,	0xf073,	0xf074,	0xf075,	0xf076,	0xf077,	0xf078,
398c2ecf20Sopenharmony_ci	0xf079,	0xf07a,	0xf0a1,	0xf0bf,	0xf0d0,	0xf0dd,	0xf0de,	0xf0ae,
408c2ecf20Sopenharmony_ci	0xf402,	0xf0a3,	0xf0a5,	0xf0b7,	0xf0a9,	0xf0a7,	0xf0b6,	0xf0bc,
418c2ecf20Sopenharmony_ci	0xf0bd,	0xf0be,	0xf05b,	0xf05d,	0xf000,	0xf0a8,	0xf0b4,	0xf0d7,
428c2ecf20Sopenharmony_ci	0xf07b,	0xf041,	0xf042,	0xf043,	0xf044,	0xf045,	0xf046,	0xf047,
438c2ecf20Sopenharmony_ci	0xf048,	0xf049,	0xf000,	0xf0f4,	0xf0f6,	0xf0f2,	0xf0f3,	0xf0f5,
448c2ecf20Sopenharmony_ci	0xf07d,	0xf04a,	0xf04b,	0xf04c,	0xf04d,	0xf04e,	0xf04f,	0xf050,
458c2ecf20Sopenharmony_ci	0xf051,	0xf052,	0xf0b9,	0xf0fb,	0xf0fc,	0xf0f9,	0xf0fa,	0xf0ff,
468c2ecf20Sopenharmony_ci	0xf05c,	0xf0f7,	0xf053,	0xf054,	0xf055,	0xf056,	0xf057,	0xf058,
478c2ecf20Sopenharmony_ci	0xf059,	0xf05a,	0xf0b2,	0xf0d4,	0xf0d6,	0xf0d2,	0xf0d3,	0xf0d5,
488c2ecf20Sopenharmony_ci	0xf030,	0xf031,	0xf032,	0xf033,	0xf034,	0xf035,	0xf036,	0xf037,
498c2ecf20Sopenharmony_ci	0xf038,	0xf039,	0xf0b3,	0xf0db,	0xf0dc,	0xf0d9,	0xf0da,	0xf000,
508c2ecf20Sopenharmony_ci};
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_cistatic u_short ctrl_map[NR_KEYS] = {
538c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
548c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
558c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
568c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
578c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
588c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
598c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
608c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
618c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
628c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf11f,	0xf120,	0xf121,	0xf200,	0xf200,	0xf200,
638c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
648c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
658c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
668c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf01a,	0xf003,	0xf212,	0xf004,	0xf200,
678c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
688c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf109,	0xf10a,	0xf206,	0xf00a,	0xf200,	0xf200,
698c2ecf20Sopenharmony_ci};
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_cistatic u_short shift_ctrl_map[NR_KEYS] = {
728c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
738c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
748c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
758c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
768c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
778c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
788c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
798c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
808c2ecf20Sopenharmony_ci	0xf200,	0xf10c,	0xf10d,	0xf10e,	0xf10f,	0xf110,	0xf111,	0xf112,
818c2ecf20Sopenharmony_ci	0xf113,	0xf11e,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
828c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
838c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
848c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
858c2ecf20Sopenharmony_ci	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
868c2ecf20Sopenharmony_ci	0xf200,	0xf100,	0xf101,	0xf211,	0xf103,	0xf104,	0xf105,	0xf20b,
878c2ecf20Sopenharmony_ci	0xf20a,	0xf108,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,	0xf200,
888c2ecf20Sopenharmony_ci};
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ciushort *ebc_key_maps[MAX_NR_KEYMAPS] = {
918c2ecf20Sopenharmony_ci	ebc_plain_map, shift_map, NULL, NULL,
928c2ecf20Sopenharmony_ci	ctrl_map, shift_ctrl_map, NULL,
938c2ecf20Sopenharmony_ci};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ciunsigned int ebc_keymap_count = 4;
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci/*
998c2ecf20Sopenharmony_ci * Philosophy: most people do not define more strings, but they who do
1008c2ecf20Sopenharmony_ci * often want quite a lot of string space. So, we statically allocate
1018c2ecf20Sopenharmony_ci * the default and allocate dynamically in chunks of 512 bytes.
1028c2ecf20Sopenharmony_ci */
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_cichar ebc_func_buf[] = {
1058c2ecf20Sopenharmony_ci	'\033', '[', '[', 'A', 0,
1068c2ecf20Sopenharmony_ci	'\033', '[', '[', 'B', 0,
1078c2ecf20Sopenharmony_ci	'\033', '[', '[', 'C', 0,
1088c2ecf20Sopenharmony_ci	'\033', '[', '[', 'D', 0,
1098c2ecf20Sopenharmony_ci	'\033', '[', '[', 'E', 0,
1108c2ecf20Sopenharmony_ci	'\033', '[', '1', '7', '~', 0,
1118c2ecf20Sopenharmony_ci	'\033', '[', '1', '8', '~', 0,
1128c2ecf20Sopenharmony_ci	'\033', '[', '1', '9', '~', 0,
1138c2ecf20Sopenharmony_ci	'\033', '[', '2', '0', '~', 0,
1148c2ecf20Sopenharmony_ci	'\033', '[', '2', '1', '~', 0,
1158c2ecf20Sopenharmony_ci	'\033', '[', '2', '3', '~', 0,
1168c2ecf20Sopenharmony_ci	'\033', '[', '2', '4', '~', 0,
1178c2ecf20Sopenharmony_ci	'\033', '[', '2', '5', '~', 0,
1188c2ecf20Sopenharmony_ci	'\033', '[', '2', '6', '~', 0,
1198c2ecf20Sopenharmony_ci	'\033', '[', '2', '8', '~', 0,
1208c2ecf20Sopenharmony_ci	'\033', '[', '2', '9', '~', 0,
1218c2ecf20Sopenharmony_ci	'\033', '[', '3', '1', '~', 0,
1228c2ecf20Sopenharmony_ci	'\033', '[', '3', '2', '~', 0,
1238c2ecf20Sopenharmony_ci	'\033', '[', '3', '3', '~', 0,
1248c2ecf20Sopenharmony_ci	'\033', '[', '3', '4', '~', 0,
1258c2ecf20Sopenharmony_ci};
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_cichar *ebc_funcbufptr = ebc_func_buf;
1298c2ecf20Sopenharmony_ciint ebc_funcbufsize = sizeof(ebc_func_buf);
1308c2ecf20Sopenharmony_ciint ebc_funcbufleft;		/* space left */
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_cichar *ebc_func_table[MAX_NR_FUNC] = {
1338c2ecf20Sopenharmony_ci	ebc_func_buf + 0,
1348c2ecf20Sopenharmony_ci	ebc_func_buf + 5,
1358c2ecf20Sopenharmony_ci	ebc_func_buf + 10,
1368c2ecf20Sopenharmony_ci	ebc_func_buf + 15,
1378c2ecf20Sopenharmony_ci	ebc_func_buf + 20,
1388c2ecf20Sopenharmony_ci	ebc_func_buf + 25,
1398c2ecf20Sopenharmony_ci	ebc_func_buf + 31,
1408c2ecf20Sopenharmony_ci	ebc_func_buf + 37,
1418c2ecf20Sopenharmony_ci	ebc_func_buf + 43,
1428c2ecf20Sopenharmony_ci	ebc_func_buf + 49,
1438c2ecf20Sopenharmony_ci	ebc_func_buf + 55,
1448c2ecf20Sopenharmony_ci	ebc_func_buf + 61,
1458c2ecf20Sopenharmony_ci	ebc_func_buf + 67,
1468c2ecf20Sopenharmony_ci	ebc_func_buf + 73,
1478c2ecf20Sopenharmony_ci	ebc_func_buf + 79,
1488c2ecf20Sopenharmony_ci	ebc_func_buf + 85,
1498c2ecf20Sopenharmony_ci	ebc_func_buf + 91,
1508c2ecf20Sopenharmony_ci	ebc_func_buf + 97,
1518c2ecf20Sopenharmony_ci	ebc_func_buf + 103,
1528c2ecf20Sopenharmony_ci	ebc_func_buf + 109,
1538c2ecf20Sopenharmony_ci	NULL,
1548c2ecf20Sopenharmony_ci};
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_cistruct kbdiacruc ebc_accent_table[MAX_DIACR] = {
1578c2ecf20Sopenharmony_ci	{'^', 'c', 0003},	{'^', 'd', 0004},
1588c2ecf20Sopenharmony_ci	{'^', 'z', 0032},	{'^', 0012, 0000},
1598c2ecf20Sopenharmony_ci};
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ciunsigned int ebc_accent_table_size = 4;
162