132cf86f6SMauro Carvalho Chehab /* nebula.h - Keytable for nebula Remote Controller
232cf86f6SMauro Carvalho Chehab  *
332cf86f6SMauro Carvalho Chehab  * keymap imported from ir-keymaps.c
432cf86f6SMauro Carvalho Chehab  *
532cf86f6SMauro Carvalho Chehab  * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
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>
1432cf86f6SMauro Carvalho Chehab 
1532cf86f6SMauro Carvalho Chehab static struct ir_scancode nebula[] = {
1632cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_0 },
1732cf86f6SMauro Carvalho Chehab 	{ 0x01, KEY_1 },
1832cf86f6SMauro Carvalho Chehab 	{ 0x02, KEY_2 },
1932cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_3 },
2032cf86f6SMauro Carvalho Chehab 	{ 0x04, KEY_4 },
2132cf86f6SMauro Carvalho Chehab 	{ 0x05, KEY_5 },
2232cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_6 },
2332cf86f6SMauro Carvalho Chehab 	{ 0x07, KEY_7 },
2432cf86f6SMauro Carvalho Chehab 	{ 0x08, KEY_8 },
2532cf86f6SMauro Carvalho Chehab 	{ 0x09, KEY_9 },
2632cf86f6SMauro Carvalho Chehab 	{ 0x0a, KEY_TV },
2732cf86f6SMauro Carvalho Chehab 	{ 0x0b, KEY_AUX },
2832cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_DVD },
2932cf86f6SMauro Carvalho Chehab 	{ 0x0d, KEY_POWER },
3032cf86f6SMauro Carvalho Chehab 	{ 0x0e, KEY_MHP },	/* labelled 'Picture' */
3132cf86f6SMauro Carvalho Chehab 	{ 0x0f, KEY_AUDIO },
3232cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_INFO },
3332cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_F13 },	/* 16:9 */
3432cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_F14 },	/* 14:9 */
3532cf86f6SMauro Carvalho Chehab 	{ 0x13, KEY_EPG },
3632cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_EXIT },
3732cf86f6SMauro Carvalho Chehab 	{ 0x15, KEY_MENU },
3832cf86f6SMauro Carvalho Chehab 	{ 0x16, KEY_UP },
3932cf86f6SMauro Carvalho Chehab 	{ 0x17, KEY_DOWN },
4032cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_LEFT },
4132cf86f6SMauro Carvalho Chehab 	{ 0x19, KEY_RIGHT },
4232cf86f6SMauro Carvalho Chehab 	{ 0x1a, KEY_ENTER },
4332cf86f6SMauro Carvalho Chehab 	{ 0x1b, KEY_CHANNELUP },
4432cf86f6SMauro Carvalho Chehab 	{ 0x1c, KEY_CHANNELDOWN },
4532cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_VOLUMEUP },
4632cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_VOLUMEDOWN },
4732cf86f6SMauro Carvalho Chehab 	{ 0x1f, KEY_RED },
4832cf86f6SMauro Carvalho Chehab 	{ 0x20, KEY_GREEN },
4932cf86f6SMauro Carvalho Chehab 	{ 0x21, KEY_YELLOW },
5032cf86f6SMauro Carvalho Chehab 	{ 0x22, KEY_BLUE },
5132cf86f6SMauro Carvalho Chehab 	{ 0x23, KEY_SUBTITLE },
5232cf86f6SMauro Carvalho Chehab 	{ 0x24, KEY_F15 },	/* AD */
5332cf86f6SMauro Carvalho Chehab 	{ 0x25, KEY_TEXT },
5432cf86f6SMauro Carvalho Chehab 	{ 0x26, KEY_MUTE },
5532cf86f6SMauro Carvalho Chehab 	{ 0x27, KEY_REWIND },
5632cf86f6SMauro Carvalho Chehab 	{ 0x28, KEY_STOP },
5732cf86f6SMauro Carvalho Chehab 	{ 0x29, KEY_PLAY },
5832cf86f6SMauro Carvalho Chehab 	{ 0x2a, KEY_FASTFORWARD },
5932cf86f6SMauro Carvalho Chehab 	{ 0x2b, KEY_F16 },	/* chapter */
6032cf86f6SMauro Carvalho Chehab 	{ 0x2c, KEY_PAUSE },
6132cf86f6SMauro Carvalho Chehab 	{ 0x2d, KEY_PLAY },
6232cf86f6SMauro Carvalho Chehab 	{ 0x2e, KEY_RECORD },
6332cf86f6SMauro Carvalho Chehab 	{ 0x2f, KEY_F17 },	/* picture in picture */
6432cf86f6SMauro Carvalho Chehab 	{ 0x30, KEY_KPPLUS },	/* zoom in */
6532cf86f6SMauro Carvalho Chehab 	{ 0x31, KEY_KPMINUS },	/* zoom out */
6632cf86f6SMauro Carvalho Chehab 	{ 0x32, KEY_F18 },	/* capture */
6732cf86f6SMauro Carvalho Chehab 	{ 0x33, KEY_F19 },	/* web */
6832cf86f6SMauro Carvalho Chehab 	{ 0x34, KEY_EMAIL },
6932cf86f6SMauro Carvalho Chehab 	{ 0x35, KEY_PHONE },
7032cf86f6SMauro Carvalho Chehab 	{ 0x36, KEY_PC },
7132cf86f6SMauro Carvalho Chehab };
7232cf86f6SMauro Carvalho Chehab 
7332cf86f6SMauro Carvalho Chehab static struct rc_keymap nebula_map = {
7432cf86f6SMauro Carvalho Chehab 	.map = {
7532cf86f6SMauro Carvalho Chehab 		.scan    = nebula,
7632cf86f6SMauro Carvalho Chehab 		.size    = ARRAY_SIZE(nebula),
7752b66144SMauro Carvalho Chehab 		.rc_type = RC_TYPE_UNKNOWN,	/* Legacy IR type */
7832cf86f6SMauro Carvalho Chehab 		.name    = RC_MAP_NEBULA,
7932cf86f6SMauro Carvalho Chehab 	}
8032cf86f6SMauro Carvalho Chehab };
8132cf86f6SMauro Carvalho Chehab 
8232cf86f6SMauro Carvalho Chehab static int __init init_rc_map_nebula(void)
8332cf86f6SMauro Carvalho Chehab {
8432cf86f6SMauro Carvalho Chehab 	return ir_register_map(&nebula_map);
8532cf86f6SMauro Carvalho Chehab }
8632cf86f6SMauro Carvalho Chehab 
8732cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_nebula(void)
8832cf86f6SMauro Carvalho Chehab {
8932cf86f6SMauro Carvalho Chehab 	ir_unregister_map(&nebula_map);
9032cf86f6SMauro Carvalho Chehab }
9132cf86f6SMauro Carvalho Chehab 
9232cf86f6SMauro Carvalho Chehab module_init(init_rc_map_nebula)
9332cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_nebula)
9432cf86f6SMauro Carvalho Chehab 
9532cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
9632cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
97