1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 #ifndef __PIXELGEN_GLOBAL_H_INCLUDED__
17 #define __PIXELGEN_GLOBAL_H_INCLUDED__
19 #include <type_support.h>
22 * Pixel-generator. ("pixelgen_global.h")
25 * Duplicates "sync_generator_cfg_t" in "input_system_global.h".
27 typedef struct isp2401_sync_generator_cfg_s isp2401_sync_generator_cfg_t;
28 struct isp2401_sync_generator_cfg_s {
38 PIXELGEN_TPG_MODE_RAMP = 0,
39 PIXELGEN_TPG_MODE_CHBO,
40 PIXELGEN_TPG_MODE_MONO,
42 } pixelgen_tpg_mode_t;
45 * "pixelgen_tpg_cfg_t" duplicates parts of
46 * "tpg_cfg_t" in "input_system_global.h".
48 typedef struct pixelgen_tpg_cfg_s pixelgen_tpg_cfg_t;
49 struct pixelgen_tpg_cfg_s {
50 pixelgen_tpg_mode_t mode; /* CHBO, MONO */
53 /* be used by CHBO and MON */
58 /* be used by CHBO only */
65 u32 h_mask; /* horizontal mask */
66 u32 v_mask; /* vertical mask */
67 u32 hv_mask; /* horizontal+vertical mask? */
71 s32 h_delta; /* horizontal delta? */
72 s32 v_delta; /* vertical delta? */
75 isp2401_sync_generator_cfg_t sync_gen_cfg;
79 * "pixelgen_prbs_cfg_t" duplicates parts of
80 * prbs_cfg_t" in "input_system_global.h".
82 typedef struct pixelgen_prbs_cfg_s pixelgen_prbs_cfg_t;
83 struct pixelgen_prbs_cfg_s {
87 isp2401_sync_generator_cfg_t sync_gen_cfg;
90 /* end of Pixel-generator: TPG. ("pixelgen_global.h") */
91 #endif /* __PIXELGEN_GLOBAL_H_INCLUDED__ */