1 /* em-terratec.h - Keytable for em_terratec 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 static struct ir_scancode em_terratec[] = {
16 { 0x01, KEY_CHANNEL },
23 { 0x08, KEY_CHANNELUP },
27 { 0x0c, KEY_CHANNELDOWN },
31 { 0x10, KEY_VOLUMEUP },
35 { 0x14, KEY_VOLUMEDOWN },
40 { 0x1b, KEY_FORWARD },
41 { 0x1c, KEY_BACKSPACE },
46 static struct rc_keymap em_terratec_map = {
49 .size = ARRAY_SIZE(em_terratec),
50 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
51 .name = RC_MAP_EM_TERRATEC,
55 static int __init init_rc_map_em_terratec(void)
57 return ir_register_map(&em_terratec_map);
60 static void __exit exit_rc_map_em_terratec(void)
62 ir_unregister_map(&em_terratec_map);
65 module_init(init_rc_map_em_terratec)
66 module_exit(exit_rc_map_em_terratec)
68 MODULE_LICENSE("GPL");
69 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");