summaryrefslogtreecommitdiff
path: root/include/drivers/arm/cryptocell/713/cc_address_defs.h
blob: 0abc15c709e77a19aacba0746a77d4a01243a436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * Copyright (c) 2017-2020 ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef _CC_ADDRESS_DEFS_H
#define _CC_ADDRESS_DEFS_H

/*!
@file
@brief This file contains general definitions.
*/

#ifdef __cplusplus
extern "C"
{
#endif

#include "cc_pal_types.h"

/************************ Defines ******************************/

/**
 * Address types within CC
 */
/*! Definition of DMA address type, can be 32 bits or 64 bits according to CryptoCell's HW. */
typedef uint64_t  CCDmaAddr_t;
/*! Definition of CryptoCell address type, can be 32 bits or 64 bits according to platform. */
typedef uint64_t  CCAddr_t;
/*! Definition of CC SRAM address type, can be 32 bits according to CryptoCell's HW. */
typedef uint32_t  CCSramAddr_t;

/*
 * CCSramAddr_t is being cast into pointer type which can be 64 bit.
 */
/*! Definition of MACRO that casts SRAM addresses to pointer types. */
#define CCSramAddr2Ptr(sramAddr) ((uintptr_t)sramAddr)

#ifdef __cplusplus
}
#endif

#endif

/**
 @}
 */