132cf86f6SMauro Carvalho Chehab /* proteus-2309.h - Keytable for proteus_2309 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 /* Michal Majchrowicz <mmajchrowicz@gmail.com> */ 1632cf86f6SMauro Carvalho Chehab 1732cf86f6SMauro Carvalho Chehab static struct ir_scancode proteus_2309[] = { 1832cf86f6SMauro Carvalho Chehab /* numeric */ 1932cf86f6SMauro Carvalho Chehab { 0x00, KEY_0 }, 2032cf86f6SMauro Carvalho Chehab { 0x01, KEY_1 }, 2132cf86f6SMauro Carvalho Chehab { 0x02, KEY_2 }, 2232cf86f6SMauro Carvalho Chehab { 0x03, KEY_3 }, 2332cf86f6SMauro Carvalho Chehab { 0x04, KEY_4 }, 2432cf86f6SMauro Carvalho Chehab { 0x05, KEY_5 }, 2532cf86f6SMauro Carvalho Chehab { 0x06, KEY_6 }, 2632cf86f6SMauro Carvalho Chehab { 0x07, KEY_7 }, 2732cf86f6SMauro Carvalho Chehab { 0x08, KEY_8 }, 2832cf86f6SMauro Carvalho Chehab { 0x09, KEY_9 }, 2932cf86f6SMauro Carvalho Chehab 3032cf86f6SMauro Carvalho Chehab { 0x5c, KEY_POWER }, /* power */ 3132cf86f6SMauro Carvalho Chehab { 0x20, KEY_ZOOM }, /* full screen */ 3232cf86f6SMauro Carvalho Chehab { 0x0f, KEY_BACKSPACE }, /* recall */ 3332cf86f6SMauro Carvalho Chehab { 0x1b, KEY_ENTER }, /* mute */ 3432cf86f6SMauro Carvalho Chehab { 0x41, KEY_RECORD }, /* record */ 3532cf86f6SMauro Carvalho Chehab { 0x43, KEY_STOP }, /* stop */ 3632cf86f6SMauro Carvalho Chehab { 0x16, KEY_S }, 3732cf86f6SMauro Carvalho Chehab { 0x1a, KEY_POWER2 }, /* off */ 3832cf86f6SMauro Carvalho Chehab { 0x2e, KEY_RED }, 3932cf86f6SMauro Carvalho Chehab { 0x1f, KEY_CHANNELDOWN }, /* channel - */ 4032cf86f6SMauro Carvalho Chehab { 0x1c, KEY_CHANNELUP }, /* channel + */ 4132cf86f6SMauro Carvalho Chehab { 0x10, KEY_VOLUMEDOWN }, /* volume - */ 4232cf86f6SMauro Carvalho Chehab { 0x1e, KEY_VOLUMEUP }, /* volume + */ 4332cf86f6SMauro Carvalho Chehab { 0x14, KEY_F1 }, 4432cf86f6SMauro Carvalho Chehab }; 4532cf86f6SMauro Carvalho Chehab 4632cf86f6SMauro Carvalho Chehab static struct rc_keymap proteus_2309_map = { 4732cf86f6SMauro Carvalho Chehab .map = { 4832cf86f6SMauro Carvalho Chehab .scan = proteus_2309, 4932cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(proteus_2309), 5052b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 5132cf86f6SMauro Carvalho Chehab .name = RC_MAP_PROTEUS_2309, 5232cf86f6SMauro Carvalho Chehab } 5332cf86f6SMauro Carvalho Chehab }; 5432cf86f6SMauro Carvalho Chehab 5532cf86f6SMauro Carvalho Chehab static int __init init_rc_map_proteus_2309(void) 5632cf86f6SMauro Carvalho Chehab { 5732cf86f6SMauro Carvalho Chehab return ir_register_map(&proteus_2309_map); 5832cf86f6SMauro Carvalho Chehab } 5932cf86f6SMauro Carvalho Chehab 6032cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_proteus_2309(void) 6132cf86f6SMauro Carvalho Chehab { 6232cf86f6SMauro Carvalho Chehab ir_unregister_map(&proteus_2309_map); 6332cf86f6SMauro Carvalho Chehab } 6432cf86f6SMauro Carvalho Chehab 6532cf86f6SMauro Carvalho Chehab module_init(init_rc_map_proteus_2309) 6632cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_proteus_2309) 6732cf86f6SMauro Carvalho Chehab 6832cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 6932cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 70