1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // dm1105-nec.h - Keytable for dm1105_nec Remote Controller
3688c73c6SMauro Carvalho Chehab //
4688c73c6SMauro Carvalho Chehab // keymap imported from ir-keymaps.c
5688c73c6SMauro Carvalho Chehab //
6688c73c6SMauro Carvalho Chehab // Copyright (c) 2010 by Mauro Carvalho Chehab
732cf86f6SMauro Carvalho Chehab
832cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
97a707b89SPaul Gortmaker #include <linux/module.h>
1032cf86f6SMauro Carvalho Chehab
1132cf86f6SMauro Carvalho Chehab /* DVBWorld remotes
1232cf86f6SMauro Carvalho Chehab Igor M. Liplianin <liplianin@me.by>
1332cf86f6SMauro Carvalho Chehab */
1432cf86f6SMauro Carvalho Chehab
152f4f58d6SMauro Carvalho Chehab static struct rc_map_table dm1105_nec[] = {
1632cf86f6SMauro Carvalho Chehab { 0x0a, KEY_POWER2}, /* power */
1732cf86f6SMauro Carvalho Chehab { 0x0c, KEY_MUTE}, /* mute */
18*1910ea42SBastien Nocera { 0x11, KEY_NUMERIC_1},
19*1910ea42SBastien Nocera { 0x12, KEY_NUMERIC_2},
20*1910ea42SBastien Nocera { 0x13, KEY_NUMERIC_3},
21*1910ea42SBastien Nocera { 0x14, KEY_NUMERIC_4},
22*1910ea42SBastien Nocera { 0x15, KEY_NUMERIC_5},
23*1910ea42SBastien Nocera { 0x16, KEY_NUMERIC_6},
24*1910ea42SBastien Nocera { 0x17, KEY_NUMERIC_7},
25*1910ea42SBastien Nocera { 0x18, KEY_NUMERIC_8},
26*1910ea42SBastien Nocera { 0x19, KEY_NUMERIC_9},
27*1910ea42SBastien Nocera { 0x10, KEY_NUMERIC_0},
2832cf86f6SMauro Carvalho Chehab { 0x1c, KEY_CHANNELUP}, /* ch+ */
2932cf86f6SMauro Carvalho Chehab { 0x0f, KEY_CHANNELDOWN}, /* ch- */
3032cf86f6SMauro Carvalho Chehab { 0x1a, KEY_VOLUMEUP}, /* vol+ */
3132cf86f6SMauro Carvalho Chehab { 0x0e, KEY_VOLUMEDOWN}, /* vol- */
3232cf86f6SMauro Carvalho Chehab { 0x04, KEY_RECORD}, /* rec */
3332cf86f6SMauro Carvalho Chehab { 0x09, KEY_CHANNEL}, /* fav */
3432cf86f6SMauro Carvalho Chehab { 0x08, KEY_BACKSPACE}, /* rewind */
3532cf86f6SMauro Carvalho Chehab { 0x07, KEY_FASTFORWARD}, /* fast */
3632cf86f6SMauro Carvalho Chehab { 0x0b, KEY_PAUSE}, /* pause */
3732cf86f6SMauro Carvalho Chehab { 0x02, KEY_ESC}, /* cancel */
3832cf86f6SMauro Carvalho Chehab { 0x03, KEY_TAB}, /* tab */
3932cf86f6SMauro Carvalho Chehab { 0x00, KEY_UP}, /* up */
4032cf86f6SMauro Carvalho Chehab { 0x1f, KEY_ENTER}, /* ok */
4132cf86f6SMauro Carvalho Chehab { 0x01, KEY_DOWN}, /* down */
4232cf86f6SMauro Carvalho Chehab { 0x05, KEY_RECORD}, /* cap */
4332cf86f6SMauro Carvalho Chehab { 0x06, KEY_STOP}, /* stop */
4432cf86f6SMauro Carvalho Chehab { 0x40, KEY_ZOOM}, /* full */
4532cf86f6SMauro Carvalho Chehab { 0x1e, KEY_TV}, /* tvmode */
4632cf86f6SMauro Carvalho Chehab { 0x1b, KEY_B}, /* recall */
4732cf86f6SMauro Carvalho Chehab };
4832cf86f6SMauro Carvalho Chehab
49d100e659SMauro Carvalho Chehab static struct rc_map_list dm1105_nec_map = {
5032cf86f6SMauro Carvalho Chehab .map = {
5132cf86f6SMauro Carvalho Chehab .scan = dm1105_nec,
5232cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(dm1105_nec),
536d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
5432cf86f6SMauro Carvalho Chehab .name = RC_MAP_DM1105_NEC,
5532cf86f6SMauro Carvalho Chehab }
5632cf86f6SMauro Carvalho Chehab };
5732cf86f6SMauro Carvalho Chehab
init_rc_map_dm1105_nec(void)5832cf86f6SMauro Carvalho Chehab static int __init init_rc_map_dm1105_nec(void)
5932cf86f6SMauro Carvalho Chehab {
60d100e659SMauro Carvalho Chehab return rc_map_register(&dm1105_nec_map);
6132cf86f6SMauro Carvalho Chehab }
6232cf86f6SMauro Carvalho Chehab
exit_rc_map_dm1105_nec(void)6332cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_dm1105_nec(void)
6432cf86f6SMauro Carvalho Chehab {
65d100e659SMauro Carvalho Chehab rc_map_unregister(&dm1105_nec_map);
6632cf86f6SMauro Carvalho Chehab }
6732cf86f6SMauro Carvalho Chehab
6832cf86f6SMauro Carvalho Chehab module_init(init_rc_map_dm1105_nec)
6932cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_dm1105_nec)
7032cf86f6SMauro Carvalho Chehab
7132cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
7237e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
73