/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
*/
/* * This is the common struct maintained by each sub block * for mapping the register offsets in this block to the * absoulute IO address * @blk_addr: hw block register mapped address * @log_mask: log mask for this block
*/ struct dpu_hw_blk_reg_map { void __iomem *blk_addr;
u32 log_mask;
};
/** * struct dpu_drm_pix_ext_v1 - version 1 of pixel ext structure * @num_ext_pxls_lr: Number of total horizontal pixels * @num_ext_pxls_tb: Number of total vertical lines * @left_ftch: Number of extra pixels to overfetch from left * @right_ftch: Number of extra pixels to overfetch from right * @top_ftch: Number of extra lines to overfetch from top * @btm_ftch: Number of extra lines to overfetch from bottom * @left_rpt: Number of extra pixels to repeat from left * @right_rpt: Number of extra pixels to repeat from right * @top_rpt: Number of extra lines to repeat from top * @btm_rpt: Number of extra lines to repeat from bottom
*/ struct dpu_drm_pix_ext_v1 { /* * Number of pixels ext in left, right, top and bottom direction * for all color components.
*/
int32_t num_ext_pxls_lr[DPU_MAX_PLANES];
int32_t num_ext_pxls_tb[DPU_MAX_PLANES];
/* * Number of pixels needs to be overfetched in left, right, top * and bottom directions from source image for scaling.
*/
int32_t left_ftch[DPU_MAX_PLANES];
int32_t right_ftch[DPU_MAX_PLANES];
int32_t top_ftch[DPU_MAX_PLANES];
int32_t btm_ftch[DPU_MAX_PLANES]; /* * Number of pixels needs to be repeated in left, right, top and * bottom directions for scaling.
*/
int32_t left_rpt[DPU_MAX_PLANES];
int32_t right_rpt[DPU_MAX_PLANES];
int32_t top_rpt[DPU_MAX_PLANES];
int32_t btm_rpt[DPU_MAX_PLANES];
};
/** * struct dpu_drm_de_v1 - version 1 of detail enhancer structure * @enable: Enables/disables detail enhancer * @sharpen_level1: Sharpening strength for noise * @sharpen_level2: Sharpening strength for context * @clip: Clip coefficient * @limit: Detail enhancer limit factor * @thr_quiet: Quite zone threshold * @thr_dieout: Die-out zone threshold * @thr_low: Linear zone left threshold * @thr_high: Linear zone right threshold * @prec_shift: Detail enhancer precision * @adjust_a: Mapping curves A coefficients * @adjust_b: Mapping curves B coefficients * @adjust_c: Mapping curves C coefficients
*/ struct dpu_drm_de_v1 {
uint32_t enable;
int16_t sharpen_level1;
int16_t sharpen_level2;
uint16_t clip;
uint16_t limit;
uint16_t thr_quiet;
uint16_t thr_dieout;
uint16_t thr_low;
uint16_t thr_high;
uint16_t prec_shift;
int16_t adjust_a[DPU_MAX_DE_CURVES];
int16_t adjust_b[DPU_MAX_DE_CURVES];
int16_t adjust_c[DPU_MAX_DE_CURVES];
};
/** * struct dpu_drm_scaler_v2 - version 2 of struct dpu_drm_scaler * @enable: Scaler enable * @dir_en: Detail enhancer enable * @pe: Pixel extension settings * @horz_decimate: Horizontal decimation factor * @vert_decimate: Vertical decimation factor * @init_phase_x: Initial scaler phase values for x * @phase_step_x: Phase step values for x * @init_phase_y: Initial scaler phase values for y * @phase_step_y: Phase step values for y * @preload_x: Horizontal preload value * @preload_y: Vertical preload value * @src_width: Source width * @src_height: Source height * @dst_width: Destination width * @dst_height: Destination height * @y_rgb_filter_cfg: Y/RGB plane filter configuration * @uv_filter_cfg: UV plane filter configuration * @alpha_filter_cfg: Alpha filter configuration * @blend_cfg: Selection of blend coefficients * @lut_flag: LUT configuration flags * @dir_lut_idx: 2d 4x4 LUT index * @y_rgb_cir_lut_idx: Y/RGB circular LUT index * @uv_cir_lut_idx: UV circular LUT index * @y_rgb_sep_lut_idx: Y/RGB separable LUT index * @uv_sep_lut_idx: UV separable LUT index * @de: Detail enhancer settings
*/ struct dpu_drm_scaler_v2 { /* * General definitions
*/
uint32_t enable;
uint32_t dir_en;
/** * struct dpu_hw_qos_cfg: pipe QoS configuration * @danger_lut: LUT for generate danger level based on fill level * @safe_lut: LUT for generate safe level based on fill level * @creq_lut: LUT for generate creq level based on fill level * @creq_vblank: creq value generated to vbif during vertical blanking * @danger_vblank: danger value generated during vertical blanking * @vblank_en: enable creq_vblank and danger_vblank during vblank * @danger_safe_en: enable danger safe generation
*/ struct dpu_hw_qos_cfg {
u32 danger_lut;
u32 safe_lut;
u64 creq_lut; bool danger_safe_en;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.