GNU Linux-libre 4.14.265-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / css_2401_system / hrt / isp2400_support.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef _isp2400_support_h
16 #define _isp2400_support_h
17
18 #ifndef ISP2400_VECTOR_TYPES
19 /* This typedef is to be able to include hive header files
20    in the host code which is useful in crun */
21 typedef char *tmemvectors, *tmemvectoru, *tvector;
22 #endif
23
24 #define hrt_isp_vamem1_store_16(cell, addr, val) hrt_mem_store_16(cell, HRT_PROC_TYPE_PROP(cell, _simd_vamem1), addr, val)
25 #define hrt_isp_vamem2_store_16(cell, addr, val) hrt_mem_store_16(cell, HRT_PROC_TYPE_PROP(cell, _simd_vamem2), addr, val)
26
27 #define hrt_isp_dmem(cell) HRT_PROC_TYPE_PROP(cell, _base_dmem)
28 #define hrt_isp_vmem(cell) HRT_PROC_TYPE_PROP(cell, _simd_vmem)
29
30 #define hrt_isp_dmem_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_dmem(cell))
31 #define hrt_isp_vmem_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_vmem(cell))
32
33 #if ISP_HAS_HIST
34   #define hrt_isp_hist(cell) HRT_PROC_TYPE_PROP(cell, _simd_histogram)
35   #define hrt_isp_hist_master_port_address(cell) hrt_mem_master_port_address(cell, hrt_isp_hist(cell))
36 #endif
37
38 #endif /* _isp2400_support_h */