1638b53f8SAntti Palosaari /* 2638b53f8SAntti Palosaari * TerraTec remote controller keytable 3638b53f8SAntti Palosaari * 4638b53f8SAntti Palosaari * Copyright (C) 2011 Martin Groszhauser <mgroszhauser@gmail.com> 5638b53f8SAntti Palosaari * Copyright (C) 2011 Antti Palosaari <crope@iki.fi> 6638b53f8SAntti Palosaari * 7638b53f8SAntti Palosaari * This program is free software; you can redistribute it and/or modify 8638b53f8SAntti Palosaari * it under the terms of the GNU General Public License as published by 9638b53f8SAntti Palosaari * the Free Software Foundation; either version 2 of the License, or 10638b53f8SAntti Palosaari * (at your option) any later version. 11638b53f8SAntti Palosaari * 12638b53f8SAntti Palosaari * This program is distributed in the hope that it will be useful, 13638b53f8SAntti Palosaari * but WITHOUT ANY WARRANTY; without even the implied warranty of 14638b53f8SAntti Palosaari * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15638b53f8SAntti Palosaari * GNU General Public License for more details. 16638b53f8SAntti Palosaari * 17638b53f8SAntti Palosaari * You should have received a copy of the GNU General Public License along 18638b53f8SAntti Palosaari * with this program; if not, write to the Free Software Foundation, Inc., 19638b53f8SAntti Palosaari * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20638b53f8SAntti Palosaari */ 21638b53f8SAntti Palosaari 22638b53f8SAntti Palosaari #include <media/rc-map.h> 237a707b89SPaul Gortmaker #include <linux/module.h> 24638b53f8SAntti Palosaari 25638b53f8SAntti Palosaari /* 26638b53f8SAntti Palosaari * TerraTec slim remote, 6 rows, 3 columns. 27638b53f8SAntti Palosaari * Keytable from Martin Groszhauser <mgroszhauser@gmail.com> 28638b53f8SAntti Palosaari */ 29638b53f8SAntti Palosaari static struct rc_map_table terratec_slim_2[] = { 30638b53f8SAntti Palosaari { 0x8001, KEY_MUTE }, /* MUTE */ 31638b53f8SAntti Palosaari { 0x8002, KEY_VOLUMEDOWN }, 32638b53f8SAntti Palosaari { 0x8003, KEY_CHANNELDOWN }, 33638b53f8SAntti Palosaari { 0x8004, KEY_1 }, 34638b53f8SAntti Palosaari { 0x8005, KEY_2 }, 35638b53f8SAntti Palosaari { 0x8006, KEY_3 }, 36638b53f8SAntti Palosaari { 0x8007, KEY_4 }, 37638b53f8SAntti Palosaari { 0x8008, KEY_5 }, 38638b53f8SAntti Palosaari { 0x8009, KEY_6 }, 39638b53f8SAntti Palosaari { 0x800a, KEY_7 }, 40638b53f8SAntti Palosaari { 0x800c, KEY_ZOOM }, /* [fullscreen] */ 41638b53f8SAntti Palosaari { 0x800d, KEY_0 }, 42638b53f8SAntti Palosaari { 0x800e, KEY_AGAIN }, /* [two arrows forming a circle] */ 43638b53f8SAntti Palosaari { 0x8012, KEY_POWER2 }, /* [red power button] */ 44638b53f8SAntti Palosaari { 0x801a, KEY_VOLUMEUP }, 45638b53f8SAntti Palosaari { 0x801b, KEY_8 }, 46638b53f8SAntti Palosaari { 0x801e, KEY_CHANNELUP }, 47638b53f8SAntti Palosaari { 0x801f, KEY_9 }, 48638b53f8SAntti Palosaari }; 49638b53f8SAntti Palosaari 50638b53f8SAntti Palosaari static struct rc_map_list terratec_slim_2_map = { 51638b53f8SAntti Palosaari .map = { 52638b53f8SAntti Palosaari .scan = terratec_slim_2, 53638b53f8SAntti Palosaari .size = ARRAY_SIZE(terratec_slim_2), 54*6d741bfeSSean Young .rc_proto = RC_PROTO_NEC, 55638b53f8SAntti Palosaari .name = RC_MAP_TERRATEC_SLIM_2, 56638b53f8SAntti Palosaari } 57638b53f8SAntti Palosaari }; 58638b53f8SAntti Palosaari 59638b53f8SAntti Palosaari static int __init init_rc_map_terratec_slim_2(void) 60638b53f8SAntti Palosaari { 61638b53f8SAntti Palosaari return rc_map_register(&terratec_slim_2_map); 62638b53f8SAntti Palosaari } 63638b53f8SAntti Palosaari 64638b53f8SAntti Palosaari static void __exit exit_rc_map_terratec_slim_2(void) 65638b53f8SAntti Palosaari { 66638b53f8SAntti Palosaari rc_map_unregister(&terratec_slim_2_map); 67638b53f8SAntti Palosaari } 68638b53f8SAntti Palosaari 69638b53f8SAntti Palosaari module_init(init_rc_map_terratec_slim_2) 70638b53f8SAntti Palosaari module_exit(exit_rc_map_terratec_slim_2) 71638b53f8SAntti Palosaari 72638b53f8SAntti Palosaari MODULE_LICENSE("GPL"); 73638b53f8SAntti Palosaari MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 74