This source file includes following definitions.
- init_rc_map_nec_terratec_cinergy_xs
- exit_rc_map_nec_terratec_cinergy_xs
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11
12
13
14
15 static struct rc_map_table nec_terratec_cinergy_xs[] = {
16
17
18 { 0x1441, KEY_HOME},
19 { 0x1401, KEY_POWER2},
20
21 { 0x1442, KEY_MENU},
22 { 0x1443, KEY_SUBTITLE},
23 { 0x1444, KEY_TEXT},
24 { 0x1445, KEY_DELETE},
25
26 { 0x1402, KEY_NUMERIC_1},
27 { 0x1403, KEY_NUMERIC_2},
28 { 0x1404, KEY_NUMERIC_3},
29 { 0x1405, KEY_NUMERIC_4},
30 { 0x1406, KEY_NUMERIC_5},
31 { 0x1407, KEY_NUMERIC_6},
32 { 0x1408, KEY_NUMERIC_7},
33 { 0x1409, KEY_NUMERIC_8},
34 { 0x140a, KEY_NUMERIC_9},
35 { 0x140c, KEY_NUMERIC_0},
36
37 { 0x140b, KEY_TUNER},
38 { 0x140d, KEY_MODE},
39
40 { 0x1446, KEY_TV},
41 { 0x1447, KEY_DVD},
42 { 0x1449, KEY_VIDEO},
43 { 0x144a, KEY_RADIO},
44 { 0x144b, KEY_CAMERA},
45
46 { 0x1410, KEY_UP},
47 { 0x1411, KEY_LEFT},
48 { 0x1412, KEY_OK},
49 { 0x1413, KEY_RIGHT},
50 { 0x1414, KEY_DOWN},
51
52 { 0x140f, KEY_EPG},
53 { 0x1416, KEY_INFO},
54 { 0x144d, KEY_BACKSPACE},
55
56 { 0x141c, KEY_VOLUMEUP},
57 { 0x141e, KEY_VOLUMEDOWN},
58
59 { 0x144c, KEY_PLAY},
60 { 0x141d, KEY_MUTE},
61
62 { 0x141b, KEY_CHANNELUP},
63 { 0x141f, KEY_CHANNELDOWN},
64
65 { 0x1417, KEY_RED},
66 { 0x1418, KEY_GREEN},
67 { 0x1419, KEY_YELLOW},
68 { 0x141a, KEY_BLUE},
69
70 { 0x1458, KEY_RECORD},
71 { 0x1448, KEY_STOP},
72 { 0x1440, KEY_PAUSE},
73
74 { 0x1454, KEY_LAST},
75 { 0x144e, KEY_REWIND},
76 { 0x144f, KEY_FASTFORWARD},
77 { 0x145c, KEY_NEXT},
78
79
80 { 0x04eb01, KEY_POWER2},
81
82 { 0x04eb02, KEY_NUMERIC_1},
83 { 0x04eb03, KEY_NUMERIC_2},
84 { 0x04eb04, KEY_NUMERIC_3},
85 { 0x04eb05, KEY_NUMERIC_4},
86 { 0x04eb06, KEY_NUMERIC_5},
87 { 0x04eb07, KEY_NUMERIC_6},
88 { 0x04eb08, KEY_NUMERIC_7},
89 { 0x04eb09, KEY_NUMERIC_8},
90 { 0x04eb0a, KEY_NUMERIC_9},
91 { 0x04eb0c, KEY_NUMERIC_0},
92
93 { 0x04eb0b, KEY_TEXT},
94 { 0x04eb0d, KEY_REFRESH},
95
96 { 0x04eb0e, KEY_HOME},
97 { 0x04eb0f, KEY_EPG},
98
99 { 0x04eb10, KEY_UP},
100 { 0x04eb11, KEY_LEFT},
101 { 0x04eb12, KEY_OK},
102 { 0x04eb13, KEY_RIGHT},
103 { 0x04eb14, KEY_DOWN},
104
105 { 0x04eb15, KEY_BACKSPACE},
106 { 0x04eb16, KEY_INFO},
107
108 { 0x04eb17, KEY_RED},
109 { 0x04eb18, KEY_GREEN},
110 { 0x04eb19, KEY_YELLOW},
111 { 0x04eb1a, KEY_BLUE},
112
113 { 0x04eb1c, KEY_VOLUMEUP},
114 { 0x04eb1e, KEY_VOLUMEDOWN},
115
116 { 0x04eb1d, KEY_MUTE},
117
118 { 0x04eb1b, KEY_CHANNELUP},
119 { 0x04eb1f, KEY_CHANNELDOWN},
120
121 { 0x04eb40, KEY_RECORD},
122 { 0x04eb4c, KEY_PLAY},
123 { 0x04eb58, KEY_PAUSE},
124
125 { 0x04eb54, KEY_REWIND},
126 { 0x04eb48, KEY_STOP},
127 { 0x04eb5c, KEY_NEXT},
128 };
129
130 static struct rc_map_list nec_terratec_cinergy_xs_map = {
131 .map = {
132 .scan = nec_terratec_cinergy_xs,
133 .size = ARRAY_SIZE(nec_terratec_cinergy_xs),
134 .rc_proto = RC_PROTO_NEC,
135 .name = RC_MAP_NEC_TERRATEC_CINERGY_XS,
136 }
137 };
138
139 static int __init init_rc_map_nec_terratec_cinergy_xs(void)
140 {
141 return rc_map_register(&nec_terratec_cinergy_xs_map);
142 }
143
144 static void __exit exit_rc_map_nec_terratec_cinergy_xs(void)
145 {
146 rc_map_unregister(&nec_terratec_cinergy_xs_map);
147 }
148
149 module_init(init_rc_map_nec_terratec_cinergy_xs)
150 module_exit(exit_rc_map_nec_terratec_cinergy_xs)
151
152 MODULE_LICENSE("GPL");
153 MODULE_AUTHOR("Mauro Carvalho Chehab");