1 // SPDX-License-Identifier: GPL-2.0+
2 // tevii-nec.h - Keytable for tevii_nec Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table tevii_nec[] = {
25 { 0x0f, KEY_VOLUMEDOWN},
29 { 0x09, KEY_VOLUMEUP},
30 { 0x08, KEY_CHANNELUP},
39 { 0x06, KEY_CHANNELDOWN},
40 { 0x40, KEY_PLAYPAUSE},
42 { 0x1b, KEY_FAVORITES},
44 { 0x4d, KEY_FASTFORWARD},
49 { 0x45, KEY_SUBTITLE},
58 { 0x58, KEY_SWITCHVIDEOMODE},
61 static struct rc_map_list tevii_nec_map = {
64 .size = ARRAY_SIZE(tevii_nec),
65 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
66 .name = RC_MAP_TEVII_NEC,
70 static int __init init_rc_map_tevii_nec(void)
72 return rc_map_register(&tevii_nec_map);
75 static void __exit exit_rc_map_tevii_nec(void)
77 rc_map_unregister(&tevii_nec_map);
80 module_init(init_rc_map_tevii_nec)
81 module_exit(exit_rc_map_tevii_nec)
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Mauro Carvalho Chehab");