1 /*
2  * Copyright (c) 2017-2020 ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _CC_ADDRESS_DEFS_H
8 #define _CC_ADDRESS_DEFS_H
9 
10 /*!
11 @file
12 @brief This file contains general definitions.
13 */
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19 
20 #include "cc_pal_types.h"
21 
22 /************************ Defines ******************************/
23 
24 /**
25  * Address types within CC
26  */
27 /*! Definition of DMA address type, can be 32 bits or 64 bits according to CryptoCell's HW. */
28 typedef uint64_t  CCDmaAddr_t;
29 /*! Definition of CryptoCell address type, can be 32 bits or 64 bits according to platform. */
30 typedef uint64_t  CCAddr_t;
31 /*! Definition of CC SRAM address type, can be 32 bits according to CryptoCell's HW. */
32 typedef uint32_t  CCSramAddr_t;
33 
34 /*
35  * CCSramAddr_t is being cast into pointer type which can be 64 bit.
36  */
37 /*! Definition of MACRO that casts SRAM addresses to pointer types. */
38 #define CCSramAddr2Ptr(sramAddr) ((uintptr_t)sramAddr)
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif
45 
46 /**
47  @}
48  */
49 
50 
51