#include "dm_services.h"
#include "dce/dce_11_0_d.h"
#include "dce/dce_11_0_sh_mask.h"
#include "gmc/gmc_8_2_d.h"
#include "gmc/gmc_8_2_sh_mask.h"
#include "include/logger_interface.h"
#include "inc/dce_calcs.h"
#include "dce/dce_mem_input.h"
#include "dce110_mem_input_v.h"
static void set_flip_control(
struct dce_mem_input *mem_input110,
bool immediate)
{ … }
static void program_pri_addr_c(
struct dce_mem_input *mem_input110,
PHYSICAL_ADDRESS_LOC address)
{ … }
static void program_pri_addr_l(
struct dce_mem_input *mem_input110,
PHYSICAL_ADDRESS_LOC address)
{ … }
static void program_addr(
struct dce_mem_input *mem_input110,
const struct dc_plane_address *addr)
{ … }
static void enable(struct dce_mem_input *mem_input110)
{ … }
static void program_tiling(
struct dce_mem_input *mem_input110,
const union dc_tiling_info *info,
const enum surface_pixel_format pixel_format)
{ … }
static void program_size_and_rotation(
struct dce_mem_input *mem_input110,
enum dc_rotation_angle rotation,
const struct plane_size *plane_size)
{ … }
static void program_pixel_format(
struct dce_mem_input *mem_input110,
enum surface_pixel_format format)
{ … }
static bool dce_mem_input_v_is_surface_pending(struct mem_input *mem_input)
{ … }
static bool dce_mem_input_v_program_surface_flip_and_addr(
struct mem_input *mem_input,
const struct dc_plane_address *address,
bool flip_immediate)
{ … }
static const unsigned int dvmm_Hw_Setting_2DTiling[4][9] = …;
static const unsigned int dvmm_Hw_Setting_1DTiling[4][9] = …;
static const unsigned int dvmm_Hw_Setting_Linear[4][9] = …;
static const unsigned int *get_dvmm_hw_setting(
union dc_tiling_info *tiling_info,
enum surface_pixel_format format,
bool chroma)
{ … }
static void dce_mem_input_v_program_pte_vm(
struct mem_input *mem_input,
enum surface_pixel_format format,
union dc_tiling_info *tiling_info,
enum dc_rotation_angle rotation)
{ … }
static void dce_mem_input_v_program_surface_config(
struct mem_input *mem_input,
enum surface_pixel_format format,
union dc_tiling_info *tiling_info,
struct plane_size *plane_size,
enum dc_rotation_angle rotation,
struct dc_plane_dcc_param *dcc,
bool horizotal_mirror)
{ … }
static void program_urgency_watermark(
const struct dc_context *ctx,
const uint32_t urgency_addr,
const uint32_t wm_addr,
struct dce_watermarks marks_low,
uint32_t total_dest_line_time_ns)
{ … }
static void program_urgency_watermark_l(
const struct dc_context *ctx,
struct dce_watermarks marks_low,
uint32_t total_dest_line_time_ns)
{ … }
static void program_urgency_watermark_c(
const struct dc_context *ctx,
struct dce_watermarks marks_low,
uint32_t total_dest_line_time_ns)
{ … }
static void program_stutter_watermark(
const struct dc_context *ctx,
const uint32_t stutter_addr,
const uint32_t wm_addr,
struct dce_watermarks marks)
{ … }
static void program_stutter_watermark_l(
const struct dc_context *ctx,
struct dce_watermarks marks)
{ … }
static void program_stutter_watermark_c(
const struct dc_context *ctx,
struct dce_watermarks marks)
{ … }
static void program_nbp_watermark(
const struct dc_context *ctx,
const uint32_t wm_mask_ctrl_addr,
const uint32_t nbp_pstate_ctrl_addr,
struct dce_watermarks marks)
{ … }
static void program_nbp_watermark_l(
const struct dc_context *ctx,
struct dce_watermarks marks)
{ … }
static void program_nbp_watermark_c(
const struct dc_context *ctx,
struct dce_watermarks marks)
{ … }
static void dce_mem_input_v_program_display_marks(
struct mem_input *mem_input,
struct dce_watermarks nbp,
struct dce_watermarks stutter,
struct dce_watermarks stutter_enter,
struct dce_watermarks urgent,
uint32_t total_dest_line_time_ns)
{ … }
static void dce_mem_input_program_chroma_display_marks(
struct mem_input *mem_input,
struct dce_watermarks nbp,
struct dce_watermarks stutter,
struct dce_watermarks urgent,
uint32_t total_dest_line_time_ns)
{ … }
static void dce110_allocate_mem_input_v(
struct mem_input *mi,
uint32_t h_total,
uint32_t v_total,
uint32_t pix_clk_khz,
uint32_t total_stream_num)
{ … }
static void dce110_free_mem_input_v(
struct mem_input *mi,
uint32_t total_stream_num)
{ … }
static const struct mem_input_funcs dce110_mem_input_v_funcs = …;
void dce110_mem_input_v_construct(
struct dce_mem_input *dce_mi,
struct dc_context *ctx)
{ … }