mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Unfortunately the tooling doesn't check documents placed before funciton prototypes. Such comments frequently become outdated, miss several params, etc. Move documentation for the functions to be placed before the actual function body, allowing 'make W=1' to actually check these comments and report an error. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/622690/ Link: https://lore.kernel.org/r/20241102-dpu-docs-rework-v1-1-d735853fd6db@linaro.org
53 lines
1.1 KiB
C
53 lines
1.1 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;
|
|
};
|
|
|
|
void dpu_vbif_set_ot_limit(struct dpu_kms *dpu_kms,
|
|
struct dpu_vbif_set_ot_params *params);
|
|
|
|
void dpu_vbif_set_qos_remap(struct dpu_kms *dpu_kms,
|
|
struct dpu_vbif_set_qos_params *params);
|
|
|
|
void dpu_vbif_clear_errors(struct dpu_kms *dpu_kms);
|
|
|
|
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__ */
|