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-norwood.c (2459B)


      1// SPDX-License-Identifier: GPL-2.0+
      2// norwood.h - Keytable for norwood 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/* Norwood Micro (non-Pro) TV Tuner
     12   By Peter Naulls <peter@chocky.org>
     13   Key comments are the functions given in the manual */
     14
     15static struct rc_map_table norwood[] = {
     16	/* Keys 0 to 9 */
     17	{ 0x20, KEY_NUMERIC_0 },
     18	{ 0x21, KEY_NUMERIC_1 },
     19	{ 0x22, KEY_NUMERIC_2 },
     20	{ 0x23, KEY_NUMERIC_3 },
     21	{ 0x24, KEY_NUMERIC_4 },
     22	{ 0x25, KEY_NUMERIC_5 },
     23	{ 0x26, KEY_NUMERIC_6 },
     24	{ 0x27, KEY_NUMERIC_7 },
     25	{ 0x28, KEY_NUMERIC_8 },
     26	{ 0x29, KEY_NUMERIC_9 },
     27
     28	{ 0x78, KEY_VIDEO },		/* Video Source        */
     29	{ 0x2c, KEY_EXIT },		/* Open/Close software */
     30	{ 0x2a, KEY_SELECT },		/* 2 Digit Select      */
     31	{ 0x69, KEY_AGAIN },		/* Recall              */
     32
     33	{ 0x32, KEY_BRIGHTNESSUP },	/* Brightness increase */
     34	{ 0x33, KEY_BRIGHTNESSDOWN },	/* Brightness decrease */
     35	{ 0x6b, KEY_KPPLUS },		/* (not named >>>>>)   */
     36	{ 0x6c, KEY_KPMINUS },		/* (not named <<<<<)   */
     37
     38	{ 0x2d, KEY_MUTE },		/* Mute                */
     39	{ 0x30, KEY_VOLUMEUP },		/* Volume up           */
     40	{ 0x31, KEY_VOLUMEDOWN },	/* Volume down         */
     41	{ 0x60, KEY_CHANNELUP },	/* Channel up          */
     42	{ 0x61, KEY_CHANNELDOWN },	/* Channel down        */
     43
     44	{ 0x3f, KEY_RECORD },		/* Record              */
     45	{ 0x37, KEY_PLAY },		/* Play                */
     46	{ 0x36, KEY_PAUSE },		/* Pause               */
     47	{ 0x2b, KEY_STOP },		/* Stop                */
     48	{ 0x67, KEY_FASTFORWARD },	/* Forward              */
     49	{ 0x66, KEY_REWIND },		/* Rewind              */
     50	{ 0x3e, KEY_SEARCH },		/* Auto Scan           */
     51	{ 0x2e, KEY_CAMERA },		/* Capture Video       */
     52	{ 0x6d, KEY_MENU },		/* Show/Hide Control   */
     53	{ 0x2f, KEY_ZOOM },		/* Full Screen         */
     54	{ 0x34, KEY_RADIO },		/* FM                  */
     55	{ 0x65, KEY_POWER },		/* Computer power      */
     56};
     57
     58static struct rc_map_list norwood_map = {
     59	.map = {
     60		.scan     = norwood,
     61		.size     = ARRAY_SIZE(norwood),
     62		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
     63		.name     = RC_MAP_NORWOOD,
     64	}
     65};
     66
     67static int __init init_rc_map_norwood(void)
     68{
     69	return rc_map_register(&norwood_map);
     70}
     71
     72static void __exit exit_rc_map_norwood(void)
     73{
     74	rc_map_unregister(&norwood_map);
     75}
     76
     77module_init(init_rc_map_norwood)
     78module_exit(exit_rc_map_norwood)
     79
     80MODULE_LICENSE("GPL");
     81MODULE_AUTHOR("Mauro Carvalho Chehab");