- patches.arch/x86_mce_intel_decode_physical_address.patch:
[linux-flexiantxendom0-3.2.10.git] / drivers / media / IR / keymaps / rc-budget-ci-old.c
1 /* budget-ci-old.h - Keytable for budget_ci_old 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 /* From reading the following remotes:
16  * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
17  * Hauppauge (from NOVA-CI-s box product)
18  * This is a "middle of the road" approach, differences are noted
19  */
20
21 static struct ir_scancode budget_ci_old[] = {
22         { 0x00, KEY_0 },
23         { 0x01, KEY_1 },
24         { 0x02, KEY_2 },
25         { 0x03, KEY_3 },
26         { 0x04, KEY_4 },
27         { 0x05, KEY_5 },
28         { 0x06, KEY_6 },
29         { 0x07, KEY_7 },
30         { 0x08, KEY_8 },
31         { 0x09, KEY_9 },
32         { 0x0a, KEY_ENTER },
33         { 0x0b, KEY_RED },
34         { 0x0c, KEY_POWER },            /* RADIO on Hauppauge */
35         { 0x0d, KEY_MUTE },
36         { 0x0f, KEY_A },                /* TV on Hauppauge */
37         { 0x10, KEY_VOLUMEUP },
38         { 0x11, KEY_VOLUMEDOWN },
39         { 0x14, KEY_B },
40         { 0x1c, KEY_UP },
41         { 0x1d, KEY_DOWN },
42         { 0x1e, KEY_OPTION },           /* RESERVED on Hauppauge */
43         { 0x1f, KEY_BREAK },
44         { 0x20, KEY_CHANNELUP },
45         { 0x21, KEY_CHANNELDOWN },
46         { 0x22, KEY_PREVIOUS },         /* Prev Ch on Zenith, SOURCE on Hauppauge */
47         { 0x24, KEY_RESTART },
48         { 0x25, KEY_OK },
49         { 0x26, KEY_CYCLEWINDOWS },     /* MINIMIZE on Hauppauge */
50         { 0x28, KEY_ENTER },            /* VCR mode on Zenith */
51         { 0x29, KEY_PAUSE },
52         { 0x2b, KEY_RIGHT },
53         { 0x2c, KEY_LEFT },
54         { 0x2e, KEY_MENU },             /* FULL SCREEN on Hauppauge */
55         { 0x30, KEY_SLOW },
56         { 0x31, KEY_PREVIOUS },         /* VCR mode on Zenith */
57         { 0x32, KEY_REWIND },
58         { 0x34, KEY_FASTFORWARD },
59         { 0x35, KEY_PLAY },
60         { 0x36, KEY_STOP },
61         { 0x37, KEY_RECORD },
62         { 0x38, KEY_TUNER },            /* TV/VCR on Zenith */
63         { 0x3a, KEY_C },
64         { 0x3c, KEY_EXIT },
65         { 0x3d, KEY_POWER2 },
66         { 0x3e, KEY_TUNER },
67 };
68
69 static struct rc_keymap budget_ci_old_map = {
70         .map = {
71                 .scan    = budget_ci_old,
72                 .size    = ARRAY_SIZE(budget_ci_old),
73                 .ir_type = IR_TYPE_UNKNOWN,     /* Legacy IR type */
74                 .name    = RC_MAP_BUDGET_CI_OLD,
75         }
76 };
77
78 static int __init init_rc_map_budget_ci_old(void)
79 {
80         return ir_register_map(&budget_ci_old_map);
81 }
82
83 static void __exit exit_rc_map_budget_ci_old(void)
84 {
85         ir_unregister_map(&budget_ci_old_map);
86 }
87
88 module_init(init_rc_map_budget_ci_old)
89 module_exit(exit_rc_map_budget_ci_old)
90
91 MODULE_LICENSE("GPL");
92 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");