1263936Sbr/*-
2263936Sbr * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com>
3263936Sbr * All rights reserved.
4263936Sbr *
5263936Sbr * Redistribution and use in source and binary forms, with or without
6263936Sbr * modification, are permitted provided that the following conditions
7263936Sbr * are met:
8263936Sbr * 1. Redistributions of source code must retain the above copyright
9263936Sbr *    notice, this list of conditions and the following disclaimer.
10263936Sbr * 2. Redistributions in binary form must reproduce the above copyright
11263936Sbr *    notice, this list of conditions and the following disclaimer in the
12263936Sbr *    documentation and/or other materials provided with the distribution.
13263936Sbr *
14263936Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15263936Sbr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16263936Sbr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17263936Sbr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18263936Sbr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19263936Sbr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20263936Sbr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21263936Sbr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22263936Sbr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23263936Sbr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24263936Sbr * SUCH DAMAGE.
25263936Sbr *
26263936Sbr * $FreeBSD: releng/11.0/sys/arm/samsung/exynos/chrome_kb.h 266872 2014-05-30 06:45:50Z br $
27263936Sbr */
28263936Sbr
29266872Sbr#include <dev/ofw/openfirm.h>
30266872Sbr
31263936Sbrvoid ckb_ec_intr(void *);
32263936Sbr
33263936Sbr#define	KEYMAP_LEN	75
34263936Sbr
35266872Sbrpcell_t default_keymap[KEYMAP_LEN] = {
36266872Sbr	0x0001007d, /* lmeta */
37266872Sbr	0x0002003b, /* F1 */
38266872Sbr	0x00030030, /* B */
39266872Sbr	0x00040044, /* F10 */
40266872Sbr	0x00060031, /* N */
41266872Sbr	0x0008000d, /* = */
42266872Sbr	0x000a0064, /* ralt */
43263936Sbr
44266872Sbr	0x01010001, /* escape */
45266872Sbr	0x0102003e, /* F4 */
46266872Sbr	0x01030022, /* G */
47266872Sbr	0x01040041, /* F7 */
48266872Sbr	0x01060023, /* H */
49266872Sbr	0x01080028, /* ' */
50266872Sbr	0x01090043, /* F9 */
51266872Sbr	0x010b000e, /* backspace */
52263936Sbr
53266872Sbr	0x0200001d, /* lctrl */
54266872Sbr	0x0201000f, /* tab */
55266872Sbr	0x0202003d, /* F3 */
56266872Sbr	0x02030014, /* t */
57266872Sbr	0x02040040, /* F6 */
58266872Sbr	0x0205001b, /* ] */
59266872Sbr	0x02060015, /* y */
60266872Sbr	0x02070056, /* 102nd */
61266872Sbr	0x0208001a, /* [ */
62266872Sbr	0x02090042, /* F8 */
63263936Sbr
64266872Sbr	0x03010029, /* grave */
65266872Sbr	0x0302003c, /* F2 */
66266872Sbr	0x03030006, /* 5 */
67266872Sbr	0x0304003f, /* F5 */
68266872Sbr	0x03060007, /* 6 */
69266872Sbr	0x0308000c, /* - */
70266872Sbr	0x030b002b, /* \ */
71263936Sbr
72266872Sbr	0x04000061, /* rctrl */
73266872Sbr	0x0401001e, /* a */
74266872Sbr	0x04020020, /* d */
75266872Sbr	0x04030021, /* f */
76266872Sbr	0x0404001f, /* s */
77266872Sbr	0x04050025, /* k */
78266872Sbr	0x04060024, /* j */
79266872Sbr	0x04080027, /* ; */
80266872Sbr	0x04090026, /* l */
81266872Sbr	0x040a002b, /* \ */
82266872Sbr	0x040b001c, /* enter */
83263936Sbr
84266872Sbr	0x0501002c, /* z */
85266872Sbr	0x0502002e, /* c */
86266872Sbr	0x0503002f, /* v */
87266872Sbr	0x0504002d, /* x */
88266872Sbr	0x05050033, /* , */
89266872Sbr	0x05060032, /* m */
90266872Sbr	0x0507002a, /* lsh */
91266872Sbr	0x05080035, /* / */
92266872Sbr	0x05090034, /* . */
93266872Sbr	0x050B0039, /* space */
94263936Sbr
95266872Sbr	0x06010002, /* 1 */
96266872Sbr	0x06020004, /* 3 */
97266872Sbr	0x06030005, /* 4 */
98266872Sbr	0x06040003, /* 2 */
99266872Sbr	0x06050009, /* 8 */
100266872Sbr	0x06060008, /* 7 */
101266872Sbr	0x0608000b, /* 0 */
102266872Sbr	0x0609000a, /* 9 */
103266872Sbr	0x060a0038, /* lalt */
104266872Sbr	0x060b0064, /* down */
105266872Sbr	0x060c0062, /* right */
106263936Sbr
107266872Sbr	0x07010010, /* q */
108266872Sbr	0x07020012, /* e */
109266872Sbr	0x07030013, /* r */
110266872Sbr	0x07040011, /* w */
111266872Sbr	0x07050017, /* i */
112266872Sbr	0x07060016, /* u */
113266872Sbr	0x07070036, /* rsh */
114266872Sbr	0x07080019, /* p */
115266872Sbr	0x07090018, /* o */
116266872Sbr	0x070b005F, /* up */
117266872Sbr	0x070c0061, /* left */
118263936Sbr};
119