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-em-terratec.c (1514B)


      1// SPDX-License-Identifier: GPL-2.0+
      2// em-terratec.h - Keytable for em_terratec 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 em_terratec[] = {
     12	{ 0x01, KEY_CHANNEL },
     13	{ 0x02, KEY_SELECT },
     14	{ 0x03, KEY_MUTE },
     15	{ 0x04, KEY_POWER },
     16	{ 0x05, KEY_NUMERIC_1 },
     17	{ 0x06, KEY_NUMERIC_2 },
     18	{ 0x07, KEY_NUMERIC_3 },
     19	{ 0x08, KEY_CHANNELUP },
     20	{ 0x09, KEY_NUMERIC_4 },
     21	{ 0x0a, KEY_NUMERIC_5 },
     22	{ 0x0b, KEY_NUMERIC_6 },
     23	{ 0x0c, KEY_CHANNELDOWN },
     24	{ 0x0d, KEY_NUMERIC_7 },
     25	{ 0x0e, KEY_NUMERIC_8 },
     26	{ 0x0f, KEY_NUMERIC_9 },
     27	{ 0x10, KEY_VOLUMEUP },
     28	{ 0x11, KEY_NUMERIC_0 },
     29	{ 0x12, KEY_MENU },
     30	{ 0x13, KEY_PRINT },
     31	{ 0x14, KEY_VOLUMEDOWN },
     32	{ 0x16, KEY_PAUSE },
     33	{ 0x18, KEY_RECORD },
     34	{ 0x19, KEY_REWIND },
     35	{ 0x1a, KEY_PLAY },
     36	{ 0x1b, KEY_FORWARD },
     37	{ 0x1c, KEY_BACKSPACE },
     38	{ 0x1e, KEY_STOP },
     39	{ 0x40, KEY_ZOOM },
     40};
     41
     42static struct rc_map_list em_terratec_map = {
     43	.map = {
     44		.scan     = em_terratec,
     45		.size     = ARRAY_SIZE(em_terratec),
     46		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
     47		.name     = RC_MAP_EM_TERRATEC,
     48	}
     49};
     50
     51static int __init init_rc_map_em_terratec(void)
     52{
     53	return rc_map_register(&em_terratec_map);
     54}
     55
     56static void __exit exit_rc_map_em_terratec(void)
     57{
     58	rc_map_unregister(&em_terratec_map);
     59}
     60
     61module_init(init_rc_map_em_terratec)
     62module_exit(exit_rc_map_em_terratec)
     63
     64MODULE_LICENSE("GPL");
     65MODULE_AUTHOR("Mauro Carvalho Chehab");