132cf86f6SMauro Carvalho Chehab /* pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 432cf86f6SMauro Carvalho Chehab * 5*37e59f87SMauro 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 162f4f58d6SMauro Carvalho Chehab static struct rc_map_table pinnacle_grey[] = { 1732cf86f6SMauro Carvalho Chehab { 0x3a, KEY_0 }, 1832cf86f6SMauro Carvalho Chehab { 0x31, KEY_1 }, 1932cf86f6SMauro Carvalho Chehab { 0x32, KEY_2 }, 2032cf86f6SMauro Carvalho Chehab { 0x33, KEY_3 }, 2132cf86f6SMauro Carvalho Chehab { 0x34, KEY_4 }, 2232cf86f6SMauro Carvalho Chehab { 0x35, KEY_5 }, 2332cf86f6SMauro Carvalho Chehab { 0x36, KEY_6 }, 2432cf86f6SMauro Carvalho Chehab { 0x37, KEY_7 }, 2532cf86f6SMauro Carvalho Chehab { 0x38, KEY_8 }, 2632cf86f6SMauro Carvalho Chehab { 0x39, KEY_9 }, 2732cf86f6SMauro Carvalho Chehab 2832cf86f6SMauro Carvalho Chehab { 0x2f, KEY_POWER }, 2932cf86f6SMauro Carvalho Chehab 3032cf86f6SMauro Carvalho Chehab { 0x2e, KEY_P }, 3132cf86f6SMauro Carvalho Chehab { 0x1f, KEY_L }, 3232cf86f6SMauro Carvalho Chehab { 0x2b, KEY_I }, 3332cf86f6SMauro Carvalho Chehab 3432cf86f6SMauro Carvalho Chehab { 0x2d, KEY_SCREEN }, 3532cf86f6SMauro Carvalho Chehab { 0x1e, KEY_ZOOM }, 3632cf86f6SMauro Carvalho Chehab { 0x1b, KEY_VOLUMEUP }, 3732cf86f6SMauro Carvalho Chehab { 0x0f, KEY_VOLUMEDOWN }, 3832cf86f6SMauro Carvalho Chehab { 0x17, KEY_CHANNELUP }, 3932cf86f6SMauro Carvalho Chehab { 0x1c, KEY_CHANNELDOWN }, 4032cf86f6SMauro Carvalho Chehab { 0x25, KEY_INFO }, 4132cf86f6SMauro Carvalho Chehab 4232cf86f6SMauro Carvalho Chehab { 0x3c, KEY_MUTE }, 4332cf86f6SMauro Carvalho Chehab 4432cf86f6SMauro Carvalho Chehab { 0x3d, KEY_LEFT }, 4532cf86f6SMauro Carvalho Chehab { 0x3b, KEY_RIGHT }, 4632cf86f6SMauro Carvalho Chehab 4732cf86f6SMauro Carvalho Chehab { 0x3f, KEY_UP }, 4832cf86f6SMauro Carvalho Chehab { 0x3e, KEY_DOWN }, 4932cf86f6SMauro Carvalho Chehab { 0x1a, KEY_ENTER }, 5032cf86f6SMauro Carvalho Chehab 5132cf86f6SMauro Carvalho Chehab { 0x1d, KEY_MENU }, 5232cf86f6SMauro Carvalho Chehab { 0x19, KEY_AGAIN }, 5332cf86f6SMauro Carvalho Chehab { 0x16, KEY_PREVIOUSSONG }, 5432cf86f6SMauro Carvalho Chehab { 0x13, KEY_NEXTSONG }, 5532cf86f6SMauro Carvalho Chehab { 0x15, KEY_PAUSE }, 5632cf86f6SMauro Carvalho Chehab { 0x0e, KEY_REWIND }, 5732cf86f6SMauro Carvalho Chehab { 0x0d, KEY_PLAY }, 5832cf86f6SMauro Carvalho Chehab { 0x0b, KEY_STOP }, 5932cf86f6SMauro Carvalho Chehab { 0x07, KEY_FORWARD }, 6032cf86f6SMauro Carvalho Chehab { 0x27, KEY_RECORD }, 6132cf86f6SMauro Carvalho Chehab { 0x26, KEY_TUNER }, 6232cf86f6SMauro Carvalho Chehab { 0x29, KEY_TEXT }, 6332cf86f6SMauro Carvalho Chehab { 0x2a, KEY_MEDIA }, 6432cf86f6SMauro Carvalho Chehab { 0x18, KEY_EPG }, 6532cf86f6SMauro Carvalho Chehab }; 6632cf86f6SMauro Carvalho Chehab 67d100e659SMauro Carvalho Chehab static struct rc_map_list pinnacle_grey_map = { 6832cf86f6SMauro Carvalho Chehab .map = { 6932cf86f6SMauro Carvalho Chehab .scan = pinnacle_grey, 7032cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(pinnacle_grey), 7152b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 7232cf86f6SMauro Carvalho Chehab .name = RC_MAP_PINNACLE_GREY, 7332cf86f6SMauro Carvalho Chehab } 7432cf86f6SMauro Carvalho Chehab }; 7532cf86f6SMauro Carvalho Chehab 7632cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pinnacle_grey(void) 7732cf86f6SMauro Carvalho Chehab { 78d100e659SMauro Carvalho Chehab return rc_map_register(&pinnacle_grey_map); 7932cf86f6SMauro Carvalho Chehab } 8032cf86f6SMauro Carvalho Chehab 8132cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pinnacle_grey(void) 8232cf86f6SMauro Carvalho Chehab { 83d100e659SMauro Carvalho Chehab rc_map_unregister(&pinnacle_grey_map); 8432cf86f6SMauro Carvalho Chehab } 8532cf86f6SMauro Carvalho Chehab 8632cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pinnacle_grey) 8732cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pinnacle_grey) 8832cf86f6SMauro Carvalho Chehab 8932cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 90*37e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab"); 91