atombios_encoders.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright 2014 Advanced Micro Devices, Inc.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. * OTHER DEALINGS IN THE SOFTWARE.
  21. *
  22. */
  23. #ifndef __ATOMBIOS_ENCODER_H__
  24. #define __ATOMBIOS_ENCODER_H__
  25. u8
  26. amdgpu_atombios_encoder_get_backlight_level(struct amdgpu_encoder *amdgpu_encoder);
  27. void
  28. amdgpu_atombios_encoder_set_backlight_level(struct amdgpu_encoder *amdgpu_encoder,
  29. u8 level);
  30. void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encoder,
  31. struct drm_connector *drm_connector);
  32. void
  33. amdgpu_atombios_encoder_fini_backlight(struct amdgpu_encoder *amdgpu_encoder);
  34. bool amdgpu_atombios_encoder_is_digital(struct drm_encoder *encoder);
  35. bool amdgpu_atombios_encoder_mode_fixup(struct drm_encoder *encoder,
  36. const struct drm_display_mode *mode,
  37. struct drm_display_mode *adjusted_mode);
  38. int amdgpu_atombios_encoder_get_encoder_mode(struct drm_encoder *encoder);
  39. void
  40. amdgpu_atombios_encoder_setup_dig_encoder(struct drm_encoder *encoder,
  41. int action, int panel_mode);
  42. void
  43. amdgpu_atombios_encoder_setup_dig_transmitter(struct drm_encoder *encoder, int action,
  44. uint8_t lane_num, uint8_t lane_set);
  45. bool
  46. amdgpu_atombios_encoder_set_edp_panel_power(struct drm_connector *connector,
  47. int action);
  48. void
  49. amdgpu_atombios_encoder_dpms(struct drm_encoder *encoder, int mode);
  50. void
  51. amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder *encoder);
  52. void
  53. amdgpu_atombios_encoder_init_dig(struct amdgpu_device *adev);
  54. enum drm_connector_status
  55. amdgpu_atombios_encoder_dac_detect(struct drm_encoder *encoder,
  56. struct drm_connector *connector);
  57. enum drm_connector_status
  58. amdgpu_atombios_encoder_dig_detect(struct drm_encoder *encoder,
  59. struct drm_connector *connector);
  60. void
  61. amdgpu_atombios_encoder_setup_ext_encoder_ddc(struct drm_encoder *encoder);
  62. void
  63. amdgpu_atombios_encoder_set_bios_scratch_regs(struct drm_connector *connector,
  64. struct drm_encoder *encoder,
  65. bool connected);
  66. struct amdgpu_encoder_atom_dig *
  67. amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder *encoder);
  68. struct amdgpu_encoder_atom_dig *
  69. amdgpu_atombios_encoder_get_dig_info(struct amdgpu_encoder *amdgpu_encoder);
  70. #endif