1 /* terratec-cinergy-xs.h - Keytable for terratec_cinergy_xs 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 15 /* Terratec Cinergy Hybrid T USB XS 16 Devin Heitmueller <dheitmueller@linuxtv.org> 17 */ 18 19 static struct rc_map_table terratec_cinergy_xs[] = { 20 { 0x41, KEY_HOME}, 21 { 0x01, KEY_POWER}, 22 { 0x42, KEY_MENU}, 23 { 0x02, KEY_1}, 24 { 0x03, KEY_2}, 25 { 0x04, KEY_3}, 26 { 0x43, KEY_SUBTITLE}, 27 { 0x05, KEY_4}, 28 { 0x06, KEY_5}, 29 { 0x07, KEY_6}, 30 { 0x44, KEY_TEXT}, 31 { 0x08, KEY_7}, 32 { 0x09, KEY_8}, 33 { 0x0a, KEY_9}, 34 { 0x45, KEY_DELETE}, 35 { 0x0b, KEY_TUNER}, 36 { 0x0c, KEY_0}, 37 { 0x0d, KEY_MODE}, 38 { 0x46, KEY_TV}, 39 { 0x47, KEY_DVD}, 40 { 0x49, KEY_VIDEO}, 41 { 0x4b, KEY_AUX}, 42 { 0x10, KEY_UP}, 43 { 0x11, KEY_LEFT}, 44 { 0x12, KEY_OK}, 45 { 0x13, KEY_RIGHT}, 46 { 0x14, KEY_DOWN}, 47 { 0x0f, KEY_EPG}, 48 { 0x16, KEY_INFO}, 49 { 0x4d, KEY_BACKSPACE}, 50 { 0x1c, KEY_VOLUMEUP}, 51 { 0x4c, KEY_PLAY}, 52 { 0x1b, KEY_CHANNELUP}, 53 { 0x1e, KEY_VOLUMEDOWN}, 54 { 0x1d, KEY_MUTE}, 55 { 0x1f, KEY_CHANNELDOWN}, 56 { 0x17, KEY_RED}, 57 { 0x18, KEY_GREEN}, 58 { 0x19, KEY_YELLOW}, 59 { 0x1a, KEY_BLUE}, 60 { 0x58, KEY_RECORD}, 61 { 0x48, KEY_STOP}, 62 { 0x40, KEY_PAUSE}, 63 { 0x54, KEY_LAST}, 64 { 0x4e, KEY_REWIND}, 65 { 0x4f, KEY_FASTFORWARD}, 66 { 0x5c, KEY_NEXT}, 67 }; 68 69 static struct rc_keymap terratec_cinergy_xs_map = { 70 .map = { 71 .scan = terratec_cinergy_xs, 72 .size = ARRAY_SIZE(terratec_cinergy_xs), 73 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 74 .name = RC_MAP_TERRATEC_CINERGY_XS, 75 } 76 }; 77 78 static int __init init_rc_map_terratec_cinergy_xs(void) 79 { 80 return ir_register_map(&terratec_cinergy_xs_map); 81 } 82 83 static void __exit exit_rc_map_terratec_cinergy_xs(void) 84 { 85 ir_unregister_map(&terratec_cinergy_xs_map); 86 } 87 88 module_init(init_rc_map_terratec_cinergy_xs) 89 module_exit(exit_rc_map_terratec_cinergy_xs) 90 91 MODULE_LICENSE("GPL"); 92 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 93