1 // SPDX-License-Identifier: GPL-2.0+
2 // nebula.h - Keytable for nebula Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table nebula[] = {
12 { 0x0000, KEY_NUMERIC_0 },
13 { 0x0001, KEY_NUMERIC_1 },
14 { 0x0002, KEY_NUMERIC_2 },
15 { 0x0003, KEY_NUMERIC_3 },
16 { 0x0004, KEY_NUMERIC_4 },
17 { 0x0005, KEY_NUMERIC_5 },
18 { 0x0006, KEY_NUMERIC_6 },
19 { 0x0007, KEY_NUMERIC_7 },
20 { 0x0008, KEY_NUMERIC_8 },
21 { 0x0009, KEY_NUMERIC_9 },
25 { 0x000d, KEY_POWER },
26 { 0x000e, KEY_CAMERA }, /* labelled 'Picture' */
27 { 0x000f, KEY_AUDIO },
29 { 0x0011, KEY_F13 }, /* 16:9 */
30 { 0x0012, KEY_F14 }, /* 14:9 */
37 { 0x0019, KEY_RIGHT },
38 { 0x001a, KEY_ENTER },
39 { 0x001b, KEY_CHANNELUP },
40 { 0x001c, KEY_CHANNELDOWN },
41 { 0x001d, KEY_VOLUMEUP },
42 { 0x001e, KEY_VOLUMEDOWN },
44 { 0x0020, KEY_GREEN },
45 { 0x0021, KEY_YELLOW },
47 { 0x0023, KEY_SUBTITLE },
48 { 0x0024, KEY_F15 }, /* AD */
51 { 0x0027, KEY_REWIND },
54 { 0x002a, KEY_FASTFORWARD },
55 { 0x002b, KEY_F16 }, /* chapter */
56 { 0x002c, KEY_PAUSE },
58 { 0x002e, KEY_RECORD },
59 { 0x002f, KEY_F17 }, /* picture in picture */
60 { 0x0030, KEY_KPPLUS }, /* zoom in */
61 { 0x0031, KEY_KPMINUS }, /* zoom out */
62 { 0x0032, KEY_F18 }, /* capture */
63 { 0x0033, KEY_F19 }, /* web */
64 { 0x0034, KEY_EMAIL },
65 { 0x0035, KEY_PHONE },
69 static struct rc_map_list nebula_map = {
72 .size = ARRAY_SIZE(nebula),
73 .rc_proto = RC_PROTO_RC5,
74 .name = RC_MAP_NEBULA,
78 static int __init init_rc_map_nebula(void)
80 return rc_map_register(&nebula_map);
83 static void __exit exit_rc_map_nebula(void)
85 rc_map_unregister(&nebula_map);
88 module_init(init_rc_map_nebula)
89 module_exit(exit_rc_map_nebula)
91 MODULE_LICENSE("GPL");
92 MODULE_AUTHOR("Mauro Carvalho Chehab");