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
25#ifndef __DCE6_AFMT_H__
26#define __DCE6_AFMT_H__
27
28struct cea_sad;
29struct drm_connector;
30struct drm_display_mode;
31struct drm_encoder;
32struct radeon_crtc;
33struct radeon_device;
34
35u32 dce6_endpoint_rreg(struct radeon_device *rdev, u32 offset, u32 reg);
36void dce6_endpoint_wreg(struct radeon_device *rdev, u32 offset, u32 reg, u32 v);
37void dce6_afmt_write_sad_regs(struct drm_encoder *encoder,
38 struct cea_sad *sads, int sad_count);
39void dce6_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder,
40 u8 *sadb, int sad_count);
41void dce6_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder,
42 u8 *sadb, int sad_count);
43void dce6_afmt_write_latency_fields(struct drm_encoder *encoder,
44 struct drm_connector *connector,
45 struct drm_display_mode *mode);
46void dce6_afmt_select_pin(struct drm_encoder *encoder);
47void dce6_hdmi_audio_set_dto(struct radeon_device *rdev,
48 struct radeon_crtc *crtc, unsigned int clock);
49void dce6_dp_audio_set_dto(struct radeon_device *rdev,
50 struct radeon_crtc *crtc, unsigned int clock);
51
52#endif /* __DCE6_AFMT_H__ */
53

source code of linux/drivers/gpu/drm/radeon/dce6_afmt.h