1*32cf86f6SMauro Carvalho Chehab /* pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller 2*32cf86f6SMauro Carvalho Chehab * 3*32cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 4*32cf86f6SMauro Carvalho Chehab * 5*32cf86f6SMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> 6*32cf86f6SMauro Carvalho Chehab * 7*32cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 8*32cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 9*32cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 10*32cf86f6SMauro Carvalho Chehab * (at your option) any later version. 11*32cf86f6SMauro Carvalho Chehab */ 12*32cf86f6SMauro Carvalho Chehab 13*32cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 14*32cf86f6SMauro Carvalho Chehab 15*32cf86f6SMauro Carvalho Chehab static struct ir_scancode pinnacle_grey[] = { 16*32cf86f6SMauro Carvalho Chehab { 0x3a, KEY_0 }, 17*32cf86f6SMauro Carvalho Chehab { 0x31, KEY_1 }, 18*32cf86f6SMauro Carvalho Chehab { 0x32, KEY_2 }, 19*32cf86f6SMauro Carvalho Chehab { 0x33, KEY_3 }, 20*32cf86f6SMauro Carvalho Chehab { 0x34, KEY_4 }, 21*32cf86f6SMauro Carvalho Chehab { 0x35, KEY_5 }, 22*32cf86f6SMauro Carvalho Chehab { 0x36, KEY_6 }, 23*32cf86f6SMauro Carvalho Chehab { 0x37, KEY_7 }, 24*32cf86f6SMauro Carvalho Chehab { 0x38, KEY_8 }, 25*32cf86f6SMauro Carvalho Chehab { 0x39, KEY_9 }, 26*32cf86f6SMauro Carvalho Chehab 27*32cf86f6SMauro Carvalho Chehab { 0x2f, KEY_POWER }, 28*32cf86f6SMauro Carvalho Chehab 29*32cf86f6SMauro Carvalho Chehab { 0x2e, KEY_P }, 30*32cf86f6SMauro Carvalho Chehab { 0x1f, KEY_L }, 31*32cf86f6SMauro Carvalho Chehab { 0x2b, KEY_I }, 32*32cf86f6SMauro Carvalho Chehab 33*32cf86f6SMauro Carvalho Chehab { 0x2d, KEY_SCREEN }, 34*32cf86f6SMauro Carvalho Chehab { 0x1e, KEY_ZOOM }, 35*32cf86f6SMauro Carvalho Chehab { 0x1b, KEY_VOLUMEUP }, 36*32cf86f6SMauro Carvalho Chehab { 0x0f, KEY_VOLUMEDOWN }, 37*32cf86f6SMauro Carvalho Chehab { 0x17, KEY_CHANNELUP }, 38*32cf86f6SMauro Carvalho Chehab { 0x1c, KEY_CHANNELDOWN }, 39*32cf86f6SMauro Carvalho Chehab { 0x25, KEY_INFO }, 40*32cf86f6SMauro Carvalho Chehab 41*32cf86f6SMauro Carvalho Chehab { 0x3c, KEY_MUTE }, 42*32cf86f6SMauro Carvalho Chehab 43*32cf86f6SMauro Carvalho Chehab { 0x3d, KEY_LEFT }, 44*32cf86f6SMauro Carvalho Chehab { 0x3b, KEY_RIGHT }, 45*32cf86f6SMauro Carvalho Chehab 46*32cf86f6SMauro Carvalho Chehab { 0x3f, KEY_UP }, 47*32cf86f6SMauro Carvalho Chehab { 0x3e, KEY_DOWN }, 48*32cf86f6SMauro Carvalho Chehab { 0x1a, KEY_ENTER }, 49*32cf86f6SMauro Carvalho Chehab 50*32cf86f6SMauro Carvalho Chehab { 0x1d, KEY_MENU }, 51*32cf86f6SMauro Carvalho Chehab { 0x19, KEY_AGAIN }, 52*32cf86f6SMauro Carvalho Chehab { 0x16, KEY_PREVIOUSSONG }, 53*32cf86f6SMauro Carvalho Chehab { 0x13, KEY_NEXTSONG }, 54*32cf86f6SMauro Carvalho Chehab { 0x15, KEY_PAUSE }, 55*32cf86f6SMauro Carvalho Chehab { 0x0e, KEY_REWIND }, 56*32cf86f6SMauro Carvalho Chehab { 0x0d, KEY_PLAY }, 57*32cf86f6SMauro Carvalho Chehab { 0x0b, KEY_STOP }, 58*32cf86f6SMauro Carvalho Chehab { 0x07, KEY_FORWARD }, 59*32cf86f6SMauro Carvalho Chehab { 0x27, KEY_RECORD }, 60*32cf86f6SMauro Carvalho Chehab { 0x26, KEY_TUNER }, 61*32cf86f6SMauro Carvalho Chehab { 0x29, KEY_TEXT }, 62*32cf86f6SMauro Carvalho Chehab { 0x2a, KEY_MEDIA }, 63*32cf86f6SMauro Carvalho Chehab { 0x18, KEY_EPG }, 64*32cf86f6SMauro Carvalho Chehab }; 65*32cf86f6SMauro Carvalho Chehab 66*32cf86f6SMauro Carvalho Chehab static struct rc_keymap pinnacle_grey_map = { 67*32cf86f6SMauro Carvalho Chehab .map = { 68*32cf86f6SMauro Carvalho Chehab .scan = pinnacle_grey, 69*32cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(pinnacle_grey), 70*32cf86f6SMauro Carvalho Chehab .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 71*32cf86f6SMauro Carvalho Chehab .name = RC_MAP_PINNACLE_GREY, 72*32cf86f6SMauro Carvalho Chehab } 73*32cf86f6SMauro Carvalho Chehab }; 74*32cf86f6SMauro Carvalho Chehab 75*32cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pinnacle_grey(void) 76*32cf86f6SMauro Carvalho Chehab { 77*32cf86f6SMauro Carvalho Chehab return ir_register_map(&pinnacle_grey_map); 78*32cf86f6SMauro Carvalho Chehab } 79*32cf86f6SMauro Carvalho Chehab 80*32cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pinnacle_grey(void) 81*32cf86f6SMauro Carvalho Chehab { 82*32cf86f6SMauro Carvalho Chehab ir_unregister_map(&pinnacle_grey_map); 83*32cf86f6SMauro Carvalho Chehab } 84*32cf86f6SMauro Carvalho Chehab 85*32cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pinnacle_grey) 86*32cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pinnacle_grey) 87*32cf86f6SMauro Carvalho Chehab 88*32cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 89*32cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 90