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-cinergy-1400.c (1738B)


      1// SPDX-License-Identifier: GPL-2.0+
      2// cinergy-1400.h - Keytable for cinergy_1400 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/* Cinergy 1400 DVB-T */
     12
     13static struct rc_map_table cinergy_1400[] = {
     14	{ 0x01, KEY_POWER },
     15	{ 0x02, KEY_NUMERIC_1 },
     16	{ 0x03, KEY_NUMERIC_2 },
     17	{ 0x04, KEY_NUMERIC_3 },
     18	{ 0x05, KEY_NUMERIC_4 },
     19	{ 0x06, KEY_NUMERIC_5 },
     20	{ 0x07, KEY_NUMERIC_6 },
     21	{ 0x08, KEY_NUMERIC_7 },
     22	{ 0x09, KEY_NUMERIC_8 },
     23	{ 0x0a, KEY_NUMERIC_9 },
     24	{ 0x0c, KEY_NUMERIC_0 },
     25
     26	{ 0x0b, KEY_VIDEO },
     27	{ 0x0d, KEY_REFRESH },
     28	{ 0x0e, KEY_SELECT },
     29	{ 0x0f, KEY_EPG },
     30	{ 0x10, KEY_UP },
     31	{ 0x11, KEY_LEFT },
     32	{ 0x12, KEY_OK },
     33	{ 0x13, KEY_RIGHT },
     34	{ 0x14, KEY_DOWN },
     35	{ 0x15, KEY_TEXT },
     36	{ 0x16, KEY_INFO },
     37
     38	{ 0x17, KEY_RED },
     39	{ 0x18, KEY_GREEN },
     40	{ 0x19, KEY_YELLOW },
     41	{ 0x1a, KEY_BLUE },
     42
     43	{ 0x1b, KEY_CHANNELUP },
     44	{ 0x1c, KEY_VOLUMEUP },
     45	{ 0x1d, KEY_MUTE },
     46	{ 0x1e, KEY_VOLUMEDOWN },
     47	{ 0x1f, KEY_CHANNELDOWN },
     48
     49	{ 0x40, KEY_PAUSE },
     50	{ 0x4c, KEY_PLAY },
     51	{ 0x58, KEY_RECORD },
     52	{ 0x54, KEY_PREVIOUS },
     53	{ 0x48, KEY_STOP },
     54	{ 0x5c, KEY_NEXT },
     55};
     56
     57static struct rc_map_list cinergy_1400_map = {
     58	.map = {
     59		.scan     = cinergy_1400,
     60		.size     = ARRAY_SIZE(cinergy_1400),
     61		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
     62		.name     = RC_MAP_CINERGY_1400,
     63	}
     64};
     65
     66static int __init init_rc_map_cinergy_1400(void)
     67{
     68	return rc_map_register(&cinergy_1400_map);
     69}
     70
     71static void __exit exit_rc_map_cinergy_1400(void)
     72{
     73	rc_map_unregister(&cinergy_1400_map);
     74}
     75
     76module_init(init_rc_map_cinergy_1400)
     77module_exit(exit_rc_map_cinergy_1400)
     78
     79MODULE_LICENSE("GPL");
     80MODULE_AUTHOR("Mauro Carvalho Chehab");