1 // SPDX-License-Identifier: GPL-2.0+ 2 // nebula.h - Keytable for nebula 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 nebula[] = { 12 { 0x0000, KEY_NUMERIC_0 }, 13 { 0x0001, KEY_NUMERIC_1 }, 14 { 0x0002, KEY_NUMERIC_2 }, 15 { 0x0003, KEY_NUMERIC_3 }, 16 { 0x0004, KEY_NUMERIC_4 }, 17 { 0x0005, KEY_NUMERIC_5 }, 18 { 0x0006, KEY_NUMERIC_6 }, 19 { 0x0007, KEY_NUMERIC_7 }, 20 { 0x0008, KEY_NUMERIC_8 }, 21 { 0x0009, KEY_NUMERIC_9 }, 22 { 0x000a, KEY_TV }, 23 { 0x000b, KEY_AUX }, 24 { 0x000c, KEY_DVD }, 25 { 0x000d, KEY_POWER }, 26 { 0x000e, KEY_CAMERA }, /* labelled 'Picture' */ 27 { 0x000f, KEY_AUDIO }, 28 { 0x0010, KEY_INFO }, 29 { 0x0011, KEY_F13 }, /* 16:9 */ 30 { 0x0012, KEY_F14 }, /* 14:9 */ 31 { 0x0013, KEY_EPG }, 32 { 0x0014, KEY_EXIT }, 33 { 0x0015, KEY_MENU }, 34 { 0x0016, KEY_UP }, 35 { 0x0017, KEY_DOWN }, 36 { 0x0018, KEY_LEFT }, 37 { 0x0019, KEY_RIGHT }, 38 { 0x001a, KEY_ENTER }, 39 { 0x001b, KEY_CHANNELUP }, 40 { 0x001c, KEY_CHANNELDOWN }, 41 { 0x001d, KEY_VOLUMEUP }, 42 { 0x001e, KEY_VOLUMEDOWN }, 43 { 0x001f, KEY_RED }, 44 { 0x0020, KEY_GREEN }, 45 { 0x0021, KEY_YELLOW }, 46 { 0x0022, KEY_BLUE }, 47 { 0x0023, KEY_SUBTITLE }, 48 { 0x0024, KEY_F15 }, /* AD */ 49 { 0x0025, KEY_TEXT }, 50 { 0x0026, KEY_MUTE }, 51 { 0x0027, KEY_REWIND }, 52 { 0x0028, KEY_STOP }, 53 { 0x0029, KEY_PLAY }, 54 { 0x002a, KEY_FASTFORWARD }, 55 { 0x002b, KEY_F16 }, /* chapter */ 56 { 0x002c, KEY_PAUSE }, 57 { 0x002d, KEY_PLAY }, 58 { 0x002e, KEY_RECORD }, 59 { 0x002f, KEY_F17 }, /* picture in picture */ 60 { 0x0030, KEY_KPPLUS }, /* zoom in */ 61 { 0x0031, KEY_KPMINUS }, /* zoom out */ 62 { 0x0032, KEY_F18 }, /* capture */ 63 { 0x0033, KEY_F19 }, /* web */ 64 { 0x0034, KEY_EMAIL }, 65 { 0x0035, KEY_PHONE }, 66 { 0x0036, KEY_PC }, 67 }; 68 69 static struct rc_map_list nebula_map = { 70 .map = { 71 .scan = nebula, 72 .size = ARRAY_SIZE(nebula), 73 .rc_proto = RC_PROTO_RC5, 74 .name = RC_MAP_NEBULA, 75 } 76 }; 77 78 static int __init init_rc_map_nebula(void) 79 { 80 return rc_map_register(&nebula_map); 81 } 82 83 static void __exit exit_rc_map_nebula(void) 84 { 85 rc_map_unregister(&nebula_map); 86 } 87 88 module_init(init_rc_map_nebula) 89 module_exit(exit_rc_map_nebula) 90 91 MODULE_LICENSE("GPL"); 92 MODULE_AUTHOR("Mauro Carvalho Chehab"); 93