1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20#ifndef __RTL8188E_RECV_H__
21#define __RTL8188E_RECV_H__
22
23#define TX_RPT1_PKT_LEN 8
24
25#define RECV_BLK_SZ 512
26#define RECV_BLK_CNT 16
27#define RECV_BLK_TH RECV_BLK_CNT
28#define RECV_BULK_IN_ADDR 0x80
29#define RECV_INT_IN_ADDR 0x81
30
31#define NR_PREALLOC_RECV_SKB (8)
32
33#define NR_RECVBUFF (4)
34
35#define MAX_RECVBUF_SZ (15360)
36
37struct phy_stat {
38 unsigned int phydw0;
39 unsigned int phydw1;
40 unsigned int phydw2;
41 unsigned int phydw3;
42 unsigned int phydw4;
43 unsigned int phydw5;
44 unsigned int phydw6;
45 unsigned int phydw7;
46};
47
48
49#define Rx_Smooth_Factor (20)
50
51enum rx_packet_type {
52 NORMAL_RX,
53 TX_REPORT1,
54 TX_REPORT2,
55 HIS_REPORT,
56};
57
58#define INTERRUPT_MSG_FORMAT_LEN 60
59void rtl8188eu_init_recvbuf(struct adapter *padapter, struct recv_buf *buf);
60s32 rtl8188eu_init_recv_priv(struct adapter *padapter);
61void rtl8188eu_free_recv_priv(struct adapter * padapter);
62void rtl8188eu_recv_hdl(struct adapter * padapter, struct recv_buf *precvbuf);
63void rtl8188eu_recv_tasklet(void *priv);
64void rtl8188e_query_rx_phy_status(union recv_frame *fr, struct phy_stat *phy);
65void rtl8188e_process_phy_info(struct adapter * padapter, void *prframe);
66void update_recvframe_phyinfo_88e(union recv_frame *fra, struct phy_stat *phy);
67void update_recvframe_attrib_88e(union recv_frame *fra, struct recv_stat *stat);
68
69#endif
70