1 // SPDX-License-Identifier: GPL-2.0+
2 // em-terratec.h - Keytable for em_terratec 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 em_terratec
[] = {
12 { 0x01, KEY_CHANNEL
},
19 { 0x08, KEY_CHANNELUP
},
23 { 0x0c, KEY_CHANNELDOWN
},
27 { 0x10, KEY_VOLUMEUP
},
31 { 0x14, KEY_VOLUMEDOWN
},
36 { 0x1b, KEY_FORWARD
},
37 { 0x1c, KEY_BACKSPACE
},
42 static struct rc_map_list em_terratec_map
= {
45 .size
= ARRAY_SIZE(em_terratec
),
46 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
47 .name
= RC_MAP_EM_TERRATEC
,
51 static int __init
init_rc_map_em_terratec(void)
53 return rc_map_register(&em_terratec_map
);
56 static void __exit
exit_rc_map_em_terratec(void)
58 rc_map_unregister(&em_terratec_map
);
61 module_init(init_rc_map_em_terratec
)
62 module_exit(exit_rc_map_em_terratec
)
64 MODULE_LICENSE("GPL");
65 MODULE_AUTHOR("Mauro Carvalho Chehab");