xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/include/rtw_mem.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2022 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #ifndef __RTW_MEM_H__
16 #define __RTW_MEM_H__
17 
18 #define RTKM_MGMT_SIZE PAGE_SIZE
19 
20 void *rtkm_kmalloc(size_t size, gfp_t flags);
21 void *rtkm_kzalloc(size_t size, gfp_t flags);
22 void rtkm_kfree(const void *objp, size_t size);
23 
24 int rtkm_prealloc_init(void);
25 void rtkm_prealloc_destroy(void);
26 void rtkm_dump_mstatus(void *sel);
27 void rtkm_set_trace(unsigned int mask);
28 
29 #endif /* __RTW_MEM_H__ */
30