1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT)
2  *
3  * Copyright (C) 2022 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef _UAPI_FEC_CONFIG_H
7 #define _UAPI_FEC_CONFIG_H
8 
9 #include <linux/types.h>
10 #include <linux/v4l2-controls.h>
11 
12 #define FEC_API_VERSION KERNEL_VERSION(1, 0, 0)
13 struct fec_config {
14     u32 mesh_density;
15     u32 src_width;
16     u32 src_height;
17     u32 dst_width;
18     u32 dst_height;
19     u32 mesh_size;
20     s32 buf_fd;
21     u32 fec_bic_mode;
22 } __attribute__((packed));
23 
24 struct fec_params_cfg {
25     u32 module_en_update;
26     u32 module_ens;
27     u32 module_cfg_update;
28 
29     u32 frame_id;
30     struct fec_config fec_cfg;
31 } __attribute__((packed));
32 
33 #endif
34