1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2007 - 2011 Realtek Corporation. */
3 
4 #ifndef __RTL8188E_RECV_H__
5 #define __RTL8188E_RECV_H__
6 
7 #define TX_RPT1_PKT_LEN 8
8 
9 #define NR_PREALLOC_RECV_SKB (8)
10 
11 #define NR_RECVBUFF (4)
12 
13 #define MAX_RECVBUF_SZ (15360) /*  15k < 16k */
14 
15 struct phy_stat {
16 	unsigned int phydw0;
17 	unsigned int phydw1;
18 	unsigned int phydw2;
19 	unsigned int phydw3;
20 	unsigned int phydw4;
21 	unsigned int phydw5;
22 	unsigned int phydw6;
23 	unsigned int phydw7;
24 };
25 
26 /*  Rx smooth factor */
27 #define	Rx_Smooth_Factor (20)
28 
29 enum rx_packet_type {
30 	NORMAL_RX,/* Normal rx packet */
31 	TX_REPORT1,/* CCX */
32 	TX_REPORT2,/* TX RPT */
33 	HIS_REPORT,/*  USB HISR RPT */
34 };
35 
36 s32 rtl8188eu_init_recv_priv(struct adapter *padapter);
37 void rtl8188eu_free_recv_priv(struct adapter * padapter);
38 void rtl8188eu_recv_tasklet(unsigned long priv);
39 void update_recvframe_phyinfo_88e(struct recv_frame *fra, struct phy_stat *phy);
40 void update_recvframe_attrib_88e(struct recv_frame *fra, struct recv_stat *stat);
41 
42 #endif
43