1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 
8 
9 /************* Include Files ****************/
10 #include "cc_pal_types.h"
11 #include "cc_pal_buff_attr.h"
12 /************************ Defines ******************************/
13 
14 /************************ Enums ******************************/
15 
16 /************************ Typedefs ******************************/
17 
18 /************************ Global Data ******************************/
19 
20 /************************ Private Functions ******************************/
21 
22 /************************ Public Functions ******************************/
23 
CC_PalDataBufferAttrGet(const unsigned char * pDataBuffer,size_t buffSize,uint8_t buffType,uint8_t * pBuffNs)24 CCError_t CC_PalDataBufferAttrGet(const unsigned char *pDataBuffer,     /*!< [in] Address of the buffer to map. */
25                                   size_t              buffSize,         /*!< [in] Buffer size in bytes. */
26                                   uint8_t             buffType,         /* ! [in] Input for read / output for write */
27                                   uint8_t             *pBuffNs           /*!< [out] HNONSEC buffer attribute (0 for secure, 1 for non-secure) */
28                                   )
29 {
30     CC_UNUSED_PARAM(pDataBuffer);
31     CC_UNUSED_PARAM(buffSize);
32     CC_UNUSED_PARAM(buffType);
33 
34     *pBuffNs = DATA_BUFFER_IS_SECURE;
35 
36     return CC_OK;
37 }
38