rtl8192eu-linux-driver/include/rtl8188f_recv.h

69 lines
2.3 KiB
C
Raw Normal View History

2017-05-11 18:47:23 +00:00
/******************************************************************************
*
2019-11-09 10:12:08 +00:00
* Copyright(c) 2007 - 2017 Realtek Corporation.
2017-05-11 18:47:23 +00:00
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
2019-11-09 10:12:08 +00:00
*****************************************************************************/
2017-05-11 18:47:23 +00:00
#ifndef __RTL8188F_RECV_H__
#define __RTL8188F_RECV_H__
#if defined(CONFIG_USB_HCI)
#ifndef MAX_RECVBUF_SZ
#ifdef PLATFORM_OS_CE
2019-11-09 10:12:08 +00:00
#define MAX_RECVBUF_SZ (8192+1024) /* 8K+1k */
2017-05-11 18:47:23 +00:00
#else
#ifdef CONFIG_MINIMAL_MEMORY_USAGE
2019-11-09 10:12:08 +00:00
#define MAX_RECVBUF_SZ (4000) /* about 4K */
2017-05-11 18:47:23 +00:00
#else
#ifdef CONFIG_PLATFORM_MSTAR
2019-11-09 10:12:08 +00:00
#define MAX_RECVBUF_SZ (8192) /* 8K */
2017-05-11 18:47:23 +00:00
#elif defined(CONFIG_PLATFORM_HISILICON)
#define MAX_RECVBUF_SZ (16384) /* 16k */
#else
#define MAX_RECVBUF_SZ (32768) /* 32k */
#endif
2019-11-09 10:12:08 +00:00
/* #define MAX_RECVBUF_SZ (20480) */ /* 20K */
/* #define MAX_RECVBUF_SZ (10240) */ /* 10K */
/* #define MAX_RECVBUF_SZ (16384) */ /* 16k - 92E RX BUF :16K */
/* #define MAX_RECVBUF_SZ (8192+1024) */ /* 8K+1k */
2017-05-11 18:47:23 +00:00
#endif
#endif
2019-11-09 10:12:08 +00:00
#endif /* !MAX_RECVBUF_SZ */
2017-05-11 18:47:23 +00:00
#elif defined(CONFIG_PCI_HCI)
2019-11-09 10:12:08 +00:00
#define MAX_RECVBUF_SZ (4000) /* about 4K */
2017-05-11 18:47:23 +00:00
#elif defined(CONFIG_SDIO_HCI)
#define MAX_RECVBUF_SZ (RX_DMA_BOUNDARY_8188F + 1)
#endif /* CONFIG_SDIO_HCI */
2019-11-09 10:12:08 +00:00
/* Rx smooth factor */
2017-05-11 18:47:23 +00:00
#define Rx_Smooth_Factor (20)
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
s32 rtl8188fs_init_recv_priv(PADAPTER padapter);
void rtl8188fs_free_recv_priv(PADAPTER padapter);
2019-11-09 10:12:08 +00:00
s32 rtl8188fs_recv_hdl(_adapter *padapter);
2017-05-11 18:47:23 +00:00
#endif
#ifdef CONFIG_USB_HCI
int rtl8188fu_init_recv_priv(_adapter *padapter);
2019-11-09 10:12:08 +00:00
void rtl8188fu_free_recv_priv(_adapter *padapter);
2017-05-11 18:47:23 +00:00
void rtl8188fu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf);
#endif
#ifdef CONFIG_PCI_HCI
s32 rtl8188fe_init_recv_priv(PADAPTER padapter);
void rtl8188fe_free_recv_priv(PADAPTER padapter);
#endif
void rtl8188f_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc);
#endif /* __RTL8188F_RECV_H__ */