This source file includes following definitions.
- init_rc_map_kworld_pc150u
- exit_rc_map_kworld_pc150u
1
2
3
4
5
6
7
8
9
10
11 #include <media/rc-map.h>
12 #include <linux/module.h>
13
14
15
16
17
18 static struct rc_map_table kworld_pc150u[] = {
19 { 0x0c, KEY_MEDIA },
20 { 0x16, KEY_EJECTCLOSECD },
21 { 0x1d, KEY_POWER2 },
22
23 { 0x00, KEY_NUMERIC_1 },
24 { 0x01, KEY_NUMERIC_2 },
25 { 0x02, KEY_NUMERIC_3 },
26 { 0x03, KEY_NUMERIC_4 },
27 { 0x04, KEY_NUMERIC_5 },
28 { 0x05, KEY_NUMERIC_6 },
29 { 0x06, KEY_NUMERIC_7 },
30 { 0x07, KEY_NUMERIC_8 },
31 { 0x08, KEY_NUMERIC_9 },
32 { 0x0a, KEY_NUMERIC_0 },
33
34 { 0x09, KEY_AGAIN },
35 { 0x14, KEY_MUTE },
36
37 { 0x1e, KEY_LAST },
38 { 0x17, KEY_ZOOM },
39 { 0x1f, KEY_HOMEPAGE },
40 { 0x0e, KEY_ESC },
41
42 { 0x20, KEY_UP },
43 { 0x21, KEY_DOWN },
44 { 0x42, KEY_LEFT },
45 { 0x43, KEY_RIGHT },
46 { 0x0b, KEY_ENTER },
47
48 { 0x10, KEY_CHANNELUP },
49 { 0x11, KEY_CHANNELDOWN },
50
51 { 0x13, KEY_VOLUMEUP },
52 { 0x12, KEY_VOLUMEDOWN },
53
54 { 0x19, KEY_TIME},
55 { 0x1a, KEY_STOP},
56 { 0x1b, KEY_RECORD},
57 { 0x4b, KEY_EMAIL},
58
59 { 0x40, KEY_REWIND},
60 { 0x44, KEY_PLAYPAUSE},
61 { 0x41, KEY_FORWARD},
62 { 0x22, KEY_TEXT},
63
64 { 0x15, KEY_AUDIO},
65 { 0x0f, KEY_MODE},
66 { 0x1c, KEY_SYSRQ},
67 { 0x4a, KEY_SLEEP},
68
69 { 0x48, KEY_SOUND},
70 { 0x49, KEY_BLUE},
71 { 0x18, KEY_RED},
72 { 0x23, KEY_GREEN},
73 };
74
75 static struct rc_map_list kworld_pc150u_map = {
76 .map = {
77 .scan = kworld_pc150u,
78 .size = ARRAY_SIZE(kworld_pc150u),
79 .rc_proto = RC_PROTO_UNKNOWN,
80 .name = RC_MAP_KWORLD_PC150U,
81 }
82 };
83
84 static int __init init_rc_map_kworld_pc150u(void)
85 {
86 return rc_map_register(&kworld_pc150u_map);
87 }
88
89 static void __exit exit_rc_map_kworld_pc150u(void)
90 {
91 rc_map_unregister(&kworld_pc150u_map);
92 }
93
94 module_init(init_rc_map_kworld_pc150u)
95 module_exit(exit_rc_map_kworld_pc150u)
96
97 MODULE_LICENSE("GPL");
98 MODULE_AUTHOR("Kyle Strickland <kyle@kyle.strickland.name>");