dce6_afmt.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* dce6_afmt.h -- Private header for radeon driver -*- linux-c -*-
  2. *
  3. * Copyright 2013 Advanced Micro Devices, Inc.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a
  6. * copy of this software and associated documentation files (the "Software"),
  7. * to deal in the Software without restriction, including without limitation
  8. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. * and/or sell copies of the Software, and to permit persons to whom the
  10. * Software is furnished to do so, subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice shall be included in
  13. * all copies or substantial portions of the Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  18. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  19. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  20. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  21. * OTHER DEALINGS IN THE SOFTWARE.
  22. *
  23. */
  24. #ifndef __DCE6_AFMT_H__
  25. #define __DCE6_AFMT_H__
  26. struct cea_sad;
  27. struct drm_connector;
  28. struct drm_display_mode;
  29. struct drm_encoder;
  30. struct radeon_crtc;
  31. struct radeon_device;
  32. u32 dce6_endpoint_rreg(struct radeon_device *rdev, u32 offset, u32 reg);
  33. void dce6_endpoint_wreg(struct radeon_device *rdev, u32 offset, u32 reg, u32 v);
  34. void dce6_afmt_write_sad_regs(struct drm_encoder *encoder,
  35. struct cea_sad *sads, int sad_count);
  36. void dce6_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder,
  37. u8 *sadb, int sad_count);
  38. void dce6_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder,
  39. u8 *sadb, int sad_count);
  40. void dce6_afmt_write_latency_fields(struct drm_encoder *encoder,
  41. struct drm_connector *connector,
  42. struct drm_display_mode *mode);
  43. void dce6_afmt_select_pin(struct drm_encoder *encoder);
  44. void dce6_hdmi_audio_set_dto(struct radeon_device *rdev,
  45. struct radeon_crtc *crtc, unsigned int clock);
  46. void dce6_dp_audio_set_dto(struct radeon_device *rdev,
  47. struct radeon_crtc *crtc, unsigned int clock);
  48. #endif /* __DCE6_AFMT_H__ */