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 #ifndef _CC_PAL_DMA_PLAT_H
9 #define _CC_PAL_DMA_PLAT_H
10 
11 #include <stdint.h>
12 
13 #ifdef __cplusplus
14 extern "C"
15 {
16 #endif
17 
18 #include "cc_address_defs.h"
19 
20 /**
21  * @brief   stub function, the function should initialize the DMA mapping of the platform (if needed)
22  *
23  * @param[in] buffSize - buffer size in Bytes
24  * @param[in] physBuffAddr - physical start address of the memory to map
25  *
26  * @return Start address of contiguous memory
27  */
28 extern uint32_t CC_PalDmaInit(uint32_t  buffSize,    /*!< [in] Buffer size in Bytes. */
29                   CCDmaAddr_t  physBuffAddr /*!< [in] Physical start address of the memory to map. */);
30 
31 /**
32  * @brief   free system resources created in PD_PAL_DmaInit()
33  *
34  *
35  * @return void
36  */
37 extern void CC_PalDmaTerminate(void);
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif
43 
44 
45