rc-nebula.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* nebula.h - Keytable for nebula Remote Controller
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. * Copyright (c) 2010 by Mauro Carvalho Chehab
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #include <media/rc-map.h>
  13. #include <linux/module.h>
  14. static struct rc_map_table nebula[] = {
  15. { 0x0000, KEY_0 },
  16. { 0x0001, KEY_1 },
  17. { 0x0002, KEY_2 },
  18. { 0x0003, KEY_3 },
  19. { 0x0004, KEY_4 },
  20. { 0x0005, KEY_5 },
  21. { 0x0006, KEY_6 },
  22. { 0x0007, KEY_7 },
  23. { 0x0008, KEY_8 },
  24. { 0x0009, KEY_9 },
  25. { 0x000a, KEY_TV },
  26. { 0x000b, KEY_AUX },
  27. { 0x000c, KEY_DVD },
  28. { 0x000d, KEY_POWER },
  29. { 0x000e, KEY_CAMERA }, /* labelled 'Picture' */
  30. { 0x000f, KEY_AUDIO },
  31. { 0x0010, KEY_INFO },
  32. { 0x0011, KEY_F13 }, /* 16:9 */
  33. { 0x0012, KEY_F14 }, /* 14:9 */
  34. { 0x0013, KEY_EPG },
  35. { 0x0014, KEY_EXIT },
  36. { 0x0015, KEY_MENU },
  37. { 0x0016, KEY_UP },
  38. { 0x0017, KEY_DOWN },
  39. { 0x0018, KEY_LEFT },
  40. { 0x0019, KEY_RIGHT },
  41. { 0x001a, KEY_ENTER },
  42. { 0x001b, KEY_CHANNELUP },
  43. { 0x001c, KEY_CHANNELDOWN },
  44. { 0x001d, KEY_VOLUMEUP },
  45. { 0x001e, KEY_VOLUMEDOWN },
  46. { 0x001f, KEY_RED },
  47. { 0x0020, KEY_GREEN },
  48. { 0x0021, KEY_YELLOW },
  49. { 0x0022, KEY_BLUE },
  50. { 0x0023, KEY_SUBTITLE },
  51. { 0x0024, KEY_F15 }, /* AD */
  52. { 0x0025, KEY_TEXT },
  53. { 0x0026, KEY_MUTE },
  54. { 0x0027, KEY_REWIND },
  55. { 0x0028, KEY_STOP },
  56. { 0x0029, KEY_PLAY },
  57. { 0x002a, KEY_FASTFORWARD },
  58. { 0x002b, KEY_F16 }, /* chapter */
  59. { 0x002c, KEY_PAUSE },
  60. { 0x002d, KEY_PLAY },
  61. { 0x002e, KEY_RECORD },
  62. { 0x002f, KEY_F17 }, /* picture in picture */
  63. { 0x0030, KEY_KPPLUS }, /* zoom in */
  64. { 0x0031, KEY_KPMINUS }, /* zoom out */
  65. { 0x0032, KEY_F18 }, /* capture */
  66. { 0x0033, KEY_F19 }, /* web */
  67. { 0x0034, KEY_EMAIL },
  68. { 0x0035, KEY_PHONE },
  69. { 0x0036, KEY_PC },
  70. };
  71. static struct rc_map_list nebula_map = {
  72. .map = {
  73. .scan = nebula,
  74. .size = ARRAY_SIZE(nebula),
  75. .rc_type = RC_TYPE_RC5,
  76. .name = RC_MAP_NEBULA,
  77. }
  78. };
  79. static int __init init_rc_map_nebula(void)
  80. {
  81. return rc_map_register(&nebula_map);
  82. }
  83. static void __exit exit_rc_map_nebula(void)
  84. {
  85. rc_map_unregister(&nebula_map);
  86. }
  87. module_init(init_rc_map_nebula)
  88. module_exit(exit_rc_map_nebula)
  89. MODULE_LICENSE("GPL");
  90. MODULE_AUTHOR("Mauro Carvalho Chehab");