rc-terratec-cinergy-c-pci.c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* keytable for Terratec Cinergy C PCI Remote Controller
  2. *
  3. * Copyright (c) 2010 by Igor M. Liplianin <liplianin@me.by>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. #include <media/rc-map.h>
  11. #include <linux/module.h>
  12. static struct rc_map_table terratec_cinergy_c_pci[] = {
  13. { 0x3e, KEY_POWER},
  14. { 0x3d, KEY_1},
  15. { 0x3c, KEY_2},
  16. { 0x3b, KEY_3},
  17. { 0x3a, KEY_4},
  18. { 0x39, KEY_5},
  19. { 0x38, KEY_6},
  20. { 0x37, KEY_7},
  21. { 0x36, KEY_8},
  22. { 0x35, KEY_9},
  23. { 0x34, KEY_VIDEO_NEXT}, /* AV */
  24. { 0x33, KEY_0},
  25. { 0x32, KEY_REFRESH},
  26. { 0x30, KEY_EPG},
  27. { 0x2f, KEY_UP},
  28. { 0x2e, KEY_LEFT},
  29. { 0x2d, KEY_OK},
  30. { 0x2c, KEY_RIGHT},
  31. { 0x2b, KEY_DOWN},
  32. { 0x29, KEY_INFO},
  33. { 0x28, KEY_RED},
  34. { 0x27, KEY_GREEN},
  35. { 0x26, KEY_YELLOW},
  36. { 0x25, KEY_BLUE},
  37. { 0x24, KEY_CHANNELUP},
  38. { 0x23, KEY_VOLUMEUP},
  39. { 0x22, KEY_MUTE},
  40. { 0x21, KEY_VOLUMEDOWN},
  41. { 0x20, KEY_CHANNELDOWN},
  42. { 0x1f, KEY_PAUSE},
  43. { 0x1e, KEY_HOME},
  44. { 0x1d, KEY_MENU}, /* DVD Menu */
  45. { 0x1c, KEY_SUBTITLE},
  46. { 0x1b, KEY_TEXT}, /* Teletext */
  47. { 0x1a, KEY_DELETE},
  48. { 0x19, KEY_TV},
  49. { 0x18, KEY_DVD},
  50. { 0x17, KEY_STOP},
  51. { 0x16, KEY_VIDEO},
  52. { 0x15, KEY_AUDIO}, /* Music */
  53. { 0x14, KEY_SCREEN}, /* Pic */
  54. { 0x13, KEY_PLAY},
  55. { 0x12, KEY_BACK},
  56. { 0x11, KEY_REWIND},
  57. { 0x10, KEY_FASTFORWARD},
  58. { 0x0b, KEY_PREVIOUS},
  59. { 0x07, KEY_RECORD},
  60. { 0x03, KEY_NEXT},
  61. };
  62. static struct rc_map_list terratec_cinergy_c_pci_map = {
  63. .map = {
  64. .scan = terratec_cinergy_c_pci,
  65. .size = ARRAY_SIZE(terratec_cinergy_c_pci),
  66. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  67. .name = RC_MAP_TERRATEC_CINERGY_C_PCI,
  68. }
  69. };
  70. static int __init init_rc_map_terratec_cinergy_c_pci(void)
  71. {
  72. return rc_map_register(&terratec_cinergy_c_pci_map);
  73. }
  74. static void __exit exit_rc_map_terratec_cinergy_c_pci(void)
  75. {
  76. rc_map_unregister(&terratec_cinergy_c_pci_map);
  77. }
  78. module_init(init_rc_map_terratec_cinergy_c_pci);
  79. module_exit(exit_rc_map_terratec_cinergy_c_pci);
  80. MODULE_LICENSE("GPL");