• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/media/IR/keymaps/
1/* pinnacle-color.h - Keytable for pinnacle_color 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
15static struct ir_scancode pinnacle_color[] = {
16	{ 0x59, KEY_MUTE },
17	{ 0x4a, KEY_POWER },
18
19	{ 0x18, KEY_TEXT },
20	{ 0x26, KEY_TV },
21	{ 0x3d, KEY_PRINT },
22
23	{ 0x48, KEY_RED },
24	{ 0x04, KEY_GREEN },
25	{ 0x11, KEY_YELLOW },
26	{ 0x00, KEY_BLUE },
27
28	{ 0x2d, KEY_VOLUMEUP },
29	{ 0x1e, KEY_VOLUMEDOWN },
30
31	{ 0x49, KEY_MENU },
32
33	{ 0x16, KEY_CHANNELUP },
34	{ 0x17, KEY_CHANNELDOWN },
35
36	{ 0x20, KEY_UP },
37	{ 0x21, KEY_DOWN },
38	{ 0x22, KEY_LEFT },
39	{ 0x23, KEY_RIGHT },
40	{ 0x0d, KEY_SELECT },
41
42	{ 0x08, KEY_BACK },
43	{ 0x07, KEY_REFRESH },
44
45	{ 0x2f, KEY_ZOOM },
46	{ 0x29, KEY_RECORD },
47
48	{ 0x4b, KEY_PAUSE },
49	{ 0x4d, KEY_REWIND },
50	{ 0x2e, KEY_PLAY },
51	{ 0x4e, KEY_FORWARD },
52	{ 0x53, KEY_PREVIOUS },
53	{ 0x4c, KEY_STOP },
54	{ 0x54, KEY_NEXT },
55
56	{ 0x69, KEY_0 },
57	{ 0x6a, KEY_1 },
58	{ 0x6b, KEY_2 },
59	{ 0x6c, KEY_3 },
60	{ 0x6d, KEY_4 },
61	{ 0x6e, KEY_5 },
62	{ 0x6f, KEY_6 },
63	{ 0x70, KEY_7 },
64	{ 0x71, KEY_8 },
65	{ 0x72, KEY_9 },
66
67	{ 0x74, KEY_CHANNEL },
68	{ 0x0a, KEY_BACKSPACE },
69};
70
71static struct rc_keymap pinnacle_color_map = {
72	.map = {
73		.scan    = pinnacle_color,
74		.size    = ARRAY_SIZE(pinnacle_color),
75		.ir_type = IR_TYPE_UNKNOWN,	/* Legacy IR type */
76		.name    = RC_MAP_PINNACLE_COLOR,
77	}
78};
79
80static int __init init_rc_map_pinnacle_color(void)
81{
82	return ir_register_map(&pinnacle_color_map);
83}
84
85static void __exit exit_rc_map_pinnacle_color(void)
86{
87	ir_unregister_map(&pinnacle_color_map);
88}
89
90module_init(init_rc_map_pinnacle_color)
91module_exit(exit_rc_map_pinnacle_color)
92
93MODULE_LICENSE("GPL");
94MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
95