1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
\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
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
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
19 ******************************************************************************/
\r
20 #ifndef __RTW_MEM_H__
\r
21 #define __RTW_MEM_H__
\r
23 #include <drv_conf.h>
\r
24 #include <basic_types.h>
\r
25 #include <osdep_service.h>
\r
28 #ifndef MAX_RECVBUF_SZ
\r
29 #define MAX_RECVBUF_SZ (32768-RECVBUFF_ALIGN_SZ) // 32k
\r
32 struct u8* rtw_alloc_revcbuf_premem(void);
\r
33 struct sk_buff *rtw_alloc_skb_premem(void);
\r
34 int rtw_free_skb_premem(struct sk_buff *pskb);
\r
37 #endif //__RTW_MEM_H__
\r