1 /* 2 * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __DRV_OSAL_CHIP_H__ 20 #define __DRV_OSAL_CHIP_H__ 21 22 #if defined(CHIP_TYPE_hi3559av100es) 23 #include "drv_osal_hi3559aes.h" 24 25 #elif defined(CHIP_TYPE_hi3559av100) 26 #include "drv_osal_hi3559av100.h" 27 28 #elif defined(CHIP_TYPE_hi3569v100) 29 #include "drv_osal_hi3569v100.h" 30 31 #elif defined(CHIP_TYPE_hi3568v100) 32 #include "drv_osal_hi3568v100.h" 33 34 #elif defined(CHIP_TYPE_hi3519av100) 35 #include "drv_osal_hi3519av100.h" 36 37 #elif defined(CHIP_TYPE_hi3516cv500) 38 #include "drv_osal_hi3516cv500.h" 39 40 #elif defined(CHIP_TYPE_hi3516ev200) 41 #include "drv_osal_hi3516ev200.h" 42 43 #else 44 #error You need to define a configuration file for chip ! 45 #endif 46 47 #if defined(CHIP_HASH_VER_V100) || defined(CHIP_HASH_VER_V200) 48 #define CHIP_HASH_SUPPORT 49 #endif 50 51 #if defined(CHIP_SYMC_VER_V100) || defined(CHIP_SYMC_VER_V200) 52 #define CHIP_SYMC_SUPPORT 53 #endif 54 55 #if defined(CHIP_TRNG_VER_V100) || defined(CHIP_TRNG_VER_V200) 56 #define CHIP_TRNG_SUPPORT 57 #endif 58 59 #if defined(CHIP_IFEP_RSA_VER_V100) || defined(CHIP_SIC_RSA_VER_V100) 60 #define CHIP_RSA_SUPPORT 61 #endif 62 63 #if defined(CHIP_HDCP_VER_V100) || defined(CHIP_HDCP_VER_V200) 64 #define CHIP_HDCP_SUPPORT 65 #endif 66 67 #if defined(CHIP_SM2_VER_V100) 68 #define CHIP_SM2_SUPPORT 69 #endif 70 71 #endif 72