132cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 2*7a707b89SPaul Gortmaker #include <linux/module.h> 332cf86f6SMauro Carvalho Chehab 42f4f58d6SMauro Carvalho Chehab static struct rc_map_table twinhan_vp1027[] = { 532cf86f6SMauro Carvalho Chehab { 0x16, KEY_POWER2 }, 632cf86f6SMauro Carvalho Chehab { 0x17, KEY_FAVORITES }, 732cf86f6SMauro Carvalho Chehab { 0x0f, KEY_TEXT }, 832cf86f6SMauro Carvalho Chehab { 0x48, KEY_INFO}, 932cf86f6SMauro Carvalho Chehab { 0x1c, KEY_EPG }, 1032cf86f6SMauro Carvalho Chehab { 0x04, KEY_LIST }, 1132cf86f6SMauro Carvalho Chehab 1232cf86f6SMauro Carvalho Chehab { 0x03, KEY_1 }, 1332cf86f6SMauro Carvalho Chehab { 0x01, KEY_2 }, 1432cf86f6SMauro Carvalho Chehab { 0x06, KEY_3 }, 1532cf86f6SMauro Carvalho Chehab { 0x09, KEY_4 }, 1632cf86f6SMauro Carvalho Chehab { 0x1d, KEY_5 }, 1732cf86f6SMauro Carvalho Chehab { 0x1f, KEY_6 }, 1832cf86f6SMauro Carvalho Chehab { 0x0d, KEY_7 }, 1932cf86f6SMauro Carvalho Chehab { 0x19, KEY_8 }, 2032cf86f6SMauro Carvalho Chehab { 0x1b, KEY_9 }, 2132cf86f6SMauro Carvalho Chehab { 0x15, KEY_0 }, 2232cf86f6SMauro Carvalho Chehab 2332cf86f6SMauro Carvalho Chehab { 0x0c, KEY_CANCEL }, 2432cf86f6SMauro Carvalho Chehab { 0x4a, KEY_CLEAR }, 2532cf86f6SMauro Carvalho Chehab { 0x13, KEY_BACKSPACE }, 2632cf86f6SMauro Carvalho Chehab { 0x00, KEY_TAB }, 2732cf86f6SMauro Carvalho Chehab 2832cf86f6SMauro Carvalho Chehab { 0x4b, KEY_UP }, 2932cf86f6SMauro Carvalho Chehab { 0x51, KEY_DOWN }, 3032cf86f6SMauro Carvalho Chehab { 0x4e, KEY_LEFT }, 3132cf86f6SMauro Carvalho Chehab { 0x52, KEY_RIGHT }, 3232cf86f6SMauro Carvalho Chehab { 0x4f, KEY_ENTER }, 3332cf86f6SMauro Carvalho Chehab 3432cf86f6SMauro Carvalho Chehab { 0x1e, KEY_VOLUMEUP }, 3532cf86f6SMauro Carvalho Chehab { 0x0a, KEY_VOLUMEDOWN }, 3632cf86f6SMauro Carvalho Chehab { 0x02, KEY_CHANNELDOWN }, 3732cf86f6SMauro Carvalho Chehab { 0x05, KEY_CHANNELUP }, 3832cf86f6SMauro Carvalho Chehab { 0x11, KEY_RECORD }, 3932cf86f6SMauro Carvalho Chehab 4032cf86f6SMauro Carvalho Chehab { 0x14, KEY_PLAY }, 4132cf86f6SMauro Carvalho Chehab { 0x4c, KEY_PAUSE }, 4232cf86f6SMauro Carvalho Chehab { 0x1a, KEY_STOP }, 4332cf86f6SMauro Carvalho Chehab { 0x40, KEY_REWIND }, 4432cf86f6SMauro Carvalho Chehab { 0x12, KEY_FASTFORWARD }, 4532cf86f6SMauro Carvalho Chehab { 0x41, KEY_PREVIOUSSONG }, 4632cf86f6SMauro Carvalho Chehab { 0x42, KEY_NEXTSONG }, 4732cf86f6SMauro Carvalho Chehab { 0x54, KEY_SAVE }, 4832cf86f6SMauro Carvalho Chehab { 0x50, KEY_LANGUAGE }, 4932cf86f6SMauro Carvalho Chehab { 0x47, KEY_MEDIA }, 5032cf86f6SMauro Carvalho Chehab { 0x4d, KEY_SCREEN }, 5132cf86f6SMauro Carvalho Chehab { 0x43, KEY_SUBTITLE }, 5232cf86f6SMauro Carvalho Chehab { 0x10, KEY_MUTE }, 5332cf86f6SMauro Carvalho Chehab { 0x49, KEY_AUDIO }, 5432cf86f6SMauro Carvalho Chehab { 0x07, KEY_SLEEP }, 5532cf86f6SMauro Carvalho Chehab { 0x08, KEY_VIDEO }, 5632cf86f6SMauro Carvalho Chehab { 0x0e, KEY_AGAIN }, 5732cf86f6SMauro Carvalho Chehab { 0x45, KEY_EQUAL }, 5832cf86f6SMauro Carvalho Chehab { 0x46, KEY_MINUS }, 5932cf86f6SMauro Carvalho Chehab { 0x18, KEY_RED }, 6032cf86f6SMauro Carvalho Chehab { 0x53, KEY_GREEN }, 6132cf86f6SMauro Carvalho Chehab { 0x5e, KEY_YELLOW }, 6232cf86f6SMauro Carvalho Chehab { 0x5f, KEY_BLUE }, 6332cf86f6SMauro Carvalho Chehab }; 6432cf86f6SMauro Carvalho Chehab 65d100e659SMauro Carvalho Chehab static struct rc_map_list twinhan_vp1027_map = { 6632cf86f6SMauro Carvalho Chehab .map = { 6732cf86f6SMauro Carvalho Chehab .scan = twinhan_vp1027, 6832cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(twinhan_vp1027), 6952b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 7032cf86f6SMauro Carvalho Chehab .name = RC_MAP_TWINHAN_VP1027_DVBS, 7132cf86f6SMauro Carvalho Chehab } 7232cf86f6SMauro Carvalho Chehab }; 7332cf86f6SMauro Carvalho Chehab 7432cf86f6SMauro Carvalho Chehab static int __init init_rc_map_twinhan_vp1027(void) 7532cf86f6SMauro Carvalho Chehab { 76d100e659SMauro Carvalho Chehab return rc_map_register(&twinhan_vp1027_map); 7732cf86f6SMauro Carvalho Chehab } 7832cf86f6SMauro Carvalho Chehab 7932cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_twinhan_vp1027(void) 8032cf86f6SMauro Carvalho Chehab { 81d100e659SMauro Carvalho Chehab rc_map_unregister(&twinhan_vp1027_map); 8232cf86f6SMauro Carvalho Chehab } 8332cf86f6SMauro Carvalho Chehab 8432cf86f6SMauro Carvalho Chehab module_init(init_rc_map_twinhan_vp1027) 8532cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_twinhan_vp1027) 8632cf86f6SMauro Carvalho Chehab 8732cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8832cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Sergey Ivanov <123kash@gmail.com>"); 89