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 */
7 
8 #ifndef _INPUT_BUF_ISP_H_
9 #define _INPUT_BUF_ISP_H_
10 
11 /* Temporary include, since IA_CSS_BINARY_MODE_COPY is still needed */
12 #include "sh_css_defs.h"
13 #include "isp_const.h" /* MAX_VECTORS_PER_INPUT_LINE */
14 
15 #define INPUT_BUF_HEIGHT	2 /* double buffer */
16 #define INPUT_BUF_LINES		2
17 
18 #ifndef ENABLE_CONTINUOUS
19 #define ENABLE_CONTINUOUS 0
20 #endif
21 
22 /* In continuous mode, the input buffer must be a fixed size for all binaries
23  * and at a fixed address since it will be used by the SP. */
24 #define EXTRA_INPUT_VECTORS	2 /* For left padding */
25 #define MAX_VECTORS_PER_INPUT_LINE_CONT (CEIL_DIV(SH_CSS_MAX_SENSOR_WIDTH, ISP_NWAY) + EXTRA_INPUT_VECTORS)
26 
27 /* The input buffer should be on a fixed address in vmem, for continuous capture */
28 #define INPUT_BUF_ADDR 0x0
29 
30 #endif /* _INPUT_BUF_ISP_H_ */
31