V4L/DVB: ir-core: Make use of the new IR keymap modules
[safe/jmp/linux-2.6] / include / media / keycodes / budget-ci-old.h
1 /* budget-ci-old.h - Keytable for budget_ci_old Remote Controller
2  *
3  * Imported from ir-keymaps.c
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  */
10
11 /* From reading the following remotes:
12  * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
13  * Hauppauge (from NOVA-CI-s box product)
14  * This is a "middle of the road" approach, differences are noted
15  */
16
17 #ifdef IR_KEYMAPS
18 static struct ir_scancode budget_ci_old[] = {
19         { 0x00, KEY_0 },
20         { 0x01, KEY_1 },
21         { 0x02, KEY_2 },
22         { 0x03, KEY_3 },
23         { 0x04, KEY_4 },
24         { 0x05, KEY_5 },
25         { 0x06, KEY_6 },
26         { 0x07, KEY_7 },
27         { 0x08, KEY_8 },
28         { 0x09, KEY_9 },
29         { 0x0a, KEY_ENTER },
30         { 0x0b, KEY_RED },
31         { 0x0c, KEY_POWER },            /* RADIO on Hauppauge */
32         { 0x0d, KEY_MUTE },
33         { 0x0f, KEY_A },                /* TV on Hauppauge */
34         { 0x10, KEY_VOLUMEUP },
35         { 0x11, KEY_VOLUMEDOWN },
36         { 0x14, KEY_B },
37         { 0x1c, KEY_UP },
38         { 0x1d, KEY_DOWN },
39         { 0x1e, KEY_OPTION },           /* RESERVED on Hauppauge */
40         { 0x1f, KEY_BREAK },
41         { 0x20, KEY_CHANNELUP },
42         { 0x21, KEY_CHANNELDOWN },
43         { 0x22, KEY_PREVIOUS },         /* Prev Ch on Zenith, SOURCE on Hauppauge */
44         { 0x24, KEY_RESTART },
45         { 0x25, KEY_OK },
46         { 0x26, KEY_CYCLEWINDOWS },     /* MINIMIZE on Hauppauge */
47         { 0x28, KEY_ENTER },            /* VCR mode on Zenith */
48         { 0x29, KEY_PAUSE },
49         { 0x2b, KEY_RIGHT },
50         { 0x2c, KEY_LEFT },
51         { 0x2e, KEY_MENU },             /* FULL SCREEN on Hauppauge */
52         { 0x30, KEY_SLOW },
53         { 0x31, KEY_PREVIOUS },         /* VCR mode on Zenith */
54         { 0x32, KEY_REWIND },
55         { 0x34, KEY_FASTFORWARD },
56         { 0x35, KEY_PLAY },
57         { 0x36, KEY_STOP },
58         { 0x37, KEY_RECORD },
59         { 0x38, KEY_TUNER },            /* TV/VCR on Zenith */
60         { 0x3a, KEY_C },
61         { 0x3c, KEY_EXIT },
62         { 0x3d, KEY_POWER2 },
63         { 0x3e, KEY_TUNER },
64 };
65 DEFINE_LEGACY_IR_KEYTABLE(budget_ci_old);
66 #else
67 DECLARE_IR_KEYTABLE(budget_ci_old);
68 #endif