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-d680-dmb.c (1805B)


      1// SPDX-License-Identifier: GPL-2.0-only
      2/*
      3 * keymap imported from cxusb.c
      4 *
      5 * Copyright (C) 2016 Sean Young
      6 */
      7
      8#include <media/rc-map.h>
      9#include <linux/module.h>
     10
     11static struct rc_map_table rc_map_d680_dmb_table[] = {
     12	{ 0x0038, KEY_SWITCHVIDEOMODE },	/* TV/AV */
     13	{ 0x080c, KEY_ZOOM },
     14	{ 0x0800, KEY_NUMERIC_0 },
     15	{ 0x0001, KEY_NUMERIC_1 },
     16	{ 0x0802, KEY_NUMERIC_2 },
     17	{ 0x0003, KEY_NUMERIC_3 },
     18	{ 0x0804, KEY_NUMERIC_4 },
     19	{ 0x0005, KEY_NUMERIC_5 },
     20	{ 0x0806, KEY_NUMERIC_6 },
     21	{ 0x0007, KEY_NUMERIC_7 },
     22	{ 0x0808, KEY_NUMERIC_8 },
     23	{ 0x0009, KEY_NUMERIC_9 },
     24	{ 0x000a, KEY_MUTE },
     25	{ 0x0829, KEY_BACK },
     26	{ 0x0012, KEY_CHANNELUP },
     27	{ 0x0813, KEY_CHANNELDOWN },
     28	{ 0x002b, KEY_VOLUMEUP },
     29	{ 0x082c, KEY_VOLUMEDOWN },
     30	{ 0x0020, KEY_UP },
     31	{ 0x0821, KEY_DOWN },
     32	{ 0x0011, KEY_LEFT },
     33	{ 0x0810, KEY_RIGHT },
     34	{ 0x000d, KEY_OK },
     35	{ 0x081f, KEY_RECORD },
     36	{ 0x0017, KEY_PLAYPAUSE },
     37	{ 0x0816, KEY_PLAYPAUSE },
     38	{ 0x000b, KEY_STOP },
     39	{ 0x0827, KEY_FASTFORWARD },
     40	{ 0x0026, KEY_REWIND },
     41	{ 0x081e, KEY_UNKNOWN },    /* Time Shift */
     42	{ 0x000e, KEY_UNKNOWN },    /* Snapshot */
     43	{ 0x082d, KEY_UNKNOWN },    /* Mouse Cursor */
     44	{ 0x000f, KEY_UNKNOWN },    /* Minimize/Maximize */
     45	{ 0x0814, KEY_SHUFFLE },    /* Shuffle */
     46	{ 0x0025, KEY_POWER },
     47};
     48
     49static struct rc_map_list d680_dmb_map = {
     50	.map = {
     51		.scan     = rc_map_d680_dmb_table,
     52		.size     = ARRAY_SIZE(rc_map_d680_dmb_table),
     53		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
     54		.name     = RC_MAP_D680_DMB,
     55	}
     56};
     57
     58static int __init init_rc_map_d680_dmb(void)
     59{
     60	return rc_map_register(&d680_dmb_map);
     61}
     62
     63static void __exit exit_rc_map_d680_dmb(void)
     64{
     65	rc_map_unregister(&d680_dmb_map);
     66}
     67
     68module_init(init_rc_map_d680_dmb)
     69module_exit(exit_rc_map_d680_dmb)
     70
     71MODULE_LICENSE("GPL");
     72MODULE_AUTHOR("Mauro Carvalho Chehab");