1 // SPDX-License-Identifier: GPL-2.0+ 2 // pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller 3 // 4 // keymap imported from ir-keymaps.c 5 // 6 // Copyright (c) 2010 by Mauro Carvalho Chehab 7 8 #include <media/rc-map.h> 9 #include <linux/module.h> 10 11 static struct rc_map_table pinnacle_grey[] = { 12 { 0x3a, KEY_0 }, 13 { 0x31, KEY_1 }, 14 { 0x32, KEY_2 }, 15 { 0x33, KEY_3 }, 16 { 0x34, KEY_4 }, 17 { 0x35, KEY_5 }, 18 { 0x36, KEY_6 }, 19 { 0x37, KEY_7 }, 20 { 0x38, KEY_8 }, 21 { 0x39, KEY_9 }, 22 23 { 0x2f, KEY_POWER }, 24 25 { 0x2e, KEY_P }, 26 { 0x1f, KEY_L }, 27 { 0x2b, KEY_I }, 28 29 { 0x2d, KEY_SCREEN }, 30 { 0x1e, KEY_ZOOM }, 31 { 0x1b, KEY_VOLUMEUP }, 32 { 0x0f, KEY_VOLUMEDOWN }, 33 { 0x17, KEY_CHANNELUP }, 34 { 0x1c, KEY_CHANNELDOWN }, 35 { 0x25, KEY_INFO }, 36 37 { 0x3c, KEY_MUTE }, 38 39 { 0x3d, KEY_LEFT }, 40 { 0x3b, KEY_RIGHT }, 41 42 { 0x3f, KEY_UP }, 43 { 0x3e, KEY_DOWN }, 44 { 0x1a, KEY_ENTER }, 45 46 { 0x1d, KEY_MENU }, 47 { 0x19, KEY_AGAIN }, 48 { 0x16, KEY_PREVIOUSSONG }, 49 { 0x13, KEY_NEXTSONG }, 50 { 0x15, KEY_PAUSE }, 51 { 0x0e, KEY_REWIND }, 52 { 0x0d, KEY_PLAY }, 53 { 0x0b, KEY_STOP }, 54 { 0x07, KEY_FORWARD }, 55 { 0x27, KEY_RECORD }, 56 { 0x26, KEY_TUNER }, 57 { 0x29, KEY_TEXT }, 58 { 0x2a, KEY_MEDIA }, 59 { 0x18, KEY_EPG }, 60 }; 61 62 static struct rc_map_list pinnacle_grey_map = { 63 .map = { 64 .scan = pinnacle_grey, 65 .size = ARRAY_SIZE(pinnacle_grey), 66 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 67 .name = RC_MAP_PINNACLE_GREY, 68 } 69 }; 70 71 static int __init init_rc_map_pinnacle_grey(void) 72 { 73 return rc_map_register(&pinnacle_grey_map); 74 } 75 76 static void __exit exit_rc_map_pinnacle_grey(void) 77 { 78 rc_map_unregister(&pinnacle_grey_map); 79 } 80 81 module_init(init_rc_map_pinnacle_grey) 82 module_exit(exit_rc_map_pinnacle_grey) 83 84 MODULE_LICENSE("GPL"); 85 MODULE_AUTHOR("Mauro Carvalho Chehab"); 86