]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/arm/samsung/exynos/chrome_kb.h
Change POSIX compliance level for visibility of strerror_l(3).
[FreeBSD/FreeBSD.git] / sys / arm / samsung / exynos / chrome_kb.h
1 /*-
2  * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  *
26  * $FreeBSD$
27  */
28
29 #include <dev/ofw/openfirm.h>
30
31 void ckb_ec_intr(void *);
32
33 #define KEYMAP_LEN      75
34
35 pcell_t default_keymap[KEYMAP_LEN] = {
36         0x0001007d, /* lmeta */
37         0x0002003b, /* F1 */
38         0x00030030, /* B */
39         0x00040044, /* F10 */
40         0x00060031, /* N */
41         0x0008000d, /* = */
42         0x000a0064, /* ralt */
43
44         0x01010001, /* escape */
45         0x0102003e, /* F4 */
46         0x01030022, /* G */
47         0x01040041, /* F7 */
48         0x01060023, /* H */
49         0x01080028, /* ' */
50         0x01090043, /* F9 */
51         0x010b000e, /* backspace */
52
53         0x0200001d, /* lctrl */
54         0x0201000f, /* tab */
55         0x0202003d, /* F3 */
56         0x02030014, /* t */
57         0x02040040, /* F6 */
58         0x0205001b, /* ] */
59         0x02060015, /* y */
60         0x02070056, /* 102nd */
61         0x0208001a, /* [ */
62         0x02090042, /* F8 */
63
64         0x03010029, /* grave */
65         0x0302003c, /* F2 */
66         0x03030006, /* 5 */
67         0x0304003f, /* F5 */
68         0x03060007, /* 6 */
69         0x0308000c, /* - */
70         0x030b002b, /* \ */
71
72         0x04000061, /* rctrl */
73         0x0401001e, /* a */
74         0x04020020, /* d */
75         0x04030021, /* f */
76         0x0404001f, /* s */
77         0x04050025, /* k */
78         0x04060024, /* j */
79         0x04080027, /* ; */
80         0x04090026, /* l */
81         0x040a002b, /* \ */
82         0x040b001c, /* enter */
83
84         0x0501002c, /* z */
85         0x0502002e, /* c */
86         0x0503002f, /* v */
87         0x0504002d, /* x */
88         0x05050033, /* , */
89         0x05060032, /* m */
90         0x0507002a, /* lsh */
91         0x05080035, /* / */
92         0x05090034, /* . */
93         0x050B0039, /* space */
94
95         0x06010002, /* 1 */
96         0x06020004, /* 3 */
97         0x06030005, /* 4 */
98         0x06040003, /* 2 */
99         0x06050009, /* 8 */
100         0x06060008, /* 7 */
101         0x0608000b, /* 0 */
102         0x0609000a, /* 9 */
103         0x060a0038, /* lalt */
104         0x060b0064, /* down */
105         0x060c0062, /* right */
106
107         0x07010010, /* q */
108         0x07020012, /* e */
109         0x07030013, /* r */
110         0x07040011, /* w */
111         0x07050017, /* i */
112         0x07060016, /* u */
113         0x07070036, /* rsh */
114         0x07080019, /* p */
115         0x07090018, /* o */
116         0x070b005F, /* up */
117         0x070c0061, /* left */
118 };