1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
20 #ifndef __RTL8188F_RECV_H__
21 #define __RTL8188F_RECV_H__
23 #if defined(CONFIG_USB_HCI)
24 #ifndef MAX_RECVBUF_SZ
26 #define MAX_RECVBUF_SZ (8192+1024) /* 8K+1k */
28 #ifdef CONFIG_MINIMAL_MEMORY_USAGE
29 #define MAX_RECVBUF_SZ (4000) /* about 4K */
31 #ifdef CONFIG_PLATFORM_MSTAR
32 #define MAX_RECVBUF_SZ (8192) /* 8K */
33 #elif defined(CONFIG_PLATFORM_HISILICON)
34 #define MAX_RECVBUF_SZ (16384) /* 16k */
36 #define MAX_RECVBUF_SZ (32768) /* 32k */
38 /* #define MAX_RECVBUF_SZ (20480) */ /* 20K */
39 /* #define MAX_RECVBUF_SZ (10240) */ /* 10K */
40 /* #define MAX_RECVBUF_SZ (16384) */ /* 16k - 92E RX BUF :16K */
41 /* #define MAX_RECVBUF_SZ (8192+1024) */ /* 8K+1k */
44 #endif /* !MAX_RECVBUF_SZ */
45 #elif defined(CONFIG_PCI_HCI)
46 #define MAX_RECVBUF_SZ (4000) /* about 4K */
47 #elif defined(CONFIG_SDIO_HCI)
48 #define MAX_RECVBUF_SZ (RX_DMA_BOUNDARY_8188F + 1)
49 #endif /* CONFIG_SDIO_HCI */
51 /* Rx smooth factor */
52 #define Rx_Smooth_Factor (20)
54 #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
55 s32 rtl8188fs_init_recv_priv(PADAPTER padapter);
56 void rtl8188fs_free_recv_priv(PADAPTER padapter);
60 int rtl8188fu_init_recv_priv(_adapter *padapter);
61 void rtl8188fu_free_recv_priv(_adapter *padapter);
62 void rtl8188fu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf);
66 s32 rtl8188fe_init_recv_priv(PADAPTER padapter);
67 void rtl8188fe_free_recv_priv(PADAPTER padapter);
70 void rtl8188f_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc);
72 #endif /* __RTL8188F_RECV_H__ */