1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef SECUREBOOT_GENERAL_HWDEFS_H 8 #define SECUREBOOT_GENERAL_HWDEFS_H 9 10 11 #include "cc_regs.h" 12 #include "dx_host.h" 13 #include "dx_crys_kernel.h" 14 15 #ifdef __cplusplus 16 extern "C" 17 { 18 #endif 19 20 21 /************************ Defines ******************************/ 22 #define SB_REG_ADDR(base, reg_name) (base + CC_REG_OFFSET(CRY_KERNEL, reg_name)) 23 #define SB_REG_ADDR_UNIT(base, reg_name, unit) (base + CC_REG_OFFSET(unit, reg_name)) 24 25 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif 32 33