0001
0002
0003
0004
0005
0006
0007
0008 #include <media/rc-map.h>
0009 #include <linux/module.h>
0010
0011 static struct rc_map_table geekbox[] = {
0012 { 0x01, KEY_BACK },
0013 { 0x02, KEY_DOWN },
0014 { 0x03, KEY_UP },
0015 { 0x07, KEY_OK },
0016 { 0x0b, KEY_VOLUMEUP },
0017 { 0x0e, KEY_LEFT },
0018 { 0x13, KEY_MENU },
0019 { 0x14, KEY_POWER },
0020 { 0x1a, KEY_RIGHT },
0021 { 0x48, KEY_HOME },
0022 { 0x58, KEY_VOLUMEDOWN },
0023 { 0x5c, KEY_SCREEN },
0024 };
0025
0026 static struct rc_map_list geekbox_map = {
0027 .map = {
0028 .scan = geekbox,
0029 .size = ARRAY_SIZE(geekbox),
0030 .rc_proto = RC_PROTO_NEC,
0031 .name = RC_MAP_GEEKBOX,
0032 }
0033 };
0034
0035 static int __init init_rc_map_geekbox(void)
0036 {
0037 return rc_map_register(&geekbox_map);
0038 }
0039
0040 static void __exit exit_rc_map_geekbox(void)
0041 {
0042 rc_map_unregister(&geekbox_map);
0043 }
0044
0045 module_init(init_rc_map_geekbox)
0046 module_exit(exit_rc_map_geekbox)
0047
0048 MODULE_LICENSE("GPL");
0049 MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>");