- patches.arch/x86_mce_intel_decode_physical_address.patch:
[linux-flexiantxendom0-3.2.10.git] / drivers / media / IR / keymaps / rc-nebula.c
1 /* nebula.h - Keytable for nebula Remote Controller
2  *
3  * keymap imported from ir-keymaps.c
4  *
5  * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6  *
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.
11  */
12
13 #include <media/rc-map.h>
14
15 static struct ir_scancode nebula[] = {
16         { 0x00, KEY_0 },
17         { 0x01, KEY_1 },
18         { 0x02, KEY_2 },
19         { 0x03, KEY_3 },
20         { 0x04, KEY_4 },
21         { 0x05, KEY_5 },
22         { 0x06, KEY_6 },
23         { 0x07, KEY_7 },
24         { 0x08, KEY_8 },
25         { 0x09, KEY_9 },
26         { 0x0a, KEY_TV },
27         { 0x0b, KEY_AUX },
28         { 0x0c, KEY_DVD },
29         { 0x0d, KEY_POWER },
30         { 0x0e, KEY_MHP },      /* labelled 'Picture' */
31         { 0x0f, KEY_AUDIO },
32         { 0x10, KEY_INFO },
33         { 0x11, KEY_F13 },      /* 16:9 */
34         { 0x12, KEY_F14 },      /* 14:9 */
35         { 0x13, KEY_EPG },
36         { 0x14, KEY_EXIT },
37         { 0x15, KEY_MENU },
38         { 0x16, KEY_UP },
39         { 0x17, KEY_DOWN },
40         { 0x18, KEY_LEFT },
41         { 0x19, KEY_RIGHT },
42         { 0x1a, KEY_ENTER },
43         { 0x1b, KEY_CHANNELUP },
44         { 0x1c, KEY_CHANNELDOWN },
45         { 0x1d, KEY_VOLUMEUP },
46         { 0x1e, KEY_VOLUMEDOWN },
47         { 0x1f, KEY_RED },
48         { 0x20, KEY_GREEN },
49         { 0x21, KEY_YELLOW },
50         { 0x22, KEY_BLUE },
51         { 0x23, KEY_SUBTITLE },
52         { 0x24, KEY_F15 },      /* AD */
53         { 0x25, KEY_TEXT },
54         { 0x26, KEY_MUTE },
55         { 0x27, KEY_REWIND },
56         { 0x28, KEY_STOP },
57         { 0x29, KEY_PLAY },
58         { 0x2a, KEY_FASTFORWARD },
59         { 0x2b, KEY_F16 },      /* chapter */
60         { 0x2c, KEY_PAUSE },
61         { 0x2d, KEY_PLAY },
62         { 0x2e, KEY_RECORD },
63         { 0x2f, KEY_F17 },      /* picture in picture */
64         { 0x30, KEY_KPPLUS },   /* zoom in */
65         { 0x31, KEY_KPMINUS },  /* zoom out */
66         { 0x32, KEY_F18 },      /* capture */
67         { 0x33, KEY_F19 },      /* web */
68         { 0x34, KEY_EMAIL },
69         { 0x35, KEY_PHONE },
70         { 0x36, KEY_PC },
71 };
72
73 static struct rc_keymap nebula_map = {
74         .map = {
75                 .scan    = nebula,
76                 .size    = ARRAY_SIZE(nebula),
77                 .ir_type = IR_TYPE_UNKNOWN,     /* Legacy IR type */
78                 .name    = RC_MAP_NEBULA,
79         }
80 };
81
82 static int __init init_rc_map_nebula(void)
83 {
84         return ir_register_map(&nebula_map);
85 }
86
87 static void __exit exit_rc_map_nebula(void)
88 {
89         ir_unregister_map(&nebula_map);
90 }
91
92 module_init(init_rc_map_nebula)
93 module_exit(exit_rc_map_nebula)
94
95 MODULE_LICENSE("GPL");
96 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");