16686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab/* ati-tv-wonder-hd-600.h - Keytable for ati_tv_wonder_hd_600 Remote Controller 26686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * 36686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * keymap imported from ir-keymaps.c 46686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * 537e59f876bc710d67a30b660826a5e83e07101ceMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab 66686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * 76686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 86686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 96686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 106686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab * (at your option) any later version. 116686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab */ 126686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 136686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab#include <media/rc-map.h> 147a707b89202f905bd9f9fbde326933c59a81214cPaul Gortmaker#include <linux/module.h> 156686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 166686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab/* ATI TV Wonder HD 600 USB 176686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab Devin Heitmueller <devin.heitmueller@gmail.com> 186686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab */ 196686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 202f4f58d689dd71dea67407b74405a3c43e797cb1Mauro Carvalho Chehabstatic struct rc_map_table ati_tv_wonder_hd_600[] = { 216686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x00, KEY_RECORD}, /* Row 1 */ 226686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x01, KEY_PLAYPAUSE}, 236686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x02, KEY_STOP}, 246686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x03, KEY_POWER}, 256686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x04, KEY_PREVIOUS}, /* Row 2 */ 266686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x05, KEY_REWIND}, 276686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x06, KEY_FORWARD}, 286686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x07, KEY_NEXT}, 296686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x08, KEY_EPG}, /* Row 3 */ 306686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x09, KEY_HOME}, 316686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x0a, KEY_MENU}, 326686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x0b, KEY_CHANNELUP}, 336686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x0c, KEY_BACK}, /* Row 4 */ 346686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x0d, KEY_UP}, 356686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x0e, KEY_INFO}, 366686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x0f, KEY_CHANNELDOWN}, 376686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x10, KEY_LEFT}, /* Row 5 */ 386686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x11, KEY_SELECT}, 396686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x12, KEY_RIGHT}, 406686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x13, KEY_VOLUMEUP}, 416686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x14, KEY_LAST}, /* Row 6 */ 426686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x15, KEY_DOWN}, 436686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x16, KEY_MUTE}, 446686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab { 0x17, KEY_VOLUMEDOWN}, 456686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab}; 466686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 47d100e659b61a735c3343b3d82c1c009b04072cddMauro Carvalho Chehabstatic struct rc_map_list ati_tv_wonder_hd_600_map = { 486686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab .map = { 496686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab .scan = ati_tv_wonder_hd_600, 506686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab .size = ARRAY_SIZE(ati_tv_wonder_hd_600), 5152b661449aecc47e652a164c0d8078b31e10aca0Mauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 526686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab .name = RC_MAP_ATI_TV_WONDER_HD_600, 536686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab } 546686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab}; 556686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 566686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehabstatic int __init init_rc_map_ati_tv_wonder_hd_600(void) 576686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab{ 58d100e659b61a735c3343b3d82c1c009b04072cddMauro Carvalho Chehab return rc_map_register(&ati_tv_wonder_hd_600_map); 596686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab} 606686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 616686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehabstatic void __exit exit_rc_map_ati_tv_wonder_hd_600(void) 626686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab{ 63d100e659b61a735c3343b3d82c1c009b04072cddMauro Carvalho Chehab rc_map_unregister(&ati_tv_wonder_hd_600_map); 646686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab} 656686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 666686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehabmodule_init(init_rc_map_ati_tv_wonder_hd_600) 676686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehabmodule_exit(exit_rc_map_ati_tv_wonder_hd_600) 686686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho Chehab 696686fa6917caaaaf3d595df6accedb87607517c9Mauro Carvalho ChehabMODULE_LICENSE("GPL"); 7037e59f876bc710d67a30b660826a5e83e07101ceMauro Carvalho ChehabMODULE_AUTHOR("Mauro Carvalho Chehab"); 71