1 /*
2  *  Copyright 2023-2024 NXP
3  *
4  *  SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef _MEM_POOL_CONFIG_H_
9 #define _MEM_POOL_CONFIG_H_
10 
11 #include <mem_pool.h>
12 
13 #include <wmlog.h>
14 #define mpool_e(...) wmlog_e("mpool", ##__VA_ARGS__)
15 #define mpool_w(...) wmlog_w("mpool", ##__VA_ARGS__)
16 
17 #if CONFIG_MEM_POOL_DEBUG
18 #define mpool_d(...) wmlog("mpool", ##__VA_ARGS__)
19 #else
20 #define mpool_d(...)
21 #endif /* ! CONFIG_MEM_POOL_DEBUG */
22 
23 /**
24  *  Handle for memory pools.
25  *
26  *  These are fixed allocation size memory areas.
27  */
28 extern MemoryPool_t pmAdapterMemoryPool;
29 extern MemoryPool_t pmPrivateMemoryPool;
30 extern MemoryPool_t buf_32_MemoryPool;
31 extern MemoryPool_t buf_128_MemoryPool;
32 extern MemoryPool_t buf_256_MemoryPool;
33 extern MemoryPool_t buf_512_MemoryPool;
34 extern MemoryPool_t buf_768_MemoryPool;
35 extern MemoryPool_t buf_1024_MemoryPool;
36 extern MemoryPool_t buf_1280_MemoryPool;
37 extern MemoryPool_t buf_1536_MemoryPool;
38 extern MemoryPool_t buf_1792_MemoryPool;
39 extern MemoryPool_t buf_2048_MemoryPool;
40 extern MemoryPool_t buf_2560_MemoryPool;
41 extern MemoryPool_t buf_3072_MemoryPool;
42 extern MemoryPool_t buf_4096_MemoryPool;
43 
44 int mem_pool_init();
45 
46 #endif // _MEM_POOL_CONFIG_H_
47