xref: /openbmc/linux/drivers/media/rc/keymaps/rc-budget-ci-old.c (revision 6d741bfed5ed06ed42a16d30f1ed7afdcaf7f092)
132cf86f6SMauro Carvalho Chehab /* budget-ci-old.h - Keytable for budget_ci_old Remote Controller
232cf86f6SMauro Carvalho Chehab  *
332cf86f6SMauro Carvalho Chehab  * keymap imported from ir-keymaps.c
432cf86f6SMauro Carvalho Chehab  *
537e59f87SMauro 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 
16444cc20bSMauro Carvalho Chehab /*
17444cc20bSMauro Carvalho Chehab  * From reading the following remotes:
1832cf86f6SMauro Carvalho Chehab  * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
1932cf86f6SMauro Carvalho Chehab  * Hauppauge (from NOVA-CI-s box product)
2032cf86f6SMauro Carvalho Chehab  * This is a "middle of the road" approach, differences are noted
2132cf86f6SMauro Carvalho Chehab  */
2232cf86f6SMauro Carvalho Chehab 
232f4f58d6SMauro Carvalho Chehab static struct rc_map_table budget_ci_old[] = {
2432cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_0 },
2532cf86f6SMauro Carvalho Chehab 	{ 0x01, KEY_1 },
2632cf86f6SMauro Carvalho Chehab 	{ 0x02, KEY_2 },
2732cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_3 },
2832cf86f6SMauro Carvalho Chehab 	{ 0x04, KEY_4 },
2932cf86f6SMauro Carvalho Chehab 	{ 0x05, KEY_5 },
3032cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_6 },
3132cf86f6SMauro Carvalho Chehab 	{ 0x07, KEY_7 },
3232cf86f6SMauro Carvalho Chehab 	{ 0x08, KEY_8 },
3332cf86f6SMauro Carvalho Chehab 	{ 0x09, KEY_9 },
3432cf86f6SMauro Carvalho Chehab 	{ 0x0a, KEY_ENTER },
3532cf86f6SMauro Carvalho Chehab 	{ 0x0b, KEY_RED },
3632cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_POWER },		/* RADIO on Hauppauge */
3732cf86f6SMauro Carvalho Chehab 	{ 0x0d, KEY_MUTE },
3832cf86f6SMauro Carvalho Chehab 	{ 0x0f, KEY_A },		/* TV on Hauppauge */
3932cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_VOLUMEUP },
4032cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_VOLUMEDOWN },
4132cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_B },
4232cf86f6SMauro Carvalho Chehab 	{ 0x1c, KEY_UP },
4332cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_DOWN },
4432cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_OPTION },		/* RESERVED on Hauppauge */
4532cf86f6SMauro Carvalho Chehab 	{ 0x1f, KEY_BREAK },
4632cf86f6SMauro Carvalho Chehab 	{ 0x20, KEY_CHANNELUP },
4732cf86f6SMauro Carvalho Chehab 	{ 0x21, KEY_CHANNELDOWN },
4832cf86f6SMauro Carvalho Chehab 	{ 0x22, KEY_PREVIOUS },		/* Prev Ch on Zenith, SOURCE on Hauppauge */
4932cf86f6SMauro Carvalho Chehab 	{ 0x24, KEY_RESTART },
5032cf86f6SMauro Carvalho Chehab 	{ 0x25, KEY_OK },
5132cf86f6SMauro Carvalho Chehab 	{ 0x26, KEY_CYCLEWINDOWS },	/* MINIMIZE on Hauppauge */
5232cf86f6SMauro Carvalho Chehab 	{ 0x28, KEY_ENTER },		/* VCR mode on Zenith */
5332cf86f6SMauro Carvalho Chehab 	{ 0x29, KEY_PAUSE },
5432cf86f6SMauro Carvalho Chehab 	{ 0x2b, KEY_RIGHT },
5532cf86f6SMauro Carvalho Chehab 	{ 0x2c, KEY_LEFT },
5632cf86f6SMauro Carvalho Chehab 	{ 0x2e, KEY_MENU },		/* FULL SCREEN on Hauppauge */
5732cf86f6SMauro Carvalho Chehab 	{ 0x30, KEY_SLOW },
5832cf86f6SMauro Carvalho Chehab 	{ 0x31, KEY_PREVIOUS },		/* VCR mode on Zenith */
5932cf86f6SMauro Carvalho Chehab 	{ 0x32, KEY_REWIND },
6032cf86f6SMauro Carvalho Chehab 	{ 0x34, KEY_FASTFORWARD },
6132cf86f6SMauro Carvalho Chehab 	{ 0x35, KEY_PLAY },
6232cf86f6SMauro Carvalho Chehab 	{ 0x36, KEY_STOP },
6332cf86f6SMauro Carvalho Chehab 	{ 0x37, KEY_RECORD },
6432cf86f6SMauro Carvalho Chehab 	{ 0x38, KEY_TUNER },		/* TV/VCR on Zenith */
6532cf86f6SMauro Carvalho Chehab 	{ 0x3a, KEY_C },
6632cf86f6SMauro Carvalho Chehab 	{ 0x3c, KEY_EXIT },
6732cf86f6SMauro Carvalho Chehab 	{ 0x3d, KEY_POWER2 },
6832cf86f6SMauro Carvalho Chehab 	{ 0x3e, KEY_TUNER },
6932cf86f6SMauro Carvalho Chehab };
7032cf86f6SMauro Carvalho Chehab 
71d100e659SMauro Carvalho Chehab static struct rc_map_list budget_ci_old_map = {
7232cf86f6SMauro Carvalho Chehab 	.map = {
7332cf86f6SMauro Carvalho Chehab 		.scan     = budget_ci_old,
7432cf86f6SMauro Carvalho Chehab 		.size     = ARRAY_SIZE(budget_ci_old),
75*6d741bfeSSean Young 		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
7632cf86f6SMauro Carvalho Chehab 		.name     = RC_MAP_BUDGET_CI_OLD,
7732cf86f6SMauro Carvalho Chehab 	}
7832cf86f6SMauro Carvalho Chehab };
7932cf86f6SMauro Carvalho Chehab 
8032cf86f6SMauro Carvalho Chehab static int __init init_rc_map_budget_ci_old(void)
8132cf86f6SMauro Carvalho Chehab {
82d100e659SMauro Carvalho Chehab 	return rc_map_register(&budget_ci_old_map);
8332cf86f6SMauro Carvalho Chehab }
8432cf86f6SMauro Carvalho Chehab 
8532cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_budget_ci_old(void)
8632cf86f6SMauro Carvalho Chehab {
87d100e659SMauro Carvalho Chehab 	rc_map_unregister(&budget_ci_old_map);
8832cf86f6SMauro Carvalho Chehab }
8932cf86f6SMauro Carvalho Chehab 
9032cf86f6SMauro Carvalho Chehab module_init(init_rc_map_budget_ci_old)
9132cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_budget_ci_old)
9232cf86f6SMauro Carvalho Chehab 
9332cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
9437e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
95