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-pinnacle-pctv-hd.c (1718B)


      1// SPDX-License-Identifier: GPL-2.0+
      2// pinnacle-pctv-hd.h - Keytable for pinnacle_pctv_hd 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/* Pinnacle PCTV HD 800i mini remote */
     12
     13static struct rc_map_table pinnacle_pctv_hd[] = {
     14	/* Key codes for the tiny Pinnacle remote*/
     15	{ 0x0700, KEY_MUTE },
     16	{ 0x0701, KEY_MENU }, /* Pinnacle logo */
     17	{ 0x0739, KEY_POWER },
     18	{ 0x0703, KEY_VOLUMEUP },
     19	{ 0x0705, KEY_OK },
     20	{ 0x0709, KEY_VOLUMEDOWN },
     21	{ 0x0706, KEY_CHANNELUP },
     22	{ 0x070c, KEY_CHANNELDOWN },
     23	{ 0x070f, KEY_NUMERIC_1 },
     24	{ 0x0715, KEY_NUMERIC_2 },
     25	{ 0x0710, KEY_NUMERIC_3 },
     26	{ 0x0718, KEY_NUMERIC_4 },
     27	{ 0x071b, KEY_NUMERIC_5 },
     28	{ 0x071e, KEY_NUMERIC_6 },
     29	{ 0x0711, KEY_NUMERIC_7 },
     30	{ 0x0721, KEY_NUMERIC_8 },
     31	{ 0x0712, KEY_NUMERIC_9 },
     32	{ 0x0727, KEY_NUMERIC_0 },
     33	{ 0x0724, KEY_ZOOM }, /* 'Square' key */
     34	{ 0x072a, KEY_SUBTITLE },   /* 'T' key */
     35	{ 0x072d, KEY_REWIND },
     36	{ 0x0730, KEY_PLAYPAUSE },
     37	{ 0x0733, KEY_FASTFORWARD },
     38	{ 0x0736, KEY_RECORD },
     39	{ 0x073c, KEY_STOP },
     40	{ 0x073f, KEY_HELP }, /* '?' key */
     41};
     42
     43static struct rc_map_list pinnacle_pctv_hd_map = {
     44	.map = {
     45		.scan     = pinnacle_pctv_hd,
     46		.size     = ARRAY_SIZE(pinnacle_pctv_hd),
     47		.rc_proto = RC_PROTO_RC5,
     48		.name     = RC_MAP_PINNACLE_PCTV_HD,
     49	}
     50};
     51
     52static int __init init_rc_map_pinnacle_pctv_hd(void)
     53{
     54	return rc_map_register(&pinnacle_pctv_hd_map);
     55}
     56
     57static void __exit exit_rc_map_pinnacle_pctv_hd(void)
     58{
     59	rc_map_unregister(&pinnacle_pctv_hd_map);
     60}
     61
     62module_init(init_rc_map_pinnacle_pctv_hd)
     63module_exit(exit_rc_map_pinnacle_pctv_hd)
     64
     65MODULE_LICENSE("GPL");
     66MODULE_AUTHOR("Mauro Carvalho Chehab");