Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) STMicroelectronics SA 2014
0004  * Author: Vincent Abriou <vincent.abriou@st.com> for STMicroelectronics.
0005  */
0006 
0007 #ifndef _STI_AWG_UTILS_H_
0008 #define _STI_AWG_UTILS_H_
0009 
0010 #include <linux/types.h>
0011 
0012 #define AWG_MAX_INST 64
0013 
0014 struct awg_code_generation_params {
0015     u32 *ram_code;
0016     u8 instruction_offset;
0017 };
0018 
0019 struct awg_timing {
0020     u32 total_lines;
0021     u32 active_lines;
0022     u32 blanking_lines;
0023     u32 trailing_lines;
0024     u32 total_pixels;
0025     u32 active_pixels;
0026     u32 blanking_pixels;
0027     u32 trailing_pixels;
0028     u32 blanking_level;
0029 };
0030 
0031 int sti_awg_generate_code_data_enable_mode(
0032         struct awg_code_generation_params *fw_gen_params,
0033         struct awg_timing *timing);
0034 #endif