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-flyvideo.c (1735B)


      1// SPDX-License-Identifier: GPL-2.0+
      2// flyvideo.h - Keytable for flyvideo Remote Controller
      3//
      4// keymap imported from ir-keymaps.c
      5//
      6// Copyright (c) 2010 by Mauro Carvalho Chehab
      7
      8#include <media/rc-map.h>
      9#include <linux/module.h>
     10
     11static struct rc_map_table flyvideo[] = {
     12	{ 0x0f, KEY_NUMERIC_0 },
     13	{ 0x03, KEY_NUMERIC_1 },
     14	{ 0x04, KEY_NUMERIC_2 },
     15	{ 0x05, KEY_NUMERIC_3 },
     16	{ 0x07, KEY_NUMERIC_4 },
     17	{ 0x08, KEY_NUMERIC_5 },
     18	{ 0x09, KEY_NUMERIC_6 },
     19	{ 0x0b, KEY_NUMERIC_7 },
     20	{ 0x0c, KEY_NUMERIC_8 },
     21	{ 0x0d, KEY_NUMERIC_9 },
     22
     23	{ 0x0e, KEY_MODE },	/* Air/Cable */
     24	{ 0x11, KEY_VIDEO },	/* Video */
     25	{ 0x15, KEY_AUDIO },	/* Audio */
     26	{ 0x00, KEY_POWER },	/* Power */
     27	{ 0x18, KEY_TUNER },	/* AV Source */
     28	{ 0x02, KEY_ZOOM },	/* Fullscreen */
     29	{ 0x1a, KEY_LANGUAGE },	/* Stereo */
     30	{ 0x1b, KEY_MUTE },	/* Mute */
     31	{ 0x14, KEY_VOLUMEUP },	/* Volume + */
     32	{ 0x17, KEY_VOLUMEDOWN },/* Volume - */
     33	{ 0x12, KEY_CHANNELUP },/* Channel + */
     34	{ 0x13, KEY_CHANNELDOWN },/* Channel - */
     35	{ 0x06, KEY_AGAIN },	/* Recall */
     36	{ 0x10, KEY_ENTER },	/* Enter */
     37
     38	{ 0x19, KEY_BACK },	/* Rewind  ( <<< ) */
     39	{ 0x1f, KEY_FORWARD },	/* Forward ( >>> ) */
     40	{ 0x0a, KEY_ANGLE },	/* no label, may be used as the PAUSE button */
     41};
     42
     43static struct rc_map_list flyvideo_map = {
     44	.map = {
     45		.scan     = flyvideo,
     46		.size     = ARRAY_SIZE(flyvideo),
     47		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
     48		.name     = RC_MAP_FLYVIDEO,
     49	}
     50};
     51
     52static int __init init_rc_map_flyvideo(void)
     53{
     54	return rc_map_register(&flyvideo_map);
     55}
     56
     57static void __exit exit_rc_map_flyvideo(void)
     58{
     59	rc_map_unregister(&flyvideo_map);
     60}
     61
     62module_init(init_rc_map_flyvideo)
     63module_exit(exit_rc_map_flyvideo)
     64
     65MODULE_LICENSE("GPL");
     66MODULE_AUTHOR("Mauro Carvalho Chehab");