1 /* nec-terratec-cinergy-xs.h - Keytable for nec_terratec_cinergy_xs Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
15 /* Terratec Cinergy Hybrid T USB XS FM
16 Mauro Carvalho Chehab <mchehab@redhat.com>
19 static struct rc_map_table nec_terratec_cinergy_xs
[] = {
21 { 0x1401, KEY_POWER2
},
23 { 0x1442, KEY_MENU
}, /* DVD menu */
24 { 0x1443, KEY_SUBTITLE
},
25 { 0x1444, KEY_TEXT
}, /* Teletext */
26 { 0x1445, KEY_DELETE
},
39 { 0x140b, KEY_TUNER
}, /* AV */
40 { 0x140d, KEY_MODE
}, /* A.B */
45 { 0x144a, KEY_RADIO
}, /* Music */
46 { 0x144b, KEY_CAMERA
}, /* PIC */
56 { 0x144d, KEY_BACKSPACE
},
58 { 0x141c, KEY_VOLUMEUP
},
59 { 0x141e, KEY_VOLUMEDOWN
},
64 { 0x141b, KEY_CHANNELUP
},
65 { 0x141f, KEY_CHANNELDOWN
},
69 { 0x1419, KEY_YELLOW
},
72 { 0x1458, KEY_RECORD
},
77 { 0x144e, KEY_REWIND
},
78 { 0x144f, KEY_FASTFORWARD
},
82 static struct rc_map_list nec_terratec_cinergy_xs_map
= {
84 .scan
= nec_terratec_cinergy_xs
,
85 .size
= ARRAY_SIZE(nec_terratec_cinergy_xs
),
86 .rc_type
= RC_TYPE_NEC
,
87 .name
= RC_MAP_NEC_TERRATEC_CINERGY_XS
,
91 static int __init
init_rc_map_nec_terratec_cinergy_xs(void)
93 return rc_map_register(&nec_terratec_cinergy_xs_map
);
96 static void __exit
exit_rc_map_nec_terratec_cinergy_xs(void)
98 rc_map_unregister(&nec_terratec_cinergy_xs_map
);
101 module_init(init_rc_map_nec_terratec_cinergy_xs
)
102 module_exit(exit_rc_map_nec_terratec_cinergy_xs
)
104 MODULE_LICENSE("GPL");
105 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");