1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  ******************************************************************************/
15 #ifndef _RTL8192C_RECV_H_
16 #define _RTL8192C_RECV_H_
17 
18 #define RECV_BLK_SZ 512
19 #define RECV_BLK_CNT 16
20 #define RECV_BLK_TH RECV_BLK_CNT
21 
22 #define MAX_RECVBUF_SZ (10240)
23 
24 struct phy_stat
25 {
26 	unsigned int phydw0;
27 
28 	unsigned int phydw1;
29 
30 	unsigned int phydw2;
31 
32 	unsigned int phydw3;
33 
34 	unsigned int phydw4;
35 
36 	unsigned int phydw5;
37 
38 	unsigned int phydw6;
39 
40 	unsigned int phydw7;
41 };
42 
43 /*  Rx smooth factor */
44 #define	Rx_Smooth_Factor (20)
45 
46 
47 void rtl8192c_translate_rx_signal_stuff(union recv_frame *precvframe, struct phy_stat *pphy_status);
48 void rtl8192c_query_rx_desc_status(union recv_frame *precvframe, struct recv_stat *pdesc);
49 
50 #endif
51