Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
35 lines
710 B
C
35 lines
710 B
C
/*
|
|
* Copyright (C) STMicroelectronics SA 2014
|
|
* Author: Vincent Abriou <vincent.abriou@st.com> for STMicroelectronics.
|
|
* License terms: GNU General Public License (GPL), version 2
|
|
*/
|
|
|
|
#ifndef _STI_AWG_UTILS_H_
|
|
#define _STI_AWG_UTILS_H_
|
|
|
|
#include <drm/drmP.h>
|
|
|
|
#define AWG_MAX_INST 64
|
|
|
|
struct awg_code_generation_params {
|
|
u32 *ram_code;
|
|
u8 instruction_offset;
|
|
};
|
|
|
|
struct awg_timing {
|
|
u32 total_lines;
|
|
u32 active_lines;
|
|
u32 blanking_lines;
|
|
u32 trailing_lines;
|
|
u32 total_pixels;
|
|
u32 active_pixels;
|
|
u32 blanking_pixels;
|
|
u32 trailing_pixels;
|
|
u32 blanking_level;
|
|
};
|
|
|
|
int sti_awg_generate_code_data_enable_mode(
|
|
struct awg_code_generation_params *fw_gen_params,
|
|
struct awg_timing *timing);
|
|
#endif
|