xref: /linux/drivers/staging/media/atomisp/pci/isp/kernels/bh/bh_2/ia_css_bh_types.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 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 __IA_CSS_BH_TYPES_H
17 #define __IA_CSS_BH_TYPES_H
18 
19 /* Number of elements in the BH table.
20   * Should be consistent with hmem.h
21   */
22 #define IA_CSS_HMEM_BH_TABLE_SIZE	ISP_HIST_DEPTH
23 #define IA_CSS_HMEM_BH_UNIT_SIZE	(ISP_HIST_DEPTH / ISP_HIST_COMPONENTS)
24 
25 #define BH_COLOR_R	(0)
26 #define BH_COLOR_G	(1)
27 #define BH_COLOR_B	(2)
28 #define BH_COLOR_Y	(3)
29 #define BH_COLOR_NUM	(4)
30 
31 /* BH table */
32 struct ia_css_bh_table {
33 	u32 hmem[ISP_HIST_COMPONENTS][IA_CSS_HMEM_BH_UNIT_SIZE];
34 };
35 
36 #endif /* __IA_CSS_BH_TYPES_H */
37