net: wireless: rockchip_wlan: add rtl8188fu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188fu / include / rtw_mem.h
diff --git a/drivers/net/wireless/rockchip_wlan/rtl8188fu/include/rtw_mem.h b/drivers/net/wireless/rockchip_wlan/rtl8188fu/include/rtw_mem.h
new file mode 100644 (file)
index 0000000..1c11db1
--- /dev/null
@@ -0,0 +1,42 @@
+/******************************************************************************\r
+ *\r
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
+ *                                        \r
+ * This program is free software; you can redistribute it and/or modify it\r
+ * under the terms of version 2 of the GNU General Public License as\r
+ * published by the Free Software Foundation.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but WITHOUT\r
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
+ * more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License along with\r
+ * this program; if not, write to the Free Software Foundation, Inc.,\r
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
+ *\r
+ *\r
+ ******************************************************************************/\r
+#ifndef __RTW_MEM_H__\r
+#define __RTW_MEM_H__\r
+\r
+#include <drv_conf.h>\r
+#include <basic_types.h>\r
+#include <osdep_service.h>\r
+\r
+#ifdef CONFIG_PLATFORM_MSTAR_HIGH\r
+#define MAX_RTKM_RECVBUF_SZ (31744) /* 31k */\r
+#else\r
+#define MAX_RTKM_RECVBUF_SZ (15360) /* 15k */\r
+#endif /* CONFIG_PLATFORM_MSTAR_HIGH */\r
+#define MAX_RTKM_NR_PREALLOC_RECV_SKB 16\r
+\r
+u16 rtw_rtkm_get_buff_size(void);\r
+u8 rtw_rtkm_get_nr_recv_skb(void);\r
+struct u8* rtw_alloc_revcbuf_premem(void);\r
+struct sk_buff *rtw_alloc_skb_premem(u16 in_size);\r
+int rtw_free_skb_premem(struct sk_buff *pskb);\r
+\r
+\r
+#endif //__RTW_MEM_H__\r
+\r