1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef _isp2400_support_h
8 #define _isp2400_support_h
9 
10 #ifndef ISP2400_VECTOR_TYPES
11 /* This typedef is to be able to include hive header files
12    in the host code which is useful in crun */
13 typedef char *tmemvectors, *tmemvectoru, *tvector;
14 #endif
15 
16 #define hrt_isp_vamem1_store_16(cell, addr, val) hrt_mem_store_16(cell, HRT_PROC_TYPE_PROP(cell, _simd_vamem1), addr, val)
17 #define hrt_isp_vamem2_store_16(cell, addr, val) hrt_mem_store_16(cell, HRT_PROC_TYPE_PROP(cell, _simd_vamem2), addr, val)
18 
19 #define hrt_isp_dmem(cell) HRT_PROC_TYPE_PROP(cell, _base_dmem)
20 #define hrt_isp_vmem(cell) HRT_PROC_TYPE_PROP(cell, _simd_vmem)
21 
22 #define hrt_isp_dmem_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_dmem(cell))
23 #define hrt_isp_vmem_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_vmem(cell))
24 
25 #if ISP_HAS_HIST
26 #define hrt_isp_hist(cell) HRT_PROC_TYPE_PROP(cell, _simd_histogram)
27 #define hrt_isp_hist_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_hist(cell))
28 #endif
29 
30 #endif /* _isp2400_support_h */
31