rc-tevii-nec.c (1841B)
1// SPDX-License-Identifier: GPL-2.0+ 2// tevii-nec.h - Keytable for tevii_nec 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 11static struct rc_map_table tevii_nec[] = { 12 { 0x0a, KEY_POWER2}, 13 { 0x0c, KEY_MUTE}, 14 { 0x11, KEY_NUMERIC_1}, 15 { 0x12, KEY_NUMERIC_2}, 16 { 0x13, KEY_NUMERIC_3}, 17 { 0x14, KEY_NUMERIC_4}, 18 { 0x15, KEY_NUMERIC_5}, 19 { 0x16, KEY_NUMERIC_6}, 20 { 0x17, KEY_NUMERIC_7}, 21 { 0x18, KEY_NUMERIC_8}, 22 { 0x19, KEY_NUMERIC_9}, 23 { 0x10, KEY_NUMERIC_0}, 24 { 0x1c, KEY_MENU}, 25 { 0x0f, KEY_VOLUMEDOWN}, 26 { 0x1a, KEY_LAST}, 27 { 0x0e, KEY_OPEN}, 28 { 0x04, KEY_RECORD}, 29 { 0x09, KEY_VOLUMEUP}, 30 { 0x08, KEY_CHANNELUP}, 31 { 0x07, KEY_PVR}, 32 { 0x0b, KEY_TIME}, 33 { 0x02, KEY_RIGHT}, 34 { 0x03, KEY_LEFT}, 35 { 0x00, KEY_UP}, 36 { 0x1f, KEY_OK}, 37 { 0x01, KEY_DOWN}, 38 { 0x05, KEY_TUNER}, 39 { 0x06, KEY_CHANNELDOWN}, 40 { 0x40, KEY_PLAYPAUSE}, 41 { 0x1e, KEY_REWIND}, 42 { 0x1b, KEY_FAVORITES}, 43 { 0x1d, KEY_BACK}, 44 { 0x4d, KEY_FASTFORWARD}, 45 { 0x44, KEY_EPG}, 46 { 0x4c, KEY_INFO}, 47 { 0x41, KEY_AB}, 48 { 0x43, KEY_AUDIO}, 49 { 0x45, KEY_SUBTITLE}, 50 { 0x4a, KEY_LIST}, 51 { 0x46, KEY_F1}, 52 { 0x47, KEY_F2}, 53 { 0x5e, KEY_F3}, 54 { 0x5c, KEY_F4}, 55 { 0x52, KEY_F5}, 56 { 0x5a, KEY_F6}, 57 { 0x56, KEY_MODE}, 58 { 0x58, KEY_SWITCHVIDEOMODE}, 59}; 60 61static struct rc_map_list tevii_nec_map = { 62 .map = { 63 .scan = tevii_nec, 64 .size = ARRAY_SIZE(tevii_nec), 65 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 66 .name = RC_MAP_TEVII_NEC, 67 } 68}; 69 70static int __init init_rc_map_tevii_nec(void) 71{ 72 return rc_map_register(&tevii_nec_map); 73} 74 75static void __exit exit_rc_map_tevii_nec(void) 76{ 77 rc_map_unregister(&tevii_nec_map); 78} 79 80module_init(init_rc_map_tevii_nec) 81module_exit(exit_rc_map_tevii_nec) 82 83MODULE_LICENSE("GPL"); 84MODULE_AUTHOR("Mauro Carvalho Chehab");