2019-04-22 11:31:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. */
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
#ifndef __RTW_MEM_H__
|
|
|
|
#define __RTW_MEM_H__
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
#include <drv_conf.h>
|
|
|
|
#include <basic_types.h>
|
|
|
|
#include <osdep_service.h>
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
#ifdef CONFIG_PLATFORM_MSTAR_HIGH
|
|
|
|
#define MAX_RTKM_RECVBUF_SZ (31744) /* 31k */
|
|
|
|
#else
|
|
|
|
#define MAX_RTKM_RECVBUF_SZ (15360) /* 15k */
|
|
|
|
#endif /* CONFIG_PLATFORM_MSTAR_HIGH */
|
|
|
|
#define MAX_RTKM_NR_PREALLOC_RECV_SKB 16
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
u16 rtw_rtkm_get_buff_size(void);
|
|
|
|
u8 rtw_rtkm_get_nr_recv_skb(void);
|
|
|
|
struct u8 *rtw_alloc_revcbuf_premem(void);
|
|
|
|
struct sk_buff *rtw_alloc_skb_premem(u16 in_size);
|
|
|
|
int rtw_free_skb_premem(struct sk_buff *pskb);
|
2013-05-19 04:28:07 +00:00
|
|
|
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
#endif /* __RTW_MEM_H__ */
|