167cbf633Snibble.max /* rc-dvbsky.c - Keytable for DVBSky Remote Controllers
267cbf633Snibble.max  *
367cbf633Snibble.max  * keymap imported from ir-keymaps.c
467cbf633Snibble.max  *
567cbf633Snibble.max  *
667cbf633Snibble.max  * Copyright (c) 2010-2012 by Nibble Max <nibble.max@gmail.com>
767cbf633Snibble.max  *
867cbf633Snibble.max  * This program is free software; you can redistribute it and/or modify
967cbf633Snibble.max  * it under the terms of the GNU General Public License as published by
1067cbf633Snibble.max  * the Free Software Foundation; either version 2 of the License, or
1167cbf633Snibble.max  * (at your option) any later version.
1267cbf633Snibble.max  */
1367cbf633Snibble.max 
1467cbf633Snibble.max #include <media/rc-map.h>
1567cbf633Snibble.max #include <linux/module.h>
1667cbf633Snibble.max /*
1767cbf633Snibble.max  * This table contains the complete RC5 code, instead of just the data part
1867cbf633Snibble.max  */
1967cbf633Snibble.max 
2067cbf633Snibble.max static struct rc_map_table rc5_dvbsky[] = {
2167cbf633Snibble.max 	{ 0x0000, KEY_0 },
2267cbf633Snibble.max 	{ 0x0001, KEY_1 },
2367cbf633Snibble.max 	{ 0x0002, KEY_2 },
2467cbf633Snibble.max 	{ 0x0003, KEY_3 },
2567cbf633Snibble.max 	{ 0x0004, KEY_4 },
2667cbf633Snibble.max 	{ 0x0005, KEY_5 },
2767cbf633Snibble.max 	{ 0x0006, KEY_6 },
2867cbf633Snibble.max 	{ 0x0007, KEY_7 },
2967cbf633Snibble.max 	{ 0x0008, KEY_8 },
3067cbf633Snibble.max 	{ 0x0009, KEY_9 },
3167cbf633Snibble.max 	{ 0x000a, KEY_MUTE },
3267cbf633Snibble.max 	{ 0x000d, KEY_OK },
3367cbf633Snibble.max 	{ 0x000b, KEY_STOP },
3467cbf633Snibble.max 	{ 0x000c, KEY_EXIT },
3567cbf633Snibble.max 	{ 0x000e, KEY_CAMERA }, /*Snap shot*/
3667cbf633Snibble.max 	{ 0x000f, KEY_SUBTITLE }, /*PIP*/
3767cbf633Snibble.max 	{ 0x0010, KEY_VOLUMEUP },
3867cbf633Snibble.max 	{ 0x0011, KEY_VOLUMEDOWN },
3967cbf633Snibble.max 	{ 0x0012, KEY_FAVORITES },
4067cbf633Snibble.max 	{ 0x0013, KEY_LIST }, /*Info*/
4167cbf633Snibble.max 	{ 0x0016, KEY_PAUSE },
4267cbf633Snibble.max 	{ 0x0017, KEY_PLAY },
4367cbf633Snibble.max 	{ 0x001f, KEY_RECORD },
4467cbf633Snibble.max 	{ 0x0020, KEY_CHANNELDOWN },
4567cbf633Snibble.max 	{ 0x0021, KEY_CHANNELUP },
4667cbf633Snibble.max 	{ 0x0025, KEY_POWER2 },
4767cbf633Snibble.max 	{ 0x0026, KEY_REWIND },
4867cbf633Snibble.max 	{ 0x0027, KEY_FASTFORWARD },
4967cbf633Snibble.max 	{ 0x0029, KEY_LAST },
5067cbf633Snibble.max 	{ 0x002b, KEY_MENU },
5167cbf633Snibble.max 	{ 0x002c, KEY_EPG },
5267cbf633Snibble.max 	{ 0x002d, KEY_ZOOM },
5367cbf633Snibble.max };
5467cbf633Snibble.max 
5567cbf633Snibble.max static struct rc_map_list rc5_dvbsky_map = {
5667cbf633Snibble.max 	.map = {
5767cbf633Snibble.max 		.scan    = rc5_dvbsky,
5867cbf633Snibble.max 		.size    = ARRAY_SIZE(rc5_dvbsky),
5967cbf633Snibble.max 		.rc_type = RC_TYPE_RC5,
6067cbf633Snibble.max 		.name    = RC_MAP_DVBSKY,
6167cbf633Snibble.max 	}
6267cbf633Snibble.max };
6367cbf633Snibble.max 
6467cbf633Snibble.max static int __init init_rc_map_rc5_dvbsky(void)
6567cbf633Snibble.max {
6667cbf633Snibble.max 	return rc_map_register(&rc5_dvbsky_map);
6767cbf633Snibble.max }
6867cbf633Snibble.max 
6967cbf633Snibble.max static void __exit exit_rc_map_rc5_dvbsky(void)
7067cbf633Snibble.max {
7167cbf633Snibble.max 	rc_map_unregister(&rc5_dvbsky_map);
7267cbf633Snibble.max }
7367cbf633Snibble.max 
7467cbf633Snibble.max module_init(init_rc_map_rc5_dvbsky)
7567cbf633Snibble.max module_exit(exit_rc_map_rc5_dvbsky)
7667cbf633Snibble.max 
7767cbf633Snibble.max MODULE_LICENSE("GPL");
7867cbf633Snibble.max MODULE_AUTHOR("Nibble Max <nibble.max@gmail.com>");
79