xref: /linux/drivers/staging/media/atomisp/pci/isp/modes/interface/input_buf.isp.h (revision 0cdee263bc5e7b20f657ea09f9272f50c568f35b)
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 #include <linux/math.h>
12 
13 /* Temporary include, since IA_CSS_BINARY_MODE_COPY is still needed */
14 #include "sh_css_defs.h"
15 
16 #define INPUT_BUF_HEIGHT	2 /* double buffer */
17 #define INPUT_BUF_LINES		2
18 
19 #ifndef ENABLE_CONTINUOUS
20 #define ENABLE_CONTINUOUS 0
21 #endif
22 
23 /* In continuous mode, the input buffer must be a fixed size for all binaries
24  * and at a fixed address since it will be used by the SP. */
25 #define EXTRA_INPUT_VECTORS	2 /* For left padding */
26 #define MAX_VECTORS_PER_INPUT_LINE_CONT						\
27 	(DIV_ROUND_UP(SH_CSS_MAX_SENSOR_WIDTH, ISP_NWAY) + EXTRA_INPUT_VECTORS)
28 
29 /* The input buffer should be on a fixed address in vmem, for continuous capture */
30 #define INPUT_BUF_ADDR 0x0
31 
32 #endif /* _INPUT_BUF_ISP_H_ */
33