1 /* keytable for Terratec Cinergy C PCI Remote Controller
3 * Copyright (c) 2010 by Igor M. Liplianin <liplianin@me.by>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
11 #include <media/rc-map.h>
12 #include <linux/module.h>
14 static struct rc_map_table terratec_cinergy_c_pci
[] = {
25 { 0x34, KEY_VIDEO_NEXT
}, /* AV */
39 { 0x24, KEY_CHANNELUP
},
40 { 0x23, KEY_VOLUMEUP
},
42 { 0x21, KEY_VOLUMEDOWN
},
43 { 0x20, KEY_CHANNELDOWN
},
46 { 0x1d, KEY_MENU
}, /* DVD Menu */
47 { 0x1c, KEY_SUBTITLE
},
48 { 0x1b, KEY_TEXT
}, /* Teletext */
54 { 0x15, KEY_AUDIO
}, /* Music */
55 { 0x14, KEY_SCREEN
}, /* Pic */
59 { 0x10, KEY_FASTFORWARD
},
60 { 0x0b, KEY_PREVIOUS
},
66 static struct rc_map_list terratec_cinergy_c_pci_map
= {
68 .scan
= terratec_cinergy_c_pci
,
69 .size
= ARRAY_SIZE(terratec_cinergy_c_pci
),
70 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
71 .name
= RC_MAP_TERRATEC_CINERGY_C_PCI
,
75 static int __init
init_rc_map_terratec_cinergy_c_pci(void)
77 return rc_map_register(&terratec_cinergy_c_pci_map
);
80 static void __exit
exit_rc_map_terratec_cinergy_c_pci(void)
82 rc_map_unregister(&terratec_cinergy_c_pci_map
);
85 module_init(init_rc_map_terratec_cinergy_c_pci
);
86 module_exit(exit_rc_map_terratec_cinergy_c_pci
);
88 MODULE_LICENSE("GPL");