• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <stdbool.h>
20 
21 #include "isp_global.h"
22 
23 #include <isp2400_support.h>
24 
25 #define HIVE_ISP_VMEM_MASK	((1U << ISP_VMEM_ELEMBITS) - 1)
26 
27 typedef struct isp_state_s		isp_state_t;
28 typedef struct isp_stall_s		isp_stall_t;
29 
30 struct isp_state_s {
31 	int	pc;
32 	int	status_register;
33 	bool	is_broken;
34 	bool	is_idle;
35 	bool	is_sleeping;
36 	bool	is_stalling;
37 };
38 
39 struct isp_stall_s {
40 	bool	fifo0;
41 	bool	fifo1;
42 	bool	fifo2;
43 	bool	fifo3;
44 	bool	fifo4;
45 	bool	fifo5;
46 	bool	fifo6;
47 	bool	stat_ctrl;
48 	bool	dmem;
49 	bool	vmem;
50 	bool	vamem1;
51 	bool	vamem2;
52 	bool	vamem3;
53 	bool	hmem;
54 	bool	pmem;
55 	bool	icache_master;
56 };
57 
58 #endif /* __ISP_LOCAL_H_INCLUDED__ */
59