1 /* npgtech.h - Keytable for npgtech Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
15 static struct ir_scancode npgtech
[] = {
16 { 0x1d, KEY_SWITCHVIDEOMODE
}, /* switch inputs */
29 { 0x22, KEY_NUMLOCK
}, /* -/-- */
30 { 0x20, KEY_REFRESH
},
32 { 0x03, KEY_BRIGHTNESSDOWN
},
34 { 0x3c, KEY_CHANNELUP
},
35 { 0x3f, KEY_VOLUMEDOWN
},
37 { 0x3b, KEY_VOLUMEUP
},
38 { 0x00, KEY_CHANNELDOWN
},
39 { 0x07, KEY_BRIGHTNESSUP
},
46 { 0x18, KEY_FASTFORWARD
},
49 { 0x32, KEY_KEYBOARD
},
50 { 0x30, KEY_GOTO
}, /* Pointing arrow */
51 { 0x36, KEY_MACRO
}, /* Maximize/Minimize (yellow) */
57 static struct rc_keymap npgtech_map
= {
60 .size
= ARRAY_SIZE(npgtech
),
61 .ir_type
= IR_TYPE_UNKNOWN
, /* Legacy IR type */
62 .name
= RC_MAP_NPGTECH
,
66 static int __init
init_rc_map_npgtech(void)
68 return ir_register_map(&npgtech_map
);
71 static void __exit
exit_rc_map_npgtech(void)
73 ir_unregister_map(&npgtech_map
);
76 module_init(init_rc_map_npgtech
)
77 module_exit(exit_rc_map_npgtech
)
79 MODULE_LICENSE("GPL");
80 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
This page took 0.031882 seconds and 5 git commands to generate.