162306a36Sopenharmony_ci/* rc-technisat-usb2.c - Keytable for SkyStar HD USB 262306a36Sopenharmony_ci * 362306a36Sopenharmony_ci * Copyright (C) 2010 Patrick Boettcher, 462306a36Sopenharmony_ci * Kernel Labs Inc. PO Box 745, St James, NY 11780 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Development was sponsored by Technisat Digital UK Limited, whose 762306a36Sopenharmony_ci * registered office is Witan Gate House 500 - 600 Witan Gate West, 862306a36Sopenharmony_ci * Milton Keynes, MK9 1SH 962306a36Sopenharmony_ci * 1062306a36Sopenharmony_ci * This program is free software; you can redistribute it and/or 1162306a36Sopenharmony_ci * modify it under the terms of the GNU General Public License as 1262306a36Sopenharmony_ci * published by the Free Software Foundation; either version 2 of the 1362306a36Sopenharmony_ci * License, or (at your option) any later version. 1462306a36Sopenharmony_ci * 1562306a36Sopenharmony_ci * 1662306a36Sopenharmony_ci * THIS PROGRAM IS PROVIDED "AS IS" AND BOTH THE COPYRIGHT HOLDER AND 1762306a36Sopenharmony_ci * TECHNISAT DIGITAL UK LTD DISCLAIM ALL WARRANTIES WITH REGARD TO 1862306a36Sopenharmony_ci * THIS PROGRAM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY OR 1962306a36Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE. NEITHER THE COPYRIGHT HOLDER 2062306a36Sopenharmony_ci * NOR TECHNISAT DIGITAL UK LIMITED SHALL BE LIABLE FOR ANY SPECIAL, 2162306a36Sopenharmony_ci * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER 2262306a36Sopenharmony_ci * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 2362306a36Sopenharmony_ci * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 2462306a36Sopenharmony_ci * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS PROGRAM. See the 2562306a36Sopenharmony_ci * GNU General Public License for more details. 2662306a36Sopenharmony_ci */ 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#include <media/rc-map.h> 2962306a36Sopenharmony_ci#include <linux/module.h> 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_cistatic struct rc_map_table technisat_usb2[] = { 3262306a36Sopenharmony_ci {0x0a0c, KEY_POWER}, 3362306a36Sopenharmony_ci {0x0a01, KEY_NUMERIC_1}, 3462306a36Sopenharmony_ci {0x0a02, KEY_NUMERIC_2}, 3562306a36Sopenharmony_ci {0x0a03, KEY_NUMERIC_3}, 3662306a36Sopenharmony_ci {0x0a0d, KEY_MUTE}, 3762306a36Sopenharmony_ci {0x0a04, KEY_NUMERIC_4}, 3862306a36Sopenharmony_ci {0x0a05, KEY_NUMERIC_5}, 3962306a36Sopenharmony_ci {0x0a06, KEY_NUMERIC_6}, 4062306a36Sopenharmony_ci {0x0a38, KEY_VIDEO}, /* EXT */ 4162306a36Sopenharmony_ci {0x0a07, KEY_NUMERIC_7}, 4262306a36Sopenharmony_ci {0x0a08, KEY_NUMERIC_8}, 4362306a36Sopenharmony_ci {0x0a09, KEY_NUMERIC_9}, 4462306a36Sopenharmony_ci {0x0a00, KEY_NUMERIC_0}, 4562306a36Sopenharmony_ci {0x0a4f, KEY_INFO}, 4662306a36Sopenharmony_ci {0x0a20, KEY_CHANNELUP}, 4762306a36Sopenharmony_ci {0x0a52, KEY_MENU}, 4862306a36Sopenharmony_ci {0x0a11, KEY_VOLUMEUP}, 4962306a36Sopenharmony_ci {0x0a57, KEY_OK}, 5062306a36Sopenharmony_ci {0x0a10, KEY_VOLUMEDOWN}, 5162306a36Sopenharmony_ci {0x0a2f, KEY_EPG}, 5262306a36Sopenharmony_ci {0x0a21, KEY_CHANNELDOWN}, 5362306a36Sopenharmony_ci {0x0a22, KEY_REFRESH}, 5462306a36Sopenharmony_ci {0x0a3c, KEY_TEXT}, 5562306a36Sopenharmony_ci {0x0a76, KEY_ENTER}, /* HOOK */ 5662306a36Sopenharmony_ci {0x0a0f, KEY_HELP}, 5762306a36Sopenharmony_ci {0x0a6b, KEY_RED}, 5862306a36Sopenharmony_ci {0x0a6c, KEY_GREEN}, 5962306a36Sopenharmony_ci {0x0a6d, KEY_YELLOW}, 6062306a36Sopenharmony_ci {0x0a6e, KEY_BLUE}, 6162306a36Sopenharmony_ci {0x0a29, KEY_STOP}, 6262306a36Sopenharmony_ci {0x0a23, KEY_LANGUAGE}, 6362306a36Sopenharmony_ci {0x0a53, KEY_TV}, 6462306a36Sopenharmony_ci {0x0a0a, KEY_PROGRAM}, 6562306a36Sopenharmony_ci}; 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_cistatic struct rc_map_list technisat_usb2_map = { 6862306a36Sopenharmony_ci .map = { 6962306a36Sopenharmony_ci .scan = technisat_usb2, 7062306a36Sopenharmony_ci .size = ARRAY_SIZE(technisat_usb2), 7162306a36Sopenharmony_ci .rc_proto = RC_PROTO_RC5, 7262306a36Sopenharmony_ci .name = RC_MAP_TECHNISAT_USB2, 7362306a36Sopenharmony_ci } 7462306a36Sopenharmony_ci}; 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_cistatic int __init init_rc_map(void) 7762306a36Sopenharmony_ci{ 7862306a36Sopenharmony_ci return rc_map_register(&technisat_usb2_map); 7962306a36Sopenharmony_ci} 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_cistatic void __exit exit_rc_map(void) 8262306a36Sopenharmony_ci{ 8362306a36Sopenharmony_ci rc_map_unregister(&technisat_usb2_map); 8462306a36Sopenharmony_ci} 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_cimodule_init(init_rc_map) 8762306a36Sopenharmony_cimodule_exit(exit_rc_map) 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ciMODULE_AUTHOR("Patrick Boettcher <pboettcher@kernellabs.com>"); 9062306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 91