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 __IA_CSS_BH_TYPES_H 8 #define __IA_CSS_BH_TYPES_H 9 10 /* Number of elements in the BH table. 11 * Should be consistent with hmem.h 12 */ 13 #define IA_CSS_HMEM_BH_TABLE_SIZE ISP_HIST_DEPTH 14 #define IA_CSS_HMEM_BH_UNIT_SIZE (ISP_HIST_DEPTH / ISP_HIST_COMPONENTS) 15 16 #define BH_COLOR_R (0) 17 #define BH_COLOR_G (1) 18 #define BH_COLOR_B (2) 19 #define BH_COLOR_Y (3) 20 #define BH_COLOR_NUM (4) 21 22 /* BH table */ 23 struct ia_css_bh_table { 24 u32 hmem[ISP_HIST_COMPONENTS][IA_CSS_HMEM_BH_UNIT_SIZE]; 25 }; 26 27 #endif /* __IA_CSS_BH_TYPES_H */ 28