xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/include/rtl8188f_recv.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
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.
8  *
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
12  * more details.
13  *
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
17  *
18  *
19  ******************************************************************************/
20 #ifndef __RTL8188F_RECV_H__
21 #define __RTL8188F_RECV_H__
22 
23 #if defined(CONFIG_USB_HCI)
24 	#ifndef MAX_RECVBUF_SZ
25 		#ifdef PLATFORM_OS_CE
26 			#define MAX_RECVBUF_SZ (8192+1024) /* 8K+1k */
27 		#else
28 			#ifdef CONFIG_MINIMAL_MEMORY_USAGE
29 				#define MAX_RECVBUF_SZ (4000) /* about 4K */
30 			#else
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 */
35 				#else
36 					#define MAX_RECVBUF_SZ (32768) /* 32k */
37 				#endif
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		 */
42 			#endif
43 		#endif
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 */
50 
51 /* Rx smooth factor */
52 #define	Rx_Smooth_Factor (20)
53 
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);
57 #endif
58 
59 #ifdef CONFIG_USB_HCI
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);
63 #endif
64 
65 #ifdef CONFIG_PCI_HCI
66 	s32 rtl8188fe_init_recv_priv(PADAPTER padapter);
67 	void rtl8188fe_free_recv_priv(PADAPTER padapter);
68 #endif
69 
70 void rtl8188f_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc);
71 
72 #endif /* __RTL8188F_RECV_H__ */
73