[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / common / paf_heapMgr.h
1 #ifndef _PSDKAF_HEAPMGR_H_
2 #define _PSDKAF_HEAPMGR_H_
4 #include <xdc/std.h>
5 #include <xdc/runtime/IHeap.h>
7 #define PAF_NUM_PRVMEM_HEAPS ( 3 )
8 #define PAF_NUM_SHMEM_HEAPS ( 2 )
9 #define PAF_NUM_HEAPS ( PAF_NUM_PRVMEM_HEAPS + PAF_NUM_SHMEM_HEAPS )
10 #define PAF_HEAP_ID_INT ( 0 ) // L2 SRAM
11 #define PAF_HEAP_ID_INT1 ( 1 ) // MSMC SRAM
12 #define PAF_HEAP_ID_EXT ( 2 ) // DDR3
13 #define PAF_HEAP_ID_INT1_SHM ( 3 ) // MSMC SRAM, Shared
14 #define PAF_HEAP_ID_EXT_SHM ( 4 ) // DDR3, Shared
16 extern Int gPafHeapIdInt;
17 extern Int gPafHeapIdInt1;
18 extern Int gPafHeapIdExt;
19 extern Int gPafHeapIdInt1Shm;
20 extern Int gPafHeapIdExtShm;
22 /* Initialize PAF heap manager */
23 Void pafHeapMgr_init(
24 IHeap_Handle hIntHeap,
25 IHeap_Handle hIntHeap1,
26 IHeap_Handle hExtHeap,
27 IHeap_Handle hIntHeap1Shm,
28 IHeap_Handle hExtHeapShm
29 );
31 /* Write heap handle to PAF heap manager for provided index */
32 Void pafHeapMgr_writeHeapHandle(
33 Int heapId,
34 IHeap_Handle hHeap
35 );
37 /* Read heap handle from PAF heap manager for provided index */
38 IHeap_Handle pafHeapMgr_readHeapHandle(
39 Int heapId
40 );
42 #endif /* _PSDKAF_HEAPMGR_H_ */