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
},
16 { 0x05, KEY_NUMERIC_1
},
17 { 0x06, KEY_NUMERIC_2
},
18 { 0x07, KEY_NUMERIC_3
},
19 { 0x08, KEY_CHANNELUP
},
20 { 0x09, KEY_NUMERIC_4
},
21 { 0x0a, KEY_NUMERIC_5
},
22 { 0x0b, KEY_NUMERIC_6
},
23 { 0x0c, KEY_CHANNELDOWN
},
24 { 0x0d, KEY_NUMERIC_7
},
25 { 0x0e, KEY_NUMERIC_8
},
26 { 0x0f, KEY_NUMERIC_9
},
27 { 0x10, KEY_VOLUMEUP
},
28 { 0x11, KEY_NUMERIC_0
},
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");