This source file includes following definitions.
- init_rc_map_adstech_dvb_t_pci
- exit_rc_map_adstech_dvb_t_pci
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 adstech_dvb_t_pci[] = {
14
15 { 0x4d, KEY_NUMERIC_0 },
16 { 0x57, KEY_NUMERIC_1 },
17 { 0x4f, KEY_NUMERIC_2 },
18 { 0x53, KEY_NUMERIC_3 },
19 { 0x56, KEY_NUMERIC_4 },
20 { 0x4e, KEY_NUMERIC_5 },
21 { 0x5e, KEY_NUMERIC_6 },
22 { 0x54, KEY_NUMERIC_7 },
23 { 0x4c, KEY_NUMERIC_8 },
24 { 0x5c, KEY_NUMERIC_9 },
25
26 { 0x5b, KEY_POWER },
27 { 0x5f, KEY_MUTE },
28 { 0x55, KEY_GOTO },
29 { 0x5d, KEY_SEARCH },
30 { 0x17, KEY_EPG },
31 { 0x1f, KEY_MENU },
32 { 0x0f, KEY_UP },
33 { 0x46, KEY_DOWN },
34 { 0x16, KEY_LEFT },
35 { 0x1e, KEY_RIGHT },
36 { 0x0e, KEY_SELECT },
37 { 0x5a, KEY_INFO },
38 { 0x52, KEY_EXIT },
39 { 0x59, KEY_PREVIOUS },
40 { 0x51, KEY_NEXT },
41 { 0x58, KEY_REWIND },
42 { 0x50, KEY_FORWARD },
43 { 0x44, KEY_PLAYPAUSE },
44 { 0x07, KEY_STOP },
45 { 0x1b, KEY_RECORD },
46 { 0x13, KEY_TUNER },
47 { 0x0a, KEY_A },
48 { 0x12, KEY_B },
49 { 0x03, KEY_RED },
50 { 0x01, KEY_GREEN },
51 { 0x00, KEY_YELLOW },
52 { 0x06, KEY_DVD },
53 { 0x48, KEY_AUX },
54 { 0x40, KEY_VIDEO },
55 { 0x19, KEY_AUDIO },
56 { 0x0b, KEY_CHANNELUP },
57 { 0x08, KEY_CHANNELDOWN },
58 { 0x15, KEY_VOLUMEUP },
59 { 0x1c, KEY_VOLUMEDOWN },
60 };
61
62 static struct rc_map_list adstech_dvb_t_pci_map = {
63 .map = {
64 .scan = adstech_dvb_t_pci,
65 .size = ARRAY_SIZE(adstech_dvb_t_pci),
66 .rc_proto = RC_PROTO_UNKNOWN,
67 .name = RC_MAP_ADSTECH_DVB_T_PCI,
68 }
69 };
70
71 static int __init init_rc_map_adstech_dvb_t_pci(void)
72 {
73 return rc_map_register(&adstech_dvb_t_pci_map);
74 }
75
76 static void __exit exit_rc_map_adstech_dvb_t_pci(void)
77 {
78 rc_map_unregister(&adstech_dvb_t_pci_map);
79 }
80
81 module_init(init_rc_map_adstech_dvb_t_pci)
82 module_exit(exit_rc_map_adstech_dvb_t_pci)
83
84 MODULE_LICENSE("GPL");
85 MODULE_AUTHOR("Mauro Carvalho Chehab");