This source file includes following definitions.
- init_rc_map_iodata_bctv7e
- exit_rc_map_iodata_bctv7e
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11
12
13 static struct rc_map_table iodata_bctv7e[] = {
14 { 0x40, KEY_TV },
15 { 0x20, KEY_RADIO },
16 { 0x60, KEY_EPG },
17 { 0x00, KEY_POWER },
18
19
20 { 0x44, KEY_NUMERIC_0 },
21 { 0x50, KEY_NUMERIC_1 },
22 { 0x30, KEY_NUMERIC_2 },
23 { 0x70, KEY_NUMERIC_3 },
24 { 0x48, KEY_NUMERIC_4 },
25 { 0x28, KEY_NUMERIC_5 },
26 { 0x68, KEY_NUMERIC_6 },
27 { 0x58, KEY_NUMERIC_7 },
28 { 0x38, KEY_NUMERIC_8 },
29 { 0x78, KEY_NUMERIC_9 },
30
31 { 0x10, KEY_L },
32 { 0x08, KEY_TIME },
33
34 { 0x18, KEY_PLAYPAUSE },
35
36 { 0x24, KEY_ENTER },
37 { 0x64, KEY_ESC },
38 { 0x04, KEY_M },
39
40 { 0x54, KEY_VIDEO },
41 { 0x34, KEY_CHANNELUP },
42 { 0x74, KEY_VOLUMEUP },
43 { 0x14, KEY_MUTE },
44
45 { 0x4c, KEY_VCR },
46 { 0x2c, KEY_CHANNELDOWN },
47 { 0x6c, KEY_VOLUMEDOWN },
48 { 0x0c, KEY_ZOOM },
49
50 { 0x5c, KEY_PAUSE },
51 { 0x3c, KEY_RED },
52 { 0x7c, KEY_RECORD },
53 { 0x1c, KEY_STOP },
54
55 { 0x41, KEY_REWIND },
56 { 0x21, KEY_PLAY },
57 { 0x61, KEY_FASTFORWARD },
58 { 0x01, KEY_NEXT },
59 };
60
61 static struct rc_map_list iodata_bctv7e_map = {
62 .map = {
63 .scan = iodata_bctv7e,
64 .size = ARRAY_SIZE(iodata_bctv7e),
65 .rc_proto = RC_PROTO_UNKNOWN,
66 .name = RC_MAP_IODATA_BCTV7E,
67 }
68 };
69
70 static int __init init_rc_map_iodata_bctv7e(void)
71 {
72 return rc_map_register(&iodata_bctv7e_map);
73 }
74
75 static void __exit exit_rc_map_iodata_bctv7e(void)
76 {
77 rc_map_unregister(&iodata_bctv7e_map);
78 }
79
80 module_init(init_rc_map_iodata_bctv7e)
81 module_exit(exit_rc_map_iodata_bctv7e)
82
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Mauro Carvalho Chehab");