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 void rtl8188eu_recv_tasklet(unsigned long priv);
37 void update_recvframe_phyinfo_88e(struct recv_frame *fra, struct phy_stat *phy);
38 void update_recvframe_attrib_88e(struct recv_frame *fra, struct recv_stat *stat);
39 
40 #endif
41