hc
2024-05-08 f309769f8af08599af39b6de4f675784ce76530d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/******************************************************************************
 *
 * Copyright(c) 2007 - 2017 Realtek Corporation.
 *
 * 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.
 *
 *****************************************************************************/
#ifndef __RTL8188F_RECV_H__
#define __RTL8188F_RECV_H__
 
#if defined(CONFIG_USB_HCI)
   #ifndef MAX_RECVBUF_SZ
 
       #ifdef CONFIG_MINIMAL_MEMORY_USAGE
           #define MAX_RECVBUF_SZ (4000) /* about 4K */
       #else
           #ifdef CONFIG_PLATFORM_HISILICON
               #define MAX_RECVBUF_SZ (16384) /* 16k */
           #else
               #define MAX_RECVBUF_SZ (32768) /* 32k */
           #endif
           /* #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         */
       #endif
   #endif /* !MAX_RECVBUF_SZ */
#elif defined(CONFIG_PCI_HCI)
   #define MAX_RECVBUF_SZ (4000) /* about 4K */
#elif defined(CONFIG_SDIO_HCI)
   /* minmum 4K, multiple of 8-byte is required, multiple of sdio block size is prefered */
   #define MAX_RECVBUF_SZ _RND(RX_DMA_BOUNDARY_8188F + 1, 8)
#endif /* CONFIG_SDIO_HCI */
 
/* Rx smooth factor */
#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);
s32 rtl8188fs_recv_hdl(_adapter *padapter);
#endif
 
#ifdef CONFIG_USB_HCI
int rtl8188fu_init_recv_priv(_adapter *padapter);
void rtl8188fu_free_recv_priv(_adapter *padapter);
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__ */