162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci// adstech-dvb-t-pci.h - Keytable for adstech_dvb_t_pci Remote Controller 362306a36Sopenharmony_ci// 462306a36Sopenharmony_ci// keymap imported from ir-keymaps.c 562306a36Sopenharmony_ci// 662306a36Sopenharmony_ci// Copyright (c) 2010 by Mauro Carvalho Chehab 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#include <media/rc-map.h> 962306a36Sopenharmony_ci#include <linux/module.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* ADS Tech Instant TV DVB-T PCI Remote */ 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cistatic struct rc_map_table adstech_dvb_t_pci[] = { 1462306a36Sopenharmony_ci /* Keys 0 to 9 */ 1562306a36Sopenharmony_ci { 0x4d, KEY_NUMERIC_0 }, 1662306a36Sopenharmony_ci { 0x57, KEY_NUMERIC_1 }, 1762306a36Sopenharmony_ci { 0x4f, KEY_NUMERIC_2 }, 1862306a36Sopenharmony_ci { 0x53, KEY_NUMERIC_3 }, 1962306a36Sopenharmony_ci { 0x56, KEY_NUMERIC_4 }, 2062306a36Sopenharmony_ci { 0x4e, KEY_NUMERIC_5 }, 2162306a36Sopenharmony_ci { 0x5e, KEY_NUMERIC_6 }, 2262306a36Sopenharmony_ci { 0x54, KEY_NUMERIC_7 }, 2362306a36Sopenharmony_ci { 0x4c, KEY_NUMERIC_8 }, 2462306a36Sopenharmony_ci { 0x5c, KEY_NUMERIC_9 }, 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci { 0x5b, KEY_POWER }, 2762306a36Sopenharmony_ci { 0x5f, KEY_MUTE }, 2862306a36Sopenharmony_ci { 0x55, KEY_GOTO }, 2962306a36Sopenharmony_ci { 0x5d, KEY_SEARCH }, 3062306a36Sopenharmony_ci { 0x17, KEY_EPG }, /* Guide */ 3162306a36Sopenharmony_ci { 0x1f, KEY_MENU }, 3262306a36Sopenharmony_ci { 0x0f, KEY_UP }, 3362306a36Sopenharmony_ci { 0x46, KEY_DOWN }, 3462306a36Sopenharmony_ci { 0x16, KEY_LEFT }, 3562306a36Sopenharmony_ci { 0x1e, KEY_RIGHT }, 3662306a36Sopenharmony_ci { 0x0e, KEY_SELECT }, /* Enter */ 3762306a36Sopenharmony_ci { 0x5a, KEY_INFO }, 3862306a36Sopenharmony_ci { 0x52, KEY_EXIT }, 3962306a36Sopenharmony_ci { 0x59, KEY_PREVIOUS }, 4062306a36Sopenharmony_ci { 0x51, KEY_NEXT }, 4162306a36Sopenharmony_ci { 0x58, KEY_REWIND }, 4262306a36Sopenharmony_ci { 0x50, KEY_FORWARD }, 4362306a36Sopenharmony_ci { 0x44, KEY_PLAYPAUSE }, 4462306a36Sopenharmony_ci { 0x07, KEY_STOP }, 4562306a36Sopenharmony_ci { 0x1b, KEY_RECORD }, 4662306a36Sopenharmony_ci { 0x13, KEY_TUNER }, /* Live */ 4762306a36Sopenharmony_ci { 0x0a, KEY_A }, 4862306a36Sopenharmony_ci { 0x12, KEY_B }, 4962306a36Sopenharmony_ci { 0x03, KEY_RED }, /* 1 */ 5062306a36Sopenharmony_ci { 0x01, KEY_GREEN }, /* 2 */ 5162306a36Sopenharmony_ci { 0x00, KEY_YELLOW }, /* 3 */ 5262306a36Sopenharmony_ci { 0x06, KEY_DVD }, 5362306a36Sopenharmony_ci { 0x48, KEY_AUX }, /* Photo */ 5462306a36Sopenharmony_ci { 0x40, KEY_VIDEO }, 5562306a36Sopenharmony_ci { 0x19, KEY_AUDIO }, /* Music */ 5662306a36Sopenharmony_ci { 0x0b, KEY_CHANNELUP }, 5762306a36Sopenharmony_ci { 0x08, KEY_CHANNELDOWN }, 5862306a36Sopenharmony_ci { 0x15, KEY_VOLUMEUP }, 5962306a36Sopenharmony_ci { 0x1c, KEY_VOLUMEDOWN }, 6062306a36Sopenharmony_ci}; 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_cistatic struct rc_map_list adstech_dvb_t_pci_map = { 6362306a36Sopenharmony_ci .map = { 6462306a36Sopenharmony_ci .scan = adstech_dvb_t_pci, 6562306a36Sopenharmony_ci .size = ARRAY_SIZE(adstech_dvb_t_pci), 6662306a36Sopenharmony_ci .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 6762306a36Sopenharmony_ci .name = RC_MAP_ADSTECH_DVB_T_PCI, 6862306a36Sopenharmony_ci } 6962306a36Sopenharmony_ci}; 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_cistatic int __init init_rc_map_adstech_dvb_t_pci(void) 7262306a36Sopenharmony_ci{ 7362306a36Sopenharmony_ci return rc_map_register(&adstech_dvb_t_pci_map); 7462306a36Sopenharmony_ci} 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_cistatic void __exit exit_rc_map_adstech_dvb_t_pci(void) 7762306a36Sopenharmony_ci{ 7862306a36Sopenharmony_ci rc_map_unregister(&adstech_dvb_t_pci_map); 7962306a36Sopenharmony_ci} 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_cimodule_init(init_rc_map_adstech_dvb_t_pci) 8262306a36Sopenharmony_cimodule_exit(exit_rc_map_adstech_dvb_t_pci) 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 8562306a36Sopenharmony_ciMODULE_AUTHOR("Mauro Carvalho Chehab"); 86