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-msi-digivox-ii.c (1348B)


      1// SPDX-License-Identifier: GPL-2.0-or-later
      2/*
      3 * MSI DIGIVOX mini II remote controller keytable
      4 *
      5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
      6 */
      7
      8#include <media/rc-map.h>
      9#include <linux/module.h>
     10
     11static struct rc_map_table msi_digivox_ii[] = {
     12	{ 0x0302, KEY_NUMERIC_2 },
     13	{ 0x0303, KEY_UP },              /* up */
     14	{ 0x0304, KEY_NUMERIC_3 },
     15	{ 0x0305, KEY_CHANNELDOWN },
     16	{ 0x0308, KEY_NUMERIC_5 },
     17	{ 0x0309, KEY_NUMERIC_0 },
     18	{ 0x030b, KEY_NUMERIC_8 },
     19	{ 0x030d, KEY_DOWN },            /* down */
     20	{ 0x0310, KEY_NUMERIC_9 },
     21	{ 0x0311, KEY_NUMERIC_7 },
     22	{ 0x0314, KEY_VOLUMEUP },
     23	{ 0x0315, KEY_CHANNELUP },
     24	{ 0x0316, KEY_OK },
     25	{ 0x0317, KEY_POWER2 },
     26	{ 0x031a, KEY_NUMERIC_1 },
     27	{ 0x031c, KEY_NUMERIC_4 },
     28	{ 0x031d, KEY_NUMERIC_6 },
     29	{ 0x031f, KEY_VOLUMEDOWN },
     30};
     31
     32static struct rc_map_list msi_digivox_ii_map = {
     33	.map = {
     34		.scan     = msi_digivox_ii,
     35		.size     = ARRAY_SIZE(msi_digivox_ii),
     36		.rc_proto = RC_PROTO_NEC,
     37		.name     = RC_MAP_MSI_DIGIVOX_II,
     38	}
     39};
     40
     41static int __init init_rc_map_msi_digivox_ii(void)
     42{
     43	return rc_map_register(&msi_digivox_ii_map);
     44}
     45
     46static void __exit exit_rc_map_msi_digivox_ii(void)
     47{
     48	rc_map_unregister(&msi_digivox_ii_map);
     49}
     50
     51module_init(init_rc_map_msi_digivox_ii)
     52module_exit(exit_rc_map_msi_digivox_ii)
     53
     54MODULE_LICENSE("GPL");
     55MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");