1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2017 Realtek Corporation. 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 *****************************************************************************/ 15 #ifndef __RTL8188F_RECV_H__ 16 #define __RTL8188F_RECV_H__ 17 18 #if defined(CONFIG_USB_HCI) 19 #ifndef MAX_RECVBUF_SZ 20 #ifdef PLATFORM_OS_CE 21 #define MAX_RECVBUF_SZ (8192+1024) /* 8K+1k */ 22 #else 23 #ifdef CONFIG_MINIMAL_MEMORY_USAGE 24 #define MAX_RECVBUF_SZ (4000) /* about 4K */ 25 #else 26 #ifdef CONFIG_PLATFORM_MSTAR 27 #define MAX_RECVBUF_SZ (8192) /* 8K */ 28 #elif defined(CONFIG_PLATFORM_HISILICON) 29 #define MAX_RECVBUF_SZ (16384) /* 16k */ 30 #else 31 #define MAX_RECVBUF_SZ (32768) /* 32k */ 32 #endif 33 /* #define MAX_RECVBUF_SZ (20480) */ /* 20K */ 34 /* #define MAX_RECVBUF_SZ (10240) */ /* 10K */ 35 /* #define MAX_RECVBUF_SZ (16384) */ /* 16k - 92E RX BUF :16K */ 36 /* #define MAX_RECVBUF_SZ (8192+1024) */ /* 8K+1k */ 37 #endif 38 #endif 39 #endif /* !MAX_RECVBUF_SZ */ 40 #elif defined(CONFIG_PCI_HCI) 41 #define MAX_RECVBUF_SZ (4000) /* about 4K */ 42 #elif defined(CONFIG_SDIO_HCI) 43 #define MAX_RECVBUF_SZ (RX_DMA_BOUNDARY_8188F + 1) 44 #endif /* CONFIG_SDIO_HCI */ 45 46 /* Rx smooth factor */ 47 #define Rx_Smooth_Factor (20) 48 49 #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 50 s32 rtl8188fs_init_recv_priv(PADAPTER padapter); 51 void rtl8188fs_free_recv_priv(PADAPTER padapter); 52 s32 rtl8188fs_recv_hdl(_adapter *padapter); 53 #endif 54 55 #ifdef CONFIG_USB_HCI 56 int rtl8188fu_init_recv_priv(_adapter *padapter); 57 void rtl8188fu_free_recv_priv(_adapter *padapter); 58 void rtl8188fu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf); 59 #endif 60 61 #ifdef CONFIG_PCI_HCI 62 s32 rtl8188fe_init_recv_priv(PADAPTER padapter); 63 void rtl8188fe_free_recv_priv(PADAPTER padapter); 64 #endif 65 66 void rtl8188f_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc); 67 68 #endif /* __RTL8188F_RECV_H__ */ 69