132cf86f6SMauro Carvalho Chehab /* adstech-dvb-t-pci.h - Keytable for adstech_dvb_t_pci Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> 632cf86f6SMauro Carvalho Chehab * 732cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 832cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 932cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 1032cf86f6SMauro Carvalho Chehab * (at your option) any later version. 1132cf86f6SMauro Carvalho Chehab */ 1232cf86f6SMauro Carvalho Chehab 1332cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 1432cf86f6SMauro Carvalho Chehab 1532cf86f6SMauro Carvalho Chehab /* ADS Tech Instant TV DVB-T PCI Remote */ 1632cf86f6SMauro Carvalho Chehab 1732cf86f6SMauro Carvalho Chehab static struct ir_scancode adstech_dvb_t_pci[] = { 1832cf86f6SMauro Carvalho Chehab /* Keys 0 to 9 */ 1932cf86f6SMauro Carvalho Chehab { 0x4d, KEY_0 }, 2032cf86f6SMauro Carvalho Chehab { 0x57, KEY_1 }, 2132cf86f6SMauro Carvalho Chehab { 0x4f, KEY_2 }, 2232cf86f6SMauro Carvalho Chehab { 0x53, KEY_3 }, 2332cf86f6SMauro Carvalho Chehab { 0x56, KEY_4 }, 2432cf86f6SMauro Carvalho Chehab { 0x4e, KEY_5 }, 2532cf86f6SMauro Carvalho Chehab { 0x5e, KEY_6 }, 2632cf86f6SMauro Carvalho Chehab { 0x54, KEY_7 }, 2732cf86f6SMauro Carvalho Chehab { 0x4c, KEY_8 }, 2832cf86f6SMauro Carvalho Chehab { 0x5c, KEY_9 }, 2932cf86f6SMauro Carvalho Chehab 3032cf86f6SMauro Carvalho Chehab { 0x5b, KEY_POWER }, 3132cf86f6SMauro Carvalho Chehab { 0x5f, KEY_MUTE }, 3232cf86f6SMauro Carvalho Chehab { 0x55, KEY_GOTO }, 3332cf86f6SMauro Carvalho Chehab { 0x5d, KEY_SEARCH }, 3432cf86f6SMauro Carvalho Chehab { 0x17, KEY_EPG }, /* Guide */ 3532cf86f6SMauro Carvalho Chehab { 0x1f, KEY_MENU }, 3632cf86f6SMauro Carvalho Chehab { 0x0f, KEY_UP }, 3732cf86f6SMauro Carvalho Chehab { 0x46, KEY_DOWN }, 3832cf86f6SMauro Carvalho Chehab { 0x16, KEY_LEFT }, 3932cf86f6SMauro Carvalho Chehab { 0x1e, KEY_RIGHT }, 4032cf86f6SMauro Carvalho Chehab { 0x0e, KEY_SELECT }, /* Enter */ 4132cf86f6SMauro Carvalho Chehab { 0x5a, KEY_INFO }, 4232cf86f6SMauro Carvalho Chehab { 0x52, KEY_EXIT }, 4332cf86f6SMauro Carvalho Chehab { 0x59, KEY_PREVIOUS }, 4432cf86f6SMauro Carvalho Chehab { 0x51, KEY_NEXT }, 4532cf86f6SMauro Carvalho Chehab { 0x58, KEY_REWIND }, 4632cf86f6SMauro Carvalho Chehab { 0x50, KEY_FORWARD }, 4732cf86f6SMauro Carvalho Chehab { 0x44, KEY_PLAYPAUSE }, 4832cf86f6SMauro Carvalho Chehab { 0x07, KEY_STOP }, 4932cf86f6SMauro Carvalho Chehab { 0x1b, KEY_RECORD }, 5032cf86f6SMauro Carvalho Chehab { 0x13, KEY_TUNER }, /* Live */ 5132cf86f6SMauro Carvalho Chehab { 0x0a, KEY_A }, 5232cf86f6SMauro Carvalho Chehab { 0x12, KEY_B }, 5332cf86f6SMauro Carvalho Chehab { 0x03, KEY_PROG1 }, /* 1 */ 5432cf86f6SMauro Carvalho Chehab { 0x01, KEY_PROG2 }, /* 2 */ 5532cf86f6SMauro Carvalho Chehab { 0x00, KEY_PROG3 }, /* 3 */ 5632cf86f6SMauro Carvalho Chehab { 0x06, KEY_DVD }, 5732cf86f6SMauro Carvalho Chehab { 0x48, KEY_AUX }, /* Photo */ 5832cf86f6SMauro Carvalho Chehab { 0x40, KEY_VIDEO }, 5932cf86f6SMauro Carvalho Chehab { 0x19, KEY_AUDIO }, /* Music */ 6032cf86f6SMauro Carvalho Chehab { 0x0b, KEY_CHANNELUP }, 6132cf86f6SMauro Carvalho Chehab { 0x08, KEY_CHANNELDOWN }, 6232cf86f6SMauro Carvalho Chehab { 0x15, KEY_VOLUMEUP }, 6332cf86f6SMauro Carvalho Chehab { 0x1c, KEY_VOLUMEDOWN }, 6432cf86f6SMauro Carvalho Chehab }; 6532cf86f6SMauro Carvalho Chehab 6632cf86f6SMauro Carvalho Chehab static struct rc_keymap adstech_dvb_t_pci_map = { 6732cf86f6SMauro Carvalho Chehab .map = { 6832cf86f6SMauro Carvalho Chehab .scan = adstech_dvb_t_pci, 6932cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(adstech_dvb_t_pci), 7052b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 7132cf86f6SMauro Carvalho Chehab .name = RC_MAP_ADSTECH_DVB_T_PCI, 7232cf86f6SMauro Carvalho Chehab } 7332cf86f6SMauro Carvalho Chehab }; 7432cf86f6SMauro Carvalho Chehab 7532cf86f6SMauro Carvalho Chehab static int __init init_rc_map_adstech_dvb_t_pci(void) 7632cf86f6SMauro Carvalho Chehab { 7732cf86f6SMauro Carvalho Chehab return ir_register_map(&adstech_dvb_t_pci_map); 7832cf86f6SMauro Carvalho Chehab } 7932cf86f6SMauro Carvalho Chehab 8032cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_adstech_dvb_t_pci(void) 8132cf86f6SMauro Carvalho Chehab { 8232cf86f6SMauro Carvalho Chehab ir_unregister_map(&adstech_dvb_t_pci_map); 8332cf86f6SMauro Carvalho Chehab } 8432cf86f6SMauro Carvalho Chehab 8532cf86f6SMauro Carvalho Chehab module_init(init_rc_map_adstech_dvb_t_pci) 8632cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_adstech_dvb_t_pci) 8732cf86f6SMauro Carvalho Chehab 8832cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8932cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 90