RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / media / IR / keymaps / rc-rc5-streamzap.c
blob0ef2fe448de5b6d0759443b4fafa42426574c22f
1 /* rc-rc5-streamzap.c - Keytable for Streamzap PC Remote, for use
2 * with the Streamzap PC Remote IR Receiver.
4 * Copyright (c) 2010 by Jarod Wilson <jarod@redhat.com>
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.
12 #include <media/rc-map.h>
14 static 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 },
52 static 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,
61 static int __init init_rc_map_rc5_streamzap(void)
63 return ir_register_map(&rc5_streamzap_map);
66 static void __exit exit_rc_map_rc5_streamzap(void)
68 ir_unregister_map(&rc5_streamzap_map);
71 module_init(init_rc_map_rc5_streamzap)
72 module_exit(exit_rc_map_rc5_streamzap)
74 MODULE_LICENSE("GPL");
75 MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");