xref: /linux/drivers/media/rc/keymaps/rc-npgtech.c (revision 37e59f876bc710d67a30b660826a5e83e07101ce)
132cf86f6SMauro Carvalho Chehab /* npgtech.h - Keytable for npgtech Remote Controller
232cf86f6SMauro Carvalho Chehab  *
332cf86f6SMauro Carvalho Chehab  * keymap imported from ir-keymaps.c
432cf86f6SMauro Carvalho Chehab  *
5*37e59f87SMauro Carvalho Chehab  * Copyright (c) 2010 by Mauro Carvalho Chehab
632cf86f6SMauro Carvalho Chehab  *
732cf86f6SMauro Carvalho Chehab  * This program is free software; you can redistribute it and/or modify
832cf86f6SMauro Carvalho Chehab  * it under the terms of the GNU General Public License as published by
932cf86f6SMauro Carvalho Chehab  * the Free Software Foundation; either version 2 of the License, or
1032cf86f6SMauro Carvalho Chehab  * (at your option) any later version.
1132cf86f6SMauro Carvalho Chehab  */
1232cf86f6SMauro Carvalho Chehab 
1332cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
147a707b89SPaul Gortmaker #include <linux/module.h>
1532cf86f6SMauro Carvalho Chehab 
162f4f58d6SMauro Carvalho Chehab static struct rc_map_table npgtech[] = {
1732cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_SWITCHVIDEOMODE },	/* switch inputs */
1832cf86f6SMauro Carvalho Chehab 	{ 0x2a, KEY_FRONT },
1932cf86f6SMauro Carvalho Chehab 
2032cf86f6SMauro Carvalho Chehab 	{ 0x3e, KEY_1 },
2132cf86f6SMauro Carvalho Chehab 	{ 0x02, KEY_2 },
2232cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_3 },
2332cf86f6SMauro Carvalho Chehab 	{ 0x0a, KEY_4 },
2432cf86f6SMauro Carvalho Chehab 	{ 0x0e, KEY_5 },
2532cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_6 },
2632cf86f6SMauro Carvalho Chehab 	{ 0x16, KEY_7 },
2732cf86f6SMauro Carvalho Chehab 	{ 0x1a, KEY_8 },
2832cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_9 },
2932cf86f6SMauro Carvalho Chehab 	{ 0x3a, KEY_0 },
3032cf86f6SMauro Carvalho Chehab 	{ 0x22, KEY_NUMLOCK },		/* -/-- */
3132cf86f6SMauro Carvalho Chehab 	{ 0x20, KEY_REFRESH },
3232cf86f6SMauro Carvalho Chehab 
3332cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_BRIGHTNESSDOWN },
3432cf86f6SMauro Carvalho Chehab 	{ 0x28, KEY_AUDIO },
3532cf86f6SMauro Carvalho Chehab 	{ 0x3c, KEY_CHANNELUP },
3632cf86f6SMauro Carvalho Chehab 	{ 0x3f, KEY_VOLUMEDOWN },
3732cf86f6SMauro Carvalho Chehab 	{ 0x2e, KEY_MUTE },
3832cf86f6SMauro Carvalho Chehab 	{ 0x3b, KEY_VOLUMEUP },
3932cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_CHANNELDOWN },
4032cf86f6SMauro Carvalho Chehab 	{ 0x07, KEY_BRIGHTNESSUP },
4132cf86f6SMauro Carvalho Chehab 	{ 0x2c, KEY_TEXT },
4232cf86f6SMauro Carvalho Chehab 
4332cf86f6SMauro Carvalho Chehab 	{ 0x37, KEY_RECORD },
4432cf86f6SMauro Carvalho Chehab 	{ 0x17, KEY_PLAY },
4532cf86f6SMauro Carvalho Chehab 	{ 0x13, KEY_PAUSE },
4632cf86f6SMauro Carvalho Chehab 	{ 0x26, KEY_STOP },
4732cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_FASTFORWARD },
4832cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_REWIND },
4932cf86f6SMauro Carvalho Chehab 	{ 0x33, KEY_ZOOM },
5032cf86f6SMauro Carvalho Chehab 	{ 0x32, KEY_KEYBOARD },
5132cf86f6SMauro Carvalho Chehab 	{ 0x30, KEY_GOTO },		/* Pointing arrow */
5232cf86f6SMauro Carvalho Chehab 	{ 0x36, KEY_MACRO },		/* Maximize/Minimize (yellow) */
5332cf86f6SMauro Carvalho Chehab 	{ 0x0b, KEY_RADIO },
5432cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_POWER },
5532cf86f6SMauro Carvalho Chehab 
5632cf86f6SMauro Carvalho Chehab };
5732cf86f6SMauro Carvalho Chehab 
58d100e659SMauro Carvalho Chehab static struct rc_map_list npgtech_map = {
5932cf86f6SMauro Carvalho Chehab 	.map = {
6032cf86f6SMauro Carvalho Chehab 		.scan    = npgtech,
6132cf86f6SMauro Carvalho Chehab 		.size    = ARRAY_SIZE(npgtech),
6252b66144SMauro Carvalho Chehab 		.rc_type = RC_TYPE_UNKNOWN,	/* Legacy IR type */
6332cf86f6SMauro Carvalho Chehab 		.name    = RC_MAP_NPGTECH,
6432cf86f6SMauro Carvalho Chehab 	}
6532cf86f6SMauro Carvalho Chehab };
6632cf86f6SMauro Carvalho Chehab 
6732cf86f6SMauro Carvalho Chehab static int __init init_rc_map_npgtech(void)
6832cf86f6SMauro Carvalho Chehab {
69d100e659SMauro Carvalho Chehab 	return rc_map_register(&npgtech_map);
7032cf86f6SMauro Carvalho Chehab }
7132cf86f6SMauro Carvalho Chehab 
7232cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_npgtech(void)
7332cf86f6SMauro Carvalho Chehab {
74d100e659SMauro Carvalho Chehab 	rc_map_unregister(&npgtech_map);
7532cf86f6SMauro Carvalho Chehab }
7632cf86f6SMauro Carvalho Chehab 
7732cf86f6SMauro Carvalho Chehab module_init(init_rc_map_npgtech)
7832cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_npgtech)
7932cf86f6SMauro Carvalho Chehab 
8032cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
81*37e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
82