aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx_local.h
blob: 6489ee644a4a44a56b50d606645734272766593b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Support for Intel Camera Imaging ISP subsystem.
 * Copyright (c) 2015, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 */

#ifndef __CSI_RX_LOCAL_H_INCLUDED__
#define __CSI_RX_LOCAL_H_INCLUDED__

#include "csi_rx_global.h"
#define N_CSI_RX_BE_MIPI_COMP_FMT_REG		4
#define N_CSI_RX_BE_MIPI_CUSTOM_PEC		12
#define N_CSI_RX_BE_SHORT_PKT_LUT		4
#define N_CSI_RX_BE_LONG_PKT_LUT		8
typedef struct csi_rx_fe_ctrl_state_s		csi_rx_fe_ctrl_state_t;
typedef struct csi_rx_fe_ctrl_lane_s		csi_rx_fe_ctrl_lane_t;
typedef struct csi_rx_be_ctrl_state_s		csi_rx_be_ctrl_state_t;
/*mipi_backend_custom_mode_pixel_extraction_config*/
typedef struct csi_rx_be_ctrl_pec_s		csi_rx_be_ctrl_pec_t;

struct csi_rx_fe_ctrl_lane_s {
	hrt_data	termen;
	hrt_data	settle;
};

struct csi_rx_fe_ctrl_state_s {
	hrt_data		enable;
	hrt_data		nof_enable_lanes;
	hrt_data		error_handling;
	hrt_data		status;
	hrt_data		status_dlane_hs;
	hrt_data		status_dlane_lp;
	csi_rx_fe_ctrl_lane_t	clane;
	csi_rx_fe_ctrl_lane_t	dlane[N_CSI_RX_DLANE_ID];
};

struct csi_rx_be_ctrl_state_s {
	hrt_data		enable;
	hrt_data		status;
	hrt_data		comp_format_reg[N_CSI_RX_BE_MIPI_COMP_FMT_REG];
	hrt_data		raw16;
	hrt_data		raw18;
	hrt_data		force_raw8;
	hrt_data		irq_status;
	hrt_data		custom_mode_enable;
	hrt_data		custom_mode_data_state;
	hrt_data		pec[N_CSI_RX_BE_MIPI_CUSTOM_PEC];
	hrt_data		custom_mode_valid_eop_config;
	hrt_data		global_lut_disregard_reg;
	hrt_data		packet_status_stall;
	hrt_data		short_packet_lut_entry[N_CSI_RX_BE_SHORT_PKT_LUT];
	hrt_data		long_packet_lut_entry[N_CSI_RX_BE_LONG_PKT_LUT];
};
#endif /* __CSI_RX_LOCAL_H_INCLUDED__ */