PM / sleep: Asynchronous threads for suspend_noirq
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-em-terratec.c
blobd1fcd64c0f90360f344155e6d7ef1b84ecba3109
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>
14 #include <linux/module.h>
16 static struct rc_map_table em_terratec[] = {
17 { 0x01, KEY_CHANNEL },
18 { 0x02, KEY_SELECT },
19 { 0x03, KEY_MUTE },
20 { 0x04, KEY_POWER },
21 { 0x05, KEY_1 },
22 { 0x06, KEY_2 },
23 { 0x07, KEY_3 },
24 { 0x08, KEY_CHANNELUP },
25 { 0x09, KEY_4 },
26 { 0x0a, KEY_5 },
27 { 0x0b, KEY_6 },
28 { 0x0c, KEY_CHANNELDOWN },
29 { 0x0d, KEY_7 },
30 { 0x0e, KEY_8 },
31 { 0x0f, KEY_9 },
32 { 0x10, KEY_VOLUMEUP },
33 { 0x11, KEY_0 },
34 { 0x12, KEY_MENU },
35 { 0x13, KEY_PRINT },
36 { 0x14, KEY_VOLUMEDOWN },
37 { 0x16, KEY_PAUSE },
38 { 0x18, KEY_RECORD },
39 { 0x19, KEY_REWIND },
40 { 0x1a, KEY_PLAY },
41 { 0x1b, KEY_FORWARD },
42 { 0x1c, KEY_BACKSPACE },
43 { 0x1e, KEY_STOP },
44 { 0x40, KEY_ZOOM },
47 static struct rc_map_list em_terratec_map = {
48 .map = {
49 .scan = em_terratec,
50 .size = ARRAY_SIZE(em_terratec),
51 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
52 .name = RC_MAP_EM_TERRATEC,
56 static int __init init_rc_map_em_terratec(void)
58 return rc_map_register(&em_terratec_map);
61 static void __exit exit_rc_map_em_terratec(void)
63 rc_map_unregister(&em_terratec_map);
66 module_init(init_rc_map_em_terratec)
67 module_exit(exit_rc_map_em_terratec)
69 MODULE_LICENSE("GPL");
70 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");