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-evga-indtube.c (1298B)


      1// SPDX-License-Identifier: GPL-2.0+
      2// evga-indtube.h - Keytable for evga_indtube 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
     11/* EVGA inDtube
     12   Devin Heitmueller <devin.heitmueller@gmail.com>
     13 */
     14
     15static struct rc_map_table evga_indtube[] = {
     16	{ 0x12, KEY_POWER},
     17	{ 0x02, KEY_MODE},	/* TV */
     18	{ 0x14, KEY_MUTE},
     19	{ 0x1a, KEY_CHANNELUP},
     20	{ 0x16, KEY_TV2},	/* PIP */
     21	{ 0x1d, KEY_VOLUMEUP},
     22	{ 0x05, KEY_CHANNELDOWN},
     23	{ 0x0f, KEY_PLAYPAUSE},
     24	{ 0x19, KEY_VOLUMEDOWN},
     25	{ 0x1c, KEY_REWIND},
     26	{ 0x0d, KEY_RECORD},
     27	{ 0x18, KEY_FORWARD},
     28	{ 0x1e, KEY_PREVIOUS},
     29	{ 0x1b, KEY_STOP},
     30	{ 0x1f, KEY_NEXT},
     31	{ 0x13, KEY_CAMERA},
     32};
     33
     34static struct rc_map_list evga_indtube_map = {
     35	.map = {
     36		.scan     = evga_indtube,
     37		.size     = ARRAY_SIZE(evga_indtube),
     38		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
     39		.name     = RC_MAP_EVGA_INDTUBE,
     40	}
     41};
     42
     43static int __init init_rc_map_evga_indtube(void)
     44{
     45	return rc_map_register(&evga_indtube_map);
     46}
     47
     48static void __exit exit_rc_map_evga_indtube(void)
     49{
     50	rc_map_unregister(&evga_indtube_map);
     51}
     52
     53module_init(init_rc_map_evga_indtube)
     54module_exit(exit_rc_map_evga_indtube)
     55
     56MODULE_LICENSE("GPL");
     57MODULE_AUTHOR("Mauro Carvalho Chehab");