132cf86f6SMauro Carvalho Chehab /* asus-pc39.h - Keytable for asus_pc39 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 /* 1732cf86f6SMauro Carvalho Chehab * Marc Fargas <telenieko@telenieko.com> 1832cf86f6SMauro Carvalho Chehab * this is the remote control that comes with the asus p7131 1932cf86f6SMauro Carvalho Chehab * which has a label saying is "Model PC-39" 2032cf86f6SMauro Carvalho Chehab */ 2132cf86f6SMauro Carvalho Chehab 222f4f58d6SMauro Carvalho Chehab static struct rc_map_table asus_pc39[] = { 2332cf86f6SMauro Carvalho Chehab /* Keys 0 to 9 */ 2432cf86f6SMauro Carvalho Chehab { 0x082a, KEY_0 }, 2532cf86f6SMauro Carvalho Chehab { 0x0816, KEY_1 }, 2632cf86f6SMauro Carvalho Chehab { 0x0812, KEY_2 }, 2732cf86f6SMauro Carvalho Chehab { 0x0814, KEY_3 }, 2832cf86f6SMauro Carvalho Chehab { 0x0836, KEY_4 }, 2932cf86f6SMauro Carvalho Chehab { 0x0832, KEY_5 }, 3032cf86f6SMauro Carvalho Chehab { 0x0834, KEY_6 }, 3132cf86f6SMauro Carvalho Chehab { 0x080e, KEY_7 }, 3232cf86f6SMauro Carvalho Chehab { 0x080a, KEY_8 }, 3332cf86f6SMauro Carvalho Chehab { 0x080c, KEY_9 }, 3432cf86f6SMauro Carvalho Chehab 3532cf86f6SMauro Carvalho Chehab { 0x0801, KEY_RADIO }, /* radio */ 3632cf86f6SMauro Carvalho Chehab { 0x083c, KEY_MENU }, /* dvd/menu */ 3732cf86f6SMauro Carvalho Chehab { 0x0815, KEY_VOLUMEUP }, 3832cf86f6SMauro Carvalho Chehab { 0x0826, KEY_VOLUMEDOWN }, 3932cf86f6SMauro Carvalho Chehab { 0x0808, KEY_UP }, 4032cf86f6SMauro Carvalho Chehab { 0x0804, KEY_DOWN }, 4132cf86f6SMauro Carvalho Chehab { 0x0818, KEY_LEFT }, 4232cf86f6SMauro Carvalho Chehab { 0x0810, KEY_RIGHT }, 4332cf86f6SMauro Carvalho Chehab { 0x081a, KEY_VIDEO }, /* video */ 4432cf86f6SMauro Carvalho Chehab { 0x0806, KEY_AUDIO }, /* music */ 4532cf86f6SMauro Carvalho Chehab 4632cf86f6SMauro Carvalho Chehab { 0x081e, KEY_TV }, /* tv */ 4732cf86f6SMauro Carvalho Chehab { 0x0822, KEY_EXIT }, /* back */ 4832cf86f6SMauro Carvalho Chehab { 0x0835, KEY_CHANNELUP }, /* channel / program + */ 4932cf86f6SMauro Carvalho Chehab { 0x0824, KEY_CHANNELDOWN }, /* channel / program - */ 5032cf86f6SMauro Carvalho Chehab { 0x0825, KEY_ENTER }, /* enter */ 5132cf86f6SMauro Carvalho Chehab 5232cf86f6SMauro Carvalho Chehab { 0x0839, KEY_PAUSE }, /* play/pause */ 5332cf86f6SMauro Carvalho Chehab { 0x0821, KEY_PREVIOUS }, /* rew */ 5432cf86f6SMauro Carvalho Chehab { 0x0819, KEY_NEXT }, /* forward */ 5532cf86f6SMauro Carvalho Chehab { 0x0831, KEY_REWIND }, /* backward << */ 5632cf86f6SMauro Carvalho Chehab { 0x0805, KEY_FASTFORWARD }, /* forward >> */ 5732cf86f6SMauro Carvalho Chehab { 0x0809, KEY_STOP }, 5832cf86f6SMauro Carvalho Chehab { 0x0811, KEY_RECORD }, /* recording */ 5932cf86f6SMauro Carvalho Chehab { 0x0829, KEY_POWER }, /* the button that reads "close" */ 6032cf86f6SMauro Carvalho Chehab 6132cf86f6SMauro Carvalho Chehab { 0x082e, KEY_ZOOM }, /* full screen */ 6232cf86f6SMauro Carvalho Chehab { 0x082c, KEY_MACRO }, /* recall */ 6332cf86f6SMauro Carvalho Chehab { 0x081c, KEY_HOME }, /* home */ 6432cf86f6SMauro Carvalho Chehab { 0x083a, KEY_PVR }, /* picture */ 6532cf86f6SMauro Carvalho Chehab { 0x0802, KEY_MUTE }, /* mute */ 6632cf86f6SMauro Carvalho Chehab { 0x083e, KEY_DVD }, /* dvd */ 6732cf86f6SMauro Carvalho Chehab }; 6832cf86f6SMauro Carvalho Chehab 69d100e659SMauro Carvalho Chehab static struct rc_map_list asus_pc39_map = { 7032cf86f6SMauro Carvalho Chehab .map = { 7132cf86f6SMauro Carvalho Chehab .scan = asus_pc39, 7232cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(asus_pc39), 73*6d741bfeSSean Young .rc_proto = RC_PROTO_RC5, 7432cf86f6SMauro Carvalho Chehab .name = RC_MAP_ASUS_PC39, 7532cf86f6SMauro Carvalho Chehab } 7632cf86f6SMauro Carvalho Chehab }; 7732cf86f6SMauro Carvalho Chehab 7832cf86f6SMauro Carvalho Chehab static int __init init_rc_map_asus_pc39(void) 7932cf86f6SMauro Carvalho Chehab { 80d100e659SMauro Carvalho Chehab return rc_map_register(&asus_pc39_map); 8132cf86f6SMauro Carvalho Chehab } 8232cf86f6SMauro Carvalho Chehab 8332cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_asus_pc39(void) 8432cf86f6SMauro Carvalho Chehab { 85d100e659SMauro Carvalho Chehab rc_map_unregister(&asus_pc39_map); 8632cf86f6SMauro Carvalho Chehab } 8732cf86f6SMauro Carvalho Chehab 8832cf86f6SMauro Carvalho Chehab module_init(init_rc_map_asus_pc39) 8932cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_asus_pc39) 9032cf86f6SMauro Carvalho Chehab 9132cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 9237e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab"); 93