1 /* nebula.h - Keytable for nebula Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 static struct rc_map_table nebula[] = {
30 { 0x000d, KEY_POWER },
31 { 0x000e, KEY_CAMERA }, /* labelled 'Picture' */
32 { 0x000f, KEY_AUDIO },
34 { 0x0011, KEY_F13 }, /* 16:9 */
35 { 0x0012, KEY_F14 }, /* 14:9 */
42 { 0x0019, KEY_RIGHT },
43 { 0x001a, KEY_ENTER },
44 { 0x001b, KEY_CHANNELUP },
45 { 0x001c, KEY_CHANNELDOWN },
46 { 0x001d, KEY_VOLUMEUP },
47 { 0x001e, KEY_VOLUMEDOWN },
49 { 0x0020, KEY_GREEN },
50 { 0x0021, KEY_YELLOW },
52 { 0x0023, KEY_SUBTITLE },
53 { 0x0024, KEY_F15 }, /* AD */
56 { 0x0027, KEY_REWIND },
59 { 0x002a, KEY_FASTFORWARD },
60 { 0x002b, KEY_F16 }, /* chapter */
61 { 0x002c, KEY_PAUSE },
63 { 0x002e, KEY_RECORD },
64 { 0x002f, KEY_F17 }, /* picture in picture */
65 { 0x0030, KEY_KPPLUS }, /* zoom in */
66 { 0x0031, KEY_KPMINUS }, /* zoom out */
67 { 0x0032, KEY_F18 }, /* capture */
68 { 0x0033, KEY_F19 }, /* web */
69 { 0x0034, KEY_EMAIL },
70 { 0x0035, KEY_PHONE },
74 static struct rc_map_list nebula_map = {
77 .size = ARRAY_SIZE(nebula),
78 .rc_type = RC_TYPE_RC5,
79 .name = RC_MAP_NEBULA,
83 static int __init init_rc_map_nebula(void)
85 return rc_map_register(&nebula_map);
88 static void __exit exit_rc_map_nebula(void)
90 rc_map_unregister(&nebula_map);
93 module_init(init_rc_map_nebula)
94 module_exit(exit_rc_map_nebula)
96 MODULE_LICENSE("GPL");
97 MODULE_AUTHOR("Mauro Carvalho Chehab");