net: wireless: rockchip_wlan: add rtl8723bs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / include / rtw_mem.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
4  *                                        \r
5  * This program is free software; you can redistribute it and/or modify it\r
6  * under the terms of version 2 of the GNU General Public License as\r
7  * published by the Free Software Foundation.\r
8  *\r
9  * This program is distributed in the hope that it will be useful, but WITHOUT\r
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
12  * more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along with\r
15  * this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
17  *\r
18  *\r
19  ******************************************************************************/\r
20 #ifndef __RTW_MEM_H__\r
21 #define __RTW_MEM_H__\r
22 \r
23 #include <drv_conf.h>\r
24 #include <basic_types.h>\r
25 #include <osdep_service.h>\r
26 \r
27 #ifdef CONFIG_PLATFORM_MSTAR_HIGH\r
28 #define MAX_RTKM_RECVBUF_SZ (31744) /* 31k */\r
29 #else\r
30 #define MAX_RTKM_RECVBUF_SZ (15360) /* 15k */\r
31 #endif /* CONFIG_PLATFORM_MSTAR_HIGH */\r
32 #define MAX_RTKM_NR_PREALLOC_RECV_SKB 16\r
33 \r
34 u16 rtw_rtkm_get_buff_size(void);\r
35 u8 rtw_rtkm_get_nr_recv_skb(void);\r
36 struct u8* rtw_alloc_revcbuf_premem(void);\r
37 struct sk_buff *rtw_alloc_skb_premem(u16 in_size);\r
38 int rtw_free_skb_premem(struct sk_buff *pskb);\r
39 \r
40 \r
41 #endif //__RTW_MEM_H__\r
42 \r