linux/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c

/*
 * Copyright 2015 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
 *
 */

#include "dm_services.h"
#include "core_types.h"
#include "timing_generator.h"
#include "hw_sequencer.h"
#include "hw_sequencer_private.h"
#include "basics/dc_common.h"
#include "resource.h"
#include "dc_dmub_srv.h"
#include "dc_state_priv.h"

#define NUM_ELEMENTS(a)

/* used as index in array of black_color_format */
enum black_color_format {};

enum dc_color_space_type {};

static const struct tg_color black_color_format[] =;

struct out_csc_color_matrix_type {};

static const struct out_csc_color_matrix_type output_csc_matrix[] =;

static bool is_rgb_type(
		enum dc_color_space color_space)
{}

static bool is_rgb_limited_type(
		enum dc_color_space color_space)
{}

static bool is_ycbcr601_type(
		enum dc_color_space color_space)
{}

static bool is_ycbcr601_limited_type(
		enum dc_color_space color_space)
{}

static bool is_ycbcr709_type(
		enum dc_color_space color_space)
{}

static bool is_ycbcr2020_type(
	enum dc_color_space color_space)
{}

static bool is_ycbcr709_limited_type(
		enum dc_color_space color_space)
{}

static enum dc_color_space_type get_color_space_type(enum dc_color_space color_space)
{}

const uint16_t *find_color_matrix(enum dc_color_space color_space,
							uint32_t *array_size)
{}


void color_space_to_black_color(
	const struct dc *dc,
	enum dc_color_space colorspace,
	struct tg_color *black_color)
{}

bool hwss_wait_for_blank_complete(
		struct timing_generator *tg)
{}

void get_mpctree_visual_confirm_color(
		struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}

void get_surface_visual_confirm_color(
		const struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}

void get_hdr_visual_confirm_color(
		struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}

void get_subvp_visual_confirm_color(
		struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}

void get_mclk_switch_visual_confirm_color(
		struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}

void set_p_state_switch_method(
		struct dc *dc,
		struct dc_state *context,
		struct pipe_ctx *pipe_ctx)
{}

void get_fams2_visual_confirm_color(
		struct dc *dc,
		struct dc_state *context,
		struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}

void hwss_build_fast_sequence(struct dc *dc,
		struct dc_dmub_cmd *dc_dmub_cmd,
		unsigned int dmub_cmd_count,
		struct block_sequence block_sequence[],
		unsigned int *num_steps,
		struct pipe_ctx *pipe_ctx,
		struct dc_stream_status *stream_status,
		struct dc_state *context)
{}

void hwss_execute_sequence(struct dc *dc,
		struct block_sequence block_sequence[],
		int num_steps)
{}

void hwss_send_dmcub_cmd(union block_sequence_params *params)
{}

void hwss_program_manual_trigger(union block_sequence_params *params)
{}

void hwss_setup_dpp(union block_sequence_params *params)
{}

void hwss_program_bias_and_scale(union block_sequence_params *params)
{}

void hwss_power_on_mpc_mem_pwr(union block_sequence_params *params)
{}

void hwss_set_output_csc(union block_sequence_params *params)
{}

void hwss_set_ocsc_default(union block_sequence_params *params)
{}

void hwss_subvp_save_surf_addr(union block_sequence_params *params)
{}

void get_surface_tile_visual_confirm_color(
		struct pipe_ctx *pipe_ctx,
		struct tg_color *color)
{}