blob: 4c50f33c7c41d0de85e5805e2a651b83265a67e5 [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* nebula.h - Keytable for nebula Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -02005 * Copyright (c) 2010 by Mauro Carvalho Chehab
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03006 *
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>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040014#include <linux/module.h>
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030015
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030016static struct rc_map_table nebula[] = {
David Härdeman2886f012014-04-03 20:31:20 -030017 { 0x0000, KEY_0 },
18 { 0x0001, KEY_1 },
19 { 0x0002, KEY_2 },
20 { 0x0003, KEY_3 },
21 { 0x0004, KEY_4 },
22 { 0x0005, KEY_5 },
23 { 0x0006, KEY_6 },
24 { 0x0007, KEY_7 },
25 { 0x0008, KEY_8 },
26 { 0x0009, KEY_9 },
27 { 0x000a, KEY_TV },
28 { 0x000b, KEY_AUX },
29 { 0x000c, KEY_DVD },
30 { 0x000d, KEY_POWER },
31 { 0x000e, KEY_CAMERA }, /* labelled 'Picture' */
32 { 0x000f, KEY_AUDIO },
33 { 0x0010, KEY_INFO },
34 { 0x0011, KEY_F13 }, /* 16:9 */
35 { 0x0012, KEY_F14 }, /* 14:9 */
36 { 0x0013, KEY_EPG },
37 { 0x0014, KEY_EXIT },
38 { 0x0015, KEY_MENU },
39 { 0x0016, KEY_UP },
40 { 0x0017, KEY_DOWN },
41 { 0x0018, KEY_LEFT },
42 { 0x0019, KEY_RIGHT },
43 { 0x001a, KEY_ENTER },
44 { 0x001b, KEY_CHANNELUP },
45 { 0x001c, KEY_CHANNELDOWN },
46 { 0x001d, KEY_VOLUMEUP },
47 { 0x001e, KEY_VOLUMEDOWN },
48 { 0x001f, KEY_RED },
49 { 0x0020, KEY_GREEN },
50 { 0x0021, KEY_YELLOW },
51 { 0x0022, KEY_BLUE },
52 { 0x0023, KEY_SUBTITLE },
53 { 0x0024, KEY_F15 }, /* AD */
54 { 0x0025, KEY_TEXT },
55 { 0x0026, KEY_MUTE },
56 { 0x0027, KEY_REWIND },
57 { 0x0028, KEY_STOP },
58 { 0x0029, KEY_PLAY },
59 { 0x002a, KEY_FASTFORWARD },
60 { 0x002b, KEY_F16 }, /* chapter */
61 { 0x002c, KEY_PAUSE },
62 { 0x002d, KEY_PLAY },
63 { 0x002e, KEY_RECORD },
64 { 0x002f, KEY_F17 }, /* picture in picture */
65 { 0x0030, KEY_KPPLUS }, /* zoom in */
66 { 0x0031, KEY_KPMINUS }, /* zoom out */
67 { 0x0032, KEY_F18 }, /* capture */
68 { 0x0033, KEY_F19 }, /* web */
69 { 0x0034, KEY_EMAIL },
70 { 0x0035, KEY_PHONE },
71 { 0x0036, KEY_PC },
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030072};
73
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030074static struct rc_map_list nebula_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030075 .map = {
76 .scan = nebula,
77 .size = ARRAY_SIZE(nebula),
David Härdeman2886f012014-04-03 20:31:20 -030078 .rc_type = RC_TYPE_RC5,
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030079 .name = RC_MAP_NEBULA,
80 }
81};
82
83static int __init init_rc_map_nebula(void)
84{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030085 return rc_map_register(&nebula_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030086}
87
88static void __exit exit_rc_map_nebula(void)
89{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030090 rc_map_unregister(&nebula_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030091}
92
93module_init(init_rc_map_nebula)
94module_exit(exit_rc_map_nebula)
95
96MODULE_LICENSE("GPL");
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -020097MODULE_AUTHOR("Mauro Carvalho Chehab");