cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rc-dvbsky.c (1773B)


      1// SPDX-License-Identifier: GPL-2.0-or-later
      2/* rc-dvbsky.c - Keytable for DVBSky Remote Controllers
      3 *
      4 * keymap imported from ir-keymaps.c
      5 *
      6 * Copyright (c) 2010-2012 by Nibble Max <nibble.max@gmail.com>
      7 */
      8
      9#include <media/rc-map.h>
     10#include <linux/module.h>
     11/*
     12 * This table contains the complete RC5 code, instead of just the data part
     13 */
     14
     15static struct rc_map_table rc5_dvbsky[] = {
     16	{ 0x0000, KEY_NUMERIC_0 },
     17	{ 0x0001, KEY_NUMERIC_1 },
     18	{ 0x0002, KEY_NUMERIC_2 },
     19	{ 0x0003, KEY_NUMERIC_3 },
     20	{ 0x0004, KEY_NUMERIC_4 },
     21	{ 0x0005, KEY_NUMERIC_5 },
     22	{ 0x0006, KEY_NUMERIC_6 },
     23	{ 0x0007, KEY_NUMERIC_7 },
     24	{ 0x0008, KEY_NUMERIC_8 },
     25	{ 0x0009, KEY_NUMERIC_9 },
     26	{ 0x000a, KEY_MUTE },
     27	{ 0x000d, KEY_OK },
     28	{ 0x000b, KEY_STOP },
     29	{ 0x000c, KEY_EXIT },
     30	{ 0x000e, KEY_CAMERA }, /*Snap shot*/
     31	{ 0x000f, KEY_SUBTITLE }, /*PIP*/
     32	{ 0x0010, KEY_VOLUMEUP },
     33	{ 0x0011, KEY_VOLUMEDOWN },
     34	{ 0x0012, KEY_FAVORITES },
     35	{ 0x0013, KEY_LIST }, /*Info*/
     36	{ 0x0016, KEY_PAUSE },
     37	{ 0x0017, KEY_PLAY },
     38	{ 0x001f, KEY_RECORD },
     39	{ 0x0020, KEY_CHANNELDOWN },
     40	{ 0x0021, KEY_CHANNELUP },
     41	{ 0x0025, KEY_POWER2 },
     42	{ 0x0026, KEY_REWIND },
     43	{ 0x0027, KEY_FASTFORWARD },
     44	{ 0x0029, KEY_LAST },
     45	{ 0x002b, KEY_MENU },
     46	{ 0x002c, KEY_EPG },
     47	{ 0x002d, KEY_ZOOM },
     48};
     49
     50static struct rc_map_list rc5_dvbsky_map = {
     51	.map = {
     52		.scan     = rc5_dvbsky,
     53		.size     = ARRAY_SIZE(rc5_dvbsky),
     54		.rc_proto = RC_PROTO_RC5,
     55		.name     = RC_MAP_DVBSKY,
     56	}
     57};
     58
     59static int __init init_rc_map_rc5_dvbsky(void)
     60{
     61	return rc_map_register(&rc5_dvbsky_map);
     62}
     63
     64static void __exit exit_rc_map_rc5_dvbsky(void)
     65{
     66	rc_map_unregister(&rc5_dvbsky_map);
     67}
     68
     69module_init(init_rc_map_rc5_dvbsky)
     70module_exit(exit_rc_map_rc5_dvbsky)
     71
     72MODULE_LICENSE("GPL");
     73MODULE_AUTHOR("Nibble Max <nibble.max@gmail.com>");