// SPDX-License-Identifier: GPL-2.0-or-later
/*
* ATI X10 RF remote keytable
*
* Copyright ( C ) 2011 Anssi Hannula < anssi . hannula @ ? ki . fi >
*
* This file is based on the static generic keytable previously found in
* ati_remote . c , which is
* Copyright ( c ) 2004 Torrey Hoffman < thoffman @ arnor . net >
* Copyright ( c ) 2002 Vladimir Dergachev
*/
#include <linux/module.h>
#include <media/rc-map.h>
/*
* Intended usage comments below are from vendor - supplied
* Source : ATI REMOTE WONDER ™ Installation Guide
* http : //www2.ati.com/manuals/remctrl.pdf
*
* Scancodes were in strict left - right , top - bottom order on the
* original ATI Remote Wonder , but were moved on later models .
*
* Keys A - F are intended to be user - programmable .
*/
static struct rc_map_table ati_x10[] = {
/* keyboard - Above the cursor pad */
{ 0 x00, KEY_A },
{ 0 x01, KEY_B },
{ 0 x02, KEY_POWER }, /* Power */
{ 0 x03, KEY_TV }, /* TV */
{ 0 x04, KEY_DVD }, /* DVD */
{ 0 x05, KEY_WWW }, /* WEB */
{ 0 x06, KEY_BOOKMARKS }, /* "book": Open Media Library */
{ 0 x07, KEY_EDIT }, /* "hand": Toggle left mouse button (grab) */
/* Mouse emulation pad goes here, handled by driver separately */
{ 0 x09, KEY_VOLUMEDOWN }, /* VOL + */
{ 0 x08, KEY_VOLUMEUP }, /* VOL - */
{ 0 x0a, KEY_MUTE }, /* MUTE */
{ 0 x0b, KEY_CHANNELUP }, /* CH + */
{ 0 x0c, KEY_CHANNELDOWN },/* CH - */
/*
* We could use KEY_NUMERIC_x for these , but the X11 protocol
* has problems with keycodes greater than 255 , so avoid those high
* keycodes in default maps .
*/
{ 0 x0d, KEY_NUMERIC_1 },
{ 0 x0e, KEY_NUMERIC_2 },
{ 0 x0f, KEY_NUMERIC_3 },
{ 0 x10, KEY_NUMERIC_4 },
{ 0 x11, KEY_NUMERIC_5 },
{ 0 x12, KEY_NUMERIC_6 },
{ 0 x13, KEY_NUMERIC_7 },
{ 0 x14, KEY_NUMERIC_8 },
{ 0 x15, KEY_NUMERIC_9 },
{ 0 x16, KEY_MENU }, /* "menu": DVD root menu */
/* KEY_NUMERIC_STAR? */
{ 0 x17, KEY_NUMERIC_0 },
{ 0 x18, KEY_SETUP }, /* "check": DVD setup menu */
/* KEY_NUMERIC_POUND? */
/* DVD navigation buttons */
{ 0 x19, KEY_C },
{ 0 x1a, KEY_UP }, /* up */
{ 0 x1b, KEY_D },
{ 0 x1c, KEY_PROPS }, /* "timer" Should be Data On Screen */
/* Symbol is "circle nailed to box" */
{ 0 x1d, KEY_LEFT }, /* left */
{ 0 x1e, KEY_OK }, /* "OK" */
{ 0 x1f, KEY_RIGHT }, /* right */
{ 0 x20, KEY_SCREEN }, /* "max" (X11 warning: 0x177) */
/* Should be AC View Toggle, but
that ' s not in < input / input . h > .
KEY_ZOOM (0x174)? */
{ 0 x21, KEY_E },
{ 0 x22, KEY_DOWN }, /* down */
{ 0 x23, KEY_F },
/* Play/stop/pause buttons */
{ 0 x24, KEY_REWIND }, /* (<<) Rewind */
{ 0 x25, KEY_PLAY }, /* ( >) Play (KEY_PLAYCD?) */
{ 0 x26, KEY_FASTFORWARD }, /* (>>) Fast forward */
{ 0 x27, KEY_RECORD }, /* ( o) red */
{ 0 x28, KEY_STOPCD }, /* ([]) Stop (KEY_STOP is something else!) */
{ 0 x29, KEY_PAUSE }, /* ('') Pause (KEY_PAUSECD?) */
/* Extra keys, not on the original ATI remote */
{ 0 x2a, KEY_NEXT }, /* (>+) */
{ 0 x2b, KEY_PREVIOUS }, /* (<-) */
{ 0 x2d, KEY_INFO }, /* PLAYING (X11 warning: 0x166) */
{ 0 x2e, KEY_HOME }, /* TOP */
{ 0 x2f, KEY_END }, /* END */
{ 0 x30, KEY_SELECT }, /* SELECT (X11 warning: 0x161) */
};
static struct rc_map_list ati_x10_map = {
.map = {
.scan = ati_x10,
.size = ARRAY_SIZE(ati_x10),
.rc_proto = RC_PROTO_OTHER,
.name = RC_MAP_ATI_X10,
}
};
static int __init init_rc_map_ati_x10(void )
{
return rc_map_register(&ati_x10_map);
}
static void __exit exit_rc_map_ati_x10(void )
{
rc_map_unregister(&ati_x10_map);
}
module_init(init_rc_map_ati_x10)
module_exit(exit_rc_map_ati_x10)
MODULE_LICENSE("GPL" );
MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>" );
MODULE_DESCRIPTION("ATI X10 RF remote controller keytable" );
Messung V0.5 in Prozent C=95 H=96 G=95
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:
¤
*Bot Zugriff