linux/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.h

/*
 * Copyright 2012-15 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 *  and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#ifndef __DC_STREAM_ENCODER_DCE110_H__
#define __DC_STREAM_ENCODER_DCE110_H__

#include "stream_encoder.h"

#define DCE110STRENC_FROM_STRENC(stream_encoder)

#ifndef TMDS_CNTL__TMDS_PIXEL_ENCODING_MASK
	#define TMDS_CNTL__TMDS_PIXEL_ENCODING_MASK
	#define TMDS_CNTL__TMDS_COLOR_FORMAT_MASK
	#define TMDS_CNTL__TMDS_PIXEL_ENCODING__SHIFT
	#define TMDS_CNTL__TMDS_COLOR_FORMAT__SHIFT
#endif


#define SE_COMMON_REG_LIST_DCE_BASE(id)

#define SE_COMMON_REG_LIST_BASE(id)

#define SE_COMMON_REG_LIST(id)

#define SE_DCN_REG_LIST(id)

#define SE_SF(reg_name, field_name, post_fix)

#define SE_COMMON_MASK_SH_LIST_DCE_COMMON(mask_sh)

#define SE_COMMON_MASK_SH_LIST_SOC(mask_sh)

#define SE_COMMON_MASK_SH_LIST_DCE80_100(mask_sh)

#define SE_COMMON_MASK_SH_LIST_DCE110(mask_sh)

#define SE_COMMON_MASK_SH_LIST_DCE112(mask_sh)

#define SE_COMMON_MASK_SH_LIST_DCE120(mask_sh)

#define SE_COMMON_MASK_SH_LIST_DCN10(mask_sh)

struct dce_stream_encoder_shift {};

struct dce_stream_encoder_mask {};

struct dce110_stream_enc_registers {};

struct dce110_stream_encoder {};

void dce110_stream_encoder_construct(
	struct dce110_stream_encoder *enc110,
	struct dc_context *ctx,
	struct dc_bios *bp,
	enum engine_id eng_id,
	const struct dce110_stream_enc_registers *regs,
	const struct dce_stream_encoder_shift *se_shift,
	const struct dce_stream_encoder_mask *se_mask);


void dce110_se_audio_mute_control(
	struct stream_encoder *enc, bool mute);

void dce110_se_dp_audio_setup(
	struct stream_encoder *enc,
	unsigned int az_inst,
	struct audio_info *info);

void dce110_se_dp_audio_enable(
		struct stream_encoder *enc);

void dce110_se_dp_audio_disable(
		struct stream_encoder *enc);

void dce110_se_hdmi_audio_setup(
	struct stream_encoder *enc,
	unsigned int az_inst,
	struct audio_info *info,
	struct audio_crtc_info *audio_crtc_info);

void dce110_se_hdmi_audio_disable(
	struct stream_encoder *enc);

#endif /* __DC_STREAM_ENCODER_DCE110_H__ */