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_memmap.h"
12 
13 /************************ Defines ******************************/
14 
15 /************************ Enums ******************************/
16 
17 /************************ Typedefs ******************************/
18 
19 /************************ Global Data ******************************/
20 
21 /************************ Private Functions ******************************/
22 
23 /************************ Public Functions ******************************/
24 
25 /**
26  * @brief This function purpose is to return the base virtual address that maps the
27  *        base physical address
28  *
29  * @param[in] physicalAddress - Starts physical address of the I/O range to be mapped.
30  * @param[in] mapSize - Number of bytes that were mapped
31  * @param[out] ppVirtBuffAddr - Pointer to the base virtual address to which the physical pages were mapped
32  *
33  * @return Returns a non-zero value in case of failure
34  */
CC_PalMemMap(CCDmaAddr_t physicalAddress,uint32_t mapSize,uint32_t ** ppVirtBuffAddr)35 uint32_t CC_PalMemMap(CCDmaAddr_t physicalAddress,
36                    uint32_t mapSize,
37                uint32_t **ppVirtBuffAddr)
38 {
39     CC_UNUSED_PARAM(mapSize);
40     *ppVirtBuffAddr = (uint32_t *)physicalAddress;
41 
42     return 0;
43 }/* End of CC_PalMemMap */
44 
45 
46 /**
47  * @brief This function purpose is to Unmaps a specified address range previously mapped
48  *        by CC_PalMemMap
49  *
50  *
51  * @param[in] pVirtBuffAddr - Pointer to the base virtual address to which the physical
52  *            pages were mapped
53  * @param[in] mapSize - Number of bytes that were mapped
54  *
55  * @return Returns a non-zero value in case of failure
56  */
CC_PalMemUnMap(uint32_t * pVirtBuffAddr,uint32_t mapSize)57 uint32_t CC_PalMemUnMap(uint32_t *pVirtBuffAddr,
58                      uint32_t mapSize)
59 {
60     CC_UNUSED_PARAM(pVirtBuffAddr);
61     CC_UNUSED_PARAM(mapSize);
62     return 0;
63 }/* End of CC_PalMemUnMap */
64