1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2010-2015, Intel Corporation.
5  *
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.
9  *
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
13  * more details.
14  */
15 
16 #ifndef __ISP_LOCAL_H_INCLUDED__
17 #define __ISP_LOCAL_H_INCLUDED__
18 
19 #include "isp_global.h"
20 
21 #include <isp2400_support.h>
22 
23 #define HIVE_ISP_VMEM_MASK	((1U << ISP_VMEM_ELEMBITS) - 1)
24 
25 typedef struct isp_state_s		isp_state_t;
26 typedef struct isp_stall_s		isp_stall_t;
27 
28 struct isp_state_s {
29 	int	pc;
30 	int	status_register;
31 	bool	is_broken;
32 	bool	is_idle;
33 	bool	is_sleeping;
34 	bool	is_stalling;
35 };
36 
37 struct isp_stall_s {
38 	bool	fifo0;
39 	bool	fifo1;
40 	bool	fifo2;
41 	bool	fifo3;
42 	bool	fifo4;
43 	bool	fifo5;
44 	bool	fifo6;
45 	bool	stat_ctrl;
46 	bool	dmem;
47 	bool	vmem;
48 	bool	vamem1;
49 	bool	vamem2;
50 	bool	vamem3;
51 	bool	hmem;
52 	bool	pmem;
53 	bool	icache_master;
54 };
55 
56 #endif /* __ISP_LOCAL_H_INCLUDED__ */
57