12874c5fdSThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later
267cbf633Snibble.max /* rc-dvbsky.c - Keytable for DVBSky Remote Controllers
367cbf633Snibble.max  *
467cbf633Snibble.max  * keymap imported from ir-keymaps.c
567cbf633Snibble.max  *
667cbf633Snibble.max  * Copyright (c) 2010-2012 by Nibble Max <nibble.max@gmail.com>
767cbf633Snibble.max  */
867cbf633Snibble.max 
967cbf633Snibble.max #include <media/rc-map.h>
1067cbf633Snibble.max #include <linux/module.h>
1167cbf633Snibble.max /*
1267cbf633Snibble.max  * This table contains the complete RC5 code, instead of just the data part
1367cbf633Snibble.max  */
1467cbf633Snibble.max 
1567cbf633Snibble.max static struct rc_map_table rc5_dvbsky[] = {
161910ea42SBastien Nocera 	{ 0x0000, KEY_NUMERIC_0 },
171910ea42SBastien Nocera 	{ 0x0001, KEY_NUMERIC_1 },
181910ea42SBastien Nocera 	{ 0x0002, KEY_NUMERIC_2 },
191910ea42SBastien Nocera 	{ 0x0003, KEY_NUMERIC_3 },
201910ea42SBastien Nocera 	{ 0x0004, KEY_NUMERIC_4 },
211910ea42SBastien Nocera 	{ 0x0005, KEY_NUMERIC_5 },
221910ea42SBastien Nocera 	{ 0x0006, KEY_NUMERIC_6 },
231910ea42SBastien Nocera 	{ 0x0007, KEY_NUMERIC_7 },
241910ea42SBastien Nocera 	{ 0x0008, KEY_NUMERIC_8 },
251910ea42SBastien Nocera 	{ 0x0009, KEY_NUMERIC_9 },
2667cbf633Snibble.max 	{ 0x000a, KEY_MUTE },
2767cbf633Snibble.max 	{ 0x000d, KEY_OK },
2867cbf633Snibble.max 	{ 0x000b, KEY_STOP },
2967cbf633Snibble.max 	{ 0x000c, KEY_EXIT },
3067cbf633Snibble.max 	{ 0x000e, KEY_CAMERA }, /*Snap shot*/
3167cbf633Snibble.max 	{ 0x000f, KEY_SUBTITLE }, /*PIP*/
3267cbf633Snibble.max 	{ 0x0010, KEY_VOLUMEUP },
3367cbf633Snibble.max 	{ 0x0011, KEY_VOLUMEDOWN },
3467cbf633Snibble.max 	{ 0x0012, KEY_FAVORITES },
3567cbf633Snibble.max 	{ 0x0013, KEY_LIST }, /*Info*/
3667cbf633Snibble.max 	{ 0x0016, KEY_PAUSE },
3767cbf633Snibble.max 	{ 0x0017, KEY_PLAY },
3867cbf633Snibble.max 	{ 0x001f, KEY_RECORD },
3967cbf633Snibble.max 	{ 0x0020, KEY_CHANNELDOWN },
4067cbf633Snibble.max 	{ 0x0021, KEY_CHANNELUP },
4167cbf633Snibble.max 	{ 0x0025, KEY_POWER2 },
4267cbf633Snibble.max 	{ 0x0026, KEY_REWIND },
4367cbf633Snibble.max 	{ 0x0027, KEY_FASTFORWARD },
4467cbf633Snibble.max 	{ 0x0029, KEY_LAST },
4567cbf633Snibble.max 	{ 0x002b, KEY_MENU },
4667cbf633Snibble.max 	{ 0x002c, KEY_EPG },
4767cbf633Snibble.max 	{ 0x002d, KEY_ZOOM },
4867cbf633Snibble.max };
4967cbf633Snibble.max 
5067cbf633Snibble.max static struct rc_map_list rc5_dvbsky_map = {
5167cbf633Snibble.max 	.map = {
5267cbf633Snibble.max 		.scan     = rc5_dvbsky,
5367cbf633Snibble.max 		.size     = ARRAY_SIZE(rc5_dvbsky),
546d741bfeSSean Young 		.rc_proto = RC_PROTO_RC5,
5567cbf633Snibble.max 		.name     = RC_MAP_DVBSKY,
5667cbf633Snibble.max 	}
5767cbf633Snibble.max };
5867cbf633Snibble.max 
init_rc_map_rc5_dvbsky(void)5967cbf633Snibble.max static int __init init_rc_map_rc5_dvbsky(void)
6067cbf633Snibble.max {
6167cbf633Snibble.max 	return rc_map_register(&rc5_dvbsky_map);
6267cbf633Snibble.max }
6367cbf633Snibble.max 
exit_rc_map_rc5_dvbsky(void)6467cbf633Snibble.max static void __exit exit_rc_map_rc5_dvbsky(void)
6567cbf633Snibble.max {
6667cbf633Snibble.max 	rc_map_unregister(&rc5_dvbsky_map);
6767cbf633Snibble.max }
6867cbf633Snibble.max 
6967cbf633Snibble.max module_init(init_rc_map_rc5_dvbsky)
7067cbf633Snibble.max module_exit(exit_rc_map_rc5_dvbsky)
7167cbf633Snibble.max 
7267cbf633Snibble.max MODULE_LICENSE("GPL");
7367cbf633Snibble.max MODULE_AUTHOR("Nibble Max <nibble.max@gmail.com>");
74