132cf86f6SMauro Carvalho Chehab /* msi-tvanywhere.h - Keytable for msi_tvanywhere Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 432cf86f6SMauro Carvalho Chehab * 537e59f87SMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab 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> 147a707b89SPaul Gortmaker #include <linux/module.h> 1532cf86f6SMauro Carvalho Chehab 1632cf86f6SMauro Carvalho Chehab /* MSI TV@nywhere MASTER remote */ 1732cf86f6SMauro Carvalho Chehab 182f4f58d6SMauro Carvalho Chehab static struct rc_map_table msi_tvanywhere[] = { 1932cf86f6SMauro Carvalho Chehab /* Keys 0 to 9 */ 2032cf86f6SMauro Carvalho Chehab { 0x00, KEY_0 }, 2132cf86f6SMauro Carvalho Chehab { 0x01, KEY_1 }, 2232cf86f6SMauro Carvalho Chehab { 0x02, KEY_2 }, 2332cf86f6SMauro Carvalho Chehab { 0x03, KEY_3 }, 2432cf86f6SMauro Carvalho Chehab { 0x04, KEY_4 }, 2532cf86f6SMauro Carvalho Chehab { 0x05, KEY_5 }, 2632cf86f6SMauro Carvalho Chehab { 0x06, KEY_6 }, 2732cf86f6SMauro Carvalho Chehab { 0x07, KEY_7 }, 2832cf86f6SMauro Carvalho Chehab { 0x08, KEY_8 }, 2932cf86f6SMauro Carvalho Chehab { 0x09, KEY_9 }, 3032cf86f6SMauro Carvalho Chehab 3132cf86f6SMauro Carvalho Chehab { 0x0c, KEY_MUTE }, 3232cf86f6SMauro Carvalho Chehab { 0x0f, KEY_SCREEN }, /* Full Screen */ 3325985edcSLucas De Marchi { 0x10, KEY_FN }, /* Function */ 3432cf86f6SMauro Carvalho Chehab { 0x11, KEY_TIME }, /* Time shift */ 3532cf86f6SMauro Carvalho Chehab { 0x12, KEY_POWER }, 3632cf86f6SMauro Carvalho Chehab { 0x13, KEY_MEDIA }, /* MTS */ 3732cf86f6SMauro Carvalho Chehab { 0x14, KEY_SLOW }, 3832cf86f6SMauro Carvalho Chehab { 0x16, KEY_REWIND }, /* backward << */ 3932cf86f6SMauro Carvalho Chehab { 0x17, KEY_ENTER }, /* Return */ 4032cf86f6SMauro Carvalho Chehab { 0x18, KEY_FASTFORWARD }, /* forward >> */ 4132cf86f6SMauro Carvalho Chehab { 0x1a, KEY_CHANNELUP }, 4232cf86f6SMauro Carvalho Chehab { 0x1b, KEY_VOLUMEUP }, 4332cf86f6SMauro Carvalho Chehab { 0x1e, KEY_CHANNELDOWN }, 4432cf86f6SMauro Carvalho Chehab { 0x1f, KEY_VOLUMEDOWN }, 4532cf86f6SMauro Carvalho Chehab }; 4632cf86f6SMauro Carvalho Chehab 47d100e659SMauro Carvalho Chehab static struct rc_map_list msi_tvanywhere_map = { 4832cf86f6SMauro Carvalho Chehab .map = { 4932cf86f6SMauro Carvalho Chehab .scan = msi_tvanywhere, 5032cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(msi_tvanywhere), 51*6d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 5232cf86f6SMauro Carvalho Chehab .name = RC_MAP_MSI_TVANYWHERE, 5332cf86f6SMauro Carvalho Chehab } 5432cf86f6SMauro Carvalho Chehab }; 5532cf86f6SMauro Carvalho Chehab 5632cf86f6SMauro Carvalho Chehab static int __init init_rc_map_msi_tvanywhere(void) 5732cf86f6SMauro Carvalho Chehab { 58d100e659SMauro Carvalho Chehab return rc_map_register(&msi_tvanywhere_map); 5932cf86f6SMauro Carvalho Chehab } 6032cf86f6SMauro Carvalho Chehab 6132cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_msi_tvanywhere(void) 6232cf86f6SMauro Carvalho Chehab { 63d100e659SMauro Carvalho Chehab rc_map_unregister(&msi_tvanywhere_map); 6432cf86f6SMauro Carvalho Chehab } 6532cf86f6SMauro Carvalho Chehab 6632cf86f6SMauro Carvalho Chehab module_init(init_rc_map_msi_tvanywhere) 6732cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_msi_tvanywhere) 6832cf86f6SMauro Carvalho Chehab 6932cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 7037e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab"); 71