1 /* 2 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef __HI_ISP_BIN_ADAPT_H__ 17 #define __HI_ISP_BIN_ADAPT_H__ 18 19 #include "hi_type.h" 20 #include "hi_comm_isp_adapt.h" 21 #include "hi_isp_bin.h" 22 23 #ifdef __cplusplus 24 #if __cplusplus 25 extern "C" { 26 #endif 27 #endif /* End of #ifdef __cplusplus */ 28 29 /* GENERAL STRUCTURES */ 30 typedef struct { 31 hi_u32 addr; /* register addr */ 32 hi_u8 start_bit; /* start bit of register addr */ 33 hi_u8 end_bit; /* end bit of register addr */ 34 } hi_isp_bin_reg_attr; 35 36 /* 37 * The base addr of ISP logic register 38 * The base addr of ISP ext register 39 * The base addr of Hisi AE ext register 40 * The base addr of Hisi AWB ext register 41 */ 42 hi_isp_bin_reg_attr g_isp_bin_reg_attr[ISP_MAX_PIPE_NUM][MAX_BIN_REG_NUM] = { 43 [0 ...(ISP_MAX_PIPE_NUM - 1)] = {0} 44 }; 45 46 #ifdef __cplusplus 47 #if __cplusplus 48 } 49 #endif 50 #endif /* End of #ifdef __cplusplus */ 51 52 #endif /* __HI_ISP_BIN_ADAPT_H__ */ 53