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-minix-neo.c (1063B)


      1// SPDX-License-Identifier: GPL-2.0+
      2//
      3// Copyright (C) 2021 Christian Hewitt <christianshewitt@gmail.com>
      4
      5#include <media/rc-map.h>
      6#include <linux/module.h>
      7
      8//
      9// Keytable for the Minix NEO remote control
     10//
     11
     12static struct rc_map_table minix_neo[] = {
     13
     14	{ 0x118, KEY_POWER },
     15
     16	{ 0x146, KEY_UP },
     17	{ 0x116, KEY_DOWN },
     18	{ 0x147, KEY_LEFT },
     19	{ 0x115, KEY_RIGHT },
     20	{ 0x155, KEY_ENTER },
     21
     22	{ 0x110, KEY_VOLUMEDOWN },
     23	{ 0x140, KEY_BACK },
     24	{ 0x114, KEY_VOLUMEUP },
     25
     26	{ 0x10d, KEY_HOME },
     27	{ 0x104, KEY_MENU },
     28	{ 0x112, KEY_CONFIG },
     29
     30};
     31
     32static struct rc_map_list minix_neo_map = {
     33	.map = {
     34		.scan     = minix_neo,
     35		.size     = ARRAY_SIZE(minix_neo),
     36		.rc_proto = RC_PROTO_NEC,
     37		.name     = RC_MAP_MINIX_NEO,
     38	}
     39};
     40
     41static int __init init_rc_map_minix_neo(void)
     42{
     43	return rc_map_register(&minix_neo_map);
     44}
     45
     46static void __exit exit_rc_map_minix_neo(void)
     47{
     48	rc_map_unregister(&minix_neo_map);
     49}
     50
     51module_init(init_rc_map_minix_neo)
     52module_exit(exit_rc_map_minix_neo)
     53
     54MODULE_LICENSE("GPL");
     55MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com");