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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /* keytable for Terratec Cinergy C PCI Remote Controller
  3. *
  4. * Copyright (c) 2010 by Igor M. Liplianin <[email protected]>
  5. */
  6. #include <media/rc-map.h>
  7. #include <linux/module.h>
  8. static struct rc_map_table terratec_cinergy_c_pci[] = {
  9. { 0x3e, KEY_POWER},
  10. { 0x3d, KEY_NUMERIC_1},
  11. { 0x3c, KEY_NUMERIC_2},
  12. { 0x3b, KEY_NUMERIC_3},
  13. { 0x3a, KEY_NUMERIC_4},
  14. { 0x39, KEY_NUMERIC_5},
  15. { 0x38, KEY_NUMERIC_6},
  16. { 0x37, KEY_NUMERIC_7},
  17. { 0x36, KEY_NUMERIC_8},
  18. { 0x35, KEY_NUMERIC_9},
  19. { 0x34, KEY_VIDEO_NEXT}, /* AV */
  20. { 0x33, KEY_NUMERIC_0},
  21. { 0x32, KEY_REFRESH},
  22. { 0x30, KEY_EPG},
  23. { 0x2f, KEY_UP},
  24. { 0x2e, KEY_LEFT},
  25. { 0x2d, KEY_OK},
  26. { 0x2c, KEY_RIGHT},
  27. { 0x2b, KEY_DOWN},
  28. { 0x29, KEY_INFO},
  29. { 0x28, KEY_RED},
  30. { 0x27, KEY_GREEN},
  31. { 0x26, KEY_YELLOW},
  32. { 0x25, KEY_BLUE},
  33. { 0x24, KEY_CHANNELUP},
  34. { 0x23, KEY_VOLUMEUP},
  35. { 0x22, KEY_MUTE},
  36. { 0x21, KEY_VOLUMEDOWN},
  37. { 0x20, KEY_CHANNELDOWN},
  38. { 0x1f, KEY_PAUSE},
  39. { 0x1e, KEY_HOME},
  40. { 0x1d, KEY_MENU}, /* DVD Menu */
  41. { 0x1c, KEY_SUBTITLE},
  42. { 0x1b, KEY_TEXT}, /* Teletext */
  43. { 0x1a, KEY_DELETE},
  44. { 0x19, KEY_TV},
  45. { 0x18, KEY_DVD},
  46. { 0x17, KEY_STOP},
  47. { 0x16, KEY_VIDEO},
  48. { 0x15, KEY_AUDIO}, /* Music */
  49. { 0x14, KEY_SCREEN}, /* Pic */
  50. { 0x13, KEY_PLAY},
  51. { 0x12, KEY_BACK},
  52. { 0x11, KEY_REWIND},
  53. { 0x10, KEY_FASTFORWARD},
  54. { 0x0b, KEY_PREVIOUS},
  55. { 0x07, KEY_RECORD},
  56. { 0x03, KEY_NEXT},
  57. };
  58. static struct rc_map_list terratec_cinergy_c_pci_map = {
  59. .map = {
  60. .scan = terratec_cinergy_c_pci,
  61. .size = ARRAY_SIZE(terratec_cinergy_c_pci),
  62. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  63. .name = RC_MAP_TERRATEC_CINERGY_C_PCI,
  64. }
  65. };
  66. static int __init init_rc_map_terratec_cinergy_c_pci(void)
  67. {
  68. return rc_map_register(&terratec_cinergy_c_pci_map);
  69. }
  70. static void __exit exit_rc_map_terratec_cinergy_c_pci(void)
  71. {
  72. rc_map_unregister(&terratec_cinergy_c_pci_map);
  73. }
  74. module_init(init_rc_map_terratec_cinergy_c_pci);
  75. module_exit(exit_rc_map_terratec_cinergy_c_pci);
  76. MODULE_LICENSE("GPL");