This source file includes following definitions.
- init_rc_map_rc5_dvbsky
- exit_rc_map_rc5_dvbsky
1
2
3
4
5
6
7
8
9 #include <media/rc-map.h>
10 #include <linux/module.h>
11
12
13
14
15 static struct rc_map_table rc5_dvbsky[] = {
16 { 0x0000, KEY_NUMERIC_0 },
17 { 0x0001, KEY_NUMERIC_1 },
18 { 0x0002, KEY_NUMERIC_2 },
19 { 0x0003, KEY_NUMERIC_3 },
20 { 0x0004, KEY_NUMERIC_4 },
21 { 0x0005, KEY_NUMERIC_5 },
22 { 0x0006, KEY_NUMERIC_6 },
23 { 0x0007, KEY_NUMERIC_7 },
24 { 0x0008, KEY_NUMERIC_8 },
25 { 0x0009, KEY_NUMERIC_9 },
26 { 0x000a, KEY_MUTE },
27 { 0x000d, KEY_OK },
28 { 0x000b, KEY_STOP },
29 { 0x000c, KEY_EXIT },
30 { 0x000e, KEY_CAMERA },
31 { 0x000f, KEY_SUBTITLE },
32 { 0x0010, KEY_VOLUMEUP },
33 { 0x0011, KEY_VOLUMEDOWN },
34 { 0x0012, KEY_FAVORITES },
35 { 0x0013, KEY_LIST },
36 { 0x0016, KEY_PAUSE },
37 { 0x0017, KEY_PLAY },
38 { 0x001f, KEY_RECORD },
39 { 0x0020, KEY_CHANNELDOWN },
40 { 0x0021, KEY_CHANNELUP },
41 { 0x0025, KEY_POWER2 },
42 { 0x0026, KEY_REWIND },
43 { 0x0027, KEY_FASTFORWARD },
44 { 0x0029, KEY_LAST },
45 { 0x002b, KEY_MENU },
46 { 0x002c, KEY_EPG },
47 { 0x002d, KEY_ZOOM },
48 };
49
50 static struct rc_map_list rc5_dvbsky_map = {
51 .map = {
52 .scan = rc5_dvbsky,
53 .size = ARRAY_SIZE(rc5_dvbsky),
54 .rc_proto = RC_PROTO_RC5,
55 .name = RC_MAP_DVBSKY,
56 }
57 };
58
59 static int __init init_rc_map_rc5_dvbsky(void)
60 {
61 return rc_map_register(&rc5_dvbsky_map);
62 }
63
64 static void __exit exit_rc_map_rc5_dvbsky(void)
65 {
66 rc_map_unregister(&rc5_dvbsky_map);
67 }
68
69 module_init(init_rc_map_rc5_dvbsky)
70 module_exit(exit_rc_map_rc5_dvbsky)
71
72 MODULE_LICENSE("GPL");
73 MODULE_AUTHOR("Nibble Max <nibble.max@gmail.com>");