1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.h
Neil Armstrong 346faacfcd drm/msm/dpu: move setup_force_clk_ctrl handling into plane and wb
Now SSPP and WB can have setup_force_clk_ctrl() ops, it's simpler to call
them from the plane and wb code and call into the mdp ops if not present.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/562325/
Signed-off-by: Rob Clark <robdclark@chromium.org>
2023-10-16 09:38:22 -07:00

71 lines
1.6 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*/
#ifndef __DPU_VBIF_H__
#define __DPU_VBIF_H__
#include "dpu_kms.h"
struct dpu_vbif_set_ot_params {
u32 xin_id;
u32 num;
u32 width;
u32 height;
u32 frame_rate;
bool rd;
bool is_wfd;
u32 vbif_idx;
};
struct dpu_vbif_set_memtype_params {
u32 xin_id;
u32 vbif_idx;
bool is_cacheable;
};
/**
* struct dpu_vbif_set_qos_params - QoS remapper parameter
* @vbif_idx: vbif identifier
* @xin_id: client interface identifier
* @num: pipe identifier (debug only)
* @is_rt: true if pipe is used in real-time use case
*/
struct dpu_vbif_set_qos_params {
u32 vbif_idx;
u32 xin_id;
u32 num;
bool is_rt;
};
/**
* dpu_vbif_set_ot_limit - set OT limit for vbif client
* @dpu_kms: DPU handler
* @params: Pointer to OT configuration parameters
*/
void dpu_vbif_set_ot_limit(struct dpu_kms *dpu_kms,
struct dpu_vbif_set_ot_params *params);
/**
* dpu_vbif_set_qos_remap - set QoS priority level remap
* @dpu_kms: DPU handler
* @params: Pointer to QoS configuration parameters
*/
void dpu_vbif_set_qos_remap(struct dpu_kms *dpu_kms,
struct dpu_vbif_set_qos_params *params);
/**
* dpu_vbif_clear_errors - clear any vbif errors
* @dpu_kms: DPU handler
*/
void dpu_vbif_clear_errors(struct dpu_kms *dpu_kms);
/**
* dpu_vbif_init_memtypes - initialize xin memory types for vbif
* @dpu_kms: DPU handler
*/
void dpu_vbif_init_memtypes(struct dpu_kms *dpu_kms);
void dpu_debugfs_vbif_init(struct dpu_kms *dpu_kms, struct dentry *debugfs_root);
#endif /* __DPU_VBIF_H__ */