• 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/* rc-rc5-streamzap.c - Keytable for Streamzap PC Remote, for use
2 * with the Streamzap PC Remote IR Receiver.
3 *
4 * Copyright (c) 2010 by Jarod Wilson <jarod@redhat.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 */
11
12#include <media/rc-map.h>
13
14static struct ir_scancode rc5_streamzap[] = {
15	{ 0x00, KEY_NUMERIC_0 },
16	{ 0x01, KEY_NUMERIC_1 },
17	{ 0x02, KEY_NUMERIC_2 },
18	{ 0x03, KEY_NUMERIC_3 },
19	{ 0x04, KEY_NUMERIC_4 },
20	{ 0x05, KEY_NUMERIC_5 },
21	{ 0x06, KEY_NUMERIC_6 },
22	{ 0x07, KEY_NUMERIC_7 },
23	{ 0x08, KEY_NUMERIC_8 },
24	{ 0x0a, KEY_POWER },
25	{ 0x0b, KEY_MUTE },
26	{ 0x0c, KEY_CHANNELUP },
27	{ 0x0d, KEY_VOLUMEUP },
28	{ 0x0e, KEY_CHANNELDOWN },
29	{ 0x0f, KEY_VOLUMEDOWN },
30	{ 0x10, KEY_UP },
31	{ 0x11, KEY_LEFT },
32	{ 0x12, KEY_OK },
33	{ 0x13, KEY_RIGHT },
34	{ 0x14, KEY_DOWN },
35	{ 0x15, KEY_MENU },
36	{ 0x16, KEY_EXIT },
37	{ 0x17, KEY_PLAY },
38	{ 0x18, KEY_PAUSE },
39	{ 0x19, KEY_STOP },
40	{ 0x1a, KEY_BACK },
41	{ 0x1b, KEY_FORWARD },
42	{ 0x1c, KEY_RECORD },
43	{ 0x1d, KEY_REWIND },
44	{ 0x1e, KEY_FASTFORWARD },
45	{ 0x20, KEY_RED },
46	{ 0x21, KEY_GREEN },
47	{ 0x22, KEY_YELLOW },
48	{ 0x23, KEY_BLUE },
49
50};
51
52static struct rc_keymap rc5_streamzap_map = {
53	.map = {
54		.scan    = rc5_streamzap,
55		.size    = ARRAY_SIZE(rc5_streamzap),
56		.ir_type = IR_TYPE_RC5,
57		.name    = RC_MAP_RC5_STREAMZAP,
58	}
59};
60
61static int __init init_rc_map_rc5_streamzap(void)
62{
63	return ir_register_map(&rc5_streamzap_map);
64}
65
66static void __exit exit_rc_map_rc5_streamzap(void)
67{
68	ir_unregister_map(&rc5_streamzap_map);
69}
70
71module_init(init_rc_map_rc5_streamzap)
72module_exit(exit_rc_map_rc5_streamzap)
73
74MODULE_LICENSE("GPL");
75MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");
76