1
2
3
4
5
6
7
8
9
10
11
12
13#include <media/rc-map.h>
14#include <linux/module.h>
15
16static struct rc_map_table nebula[] = {
17 { 0x00, KEY_0 },
18 { 0x01, KEY_1 },
19 { 0x02, KEY_2 },
20 { 0x03, KEY_3 },
21 { 0x04, KEY_4 },
22 { 0x05, KEY_5 },
23 { 0x06, KEY_6 },
24 { 0x07, KEY_7 },
25 { 0x08, KEY_8 },
26 { 0x09, KEY_9 },
27 { 0x0a, KEY_TV },
28 { 0x0b, KEY_AUX },
29 { 0x0c, KEY_DVD },
30 { 0x0d, KEY_POWER },
31 { 0x0e, KEY_CAMERA },
32 { 0x0f, KEY_AUDIO },
33 { 0x10, KEY_INFO },
34 { 0x11, KEY_F13 },
35 { 0x12, KEY_F14 },
36 { 0x13, KEY_EPG },
37 { 0x14, KEY_EXIT },
38 { 0x15, KEY_MENU },
39 { 0x16, KEY_UP },
40 { 0x17, KEY_DOWN },
41 { 0x18, KEY_LEFT },
42 { 0x19, KEY_RIGHT },
43 { 0x1a, KEY_ENTER },
44 { 0x1b, KEY_CHANNELUP },
45 { 0x1c, KEY_CHANNELDOWN },
46 { 0x1d, KEY_VOLUMEUP },
47 { 0x1e, KEY_VOLUMEDOWN },
48 { 0x1f, KEY_RED },
49 { 0x20, KEY_GREEN },
50 { 0x21, KEY_YELLOW },
51 { 0x22, KEY_BLUE },
52 { 0x23, KEY_SUBTITLE },
53 { 0x24, KEY_F15 },
54 { 0x25, KEY_TEXT },
55 { 0x26, KEY_MUTE },
56 { 0x27, KEY_REWIND },
57 { 0x28, KEY_STOP },
58 { 0x29, KEY_PLAY },
59 { 0x2a, KEY_FASTFORWARD },
60 { 0x2b, KEY_F16 },
61 { 0x2c, KEY_PAUSE },
62 { 0x2d, KEY_PLAY },
63 { 0x2e, KEY_RECORD },
64 { 0x2f, KEY_F17 },
65 { 0x30, KEY_KPPLUS },
66 { 0x31, KEY_KPMINUS },
67 { 0x32, KEY_F18 },
68 { 0x33, KEY_F19 },
69 { 0x34, KEY_EMAIL },
70 { 0x35, KEY_PHONE },
71 { 0x36, KEY_PC },
72};
73
74static struct rc_map_list nebula_map = {
75 .map = {
76 .scan = nebula,
77 .size = ARRAY_SIZE(nebula),
78 .rc_type = RC_TYPE_UNKNOWN,
79 .name = RC_MAP_NEBULA,
80 }
81};
82
83static int __init init_rc_map_nebula(void)
84{
85 return rc_map_register(&nebula_map);
86}
87
88static void __exit exit_rc_map_nebula(void)
89{
90 rc_map_unregister(&nebula_map);
91}
92
93module_init(init_rc_map_nebula)
94module_exit(exit_rc_map_nebula)
95
96MODULE_LICENSE("GPL");
97MODULE_AUTHOR("Mauro Carvalho Chehab");
98