net: wireless: rockchip_wlan: add rtl8723bs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / hal / phydm / phydm_cfotracking.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
4  *                                        \r
5  * This program is free software; you can redistribute it and/or modify it\r
6  * under the terms of version 2 of the GNU General Public License as\r
7  * published by the Free Software Foundation.\r
8  *\r
9  * This program is distributed in the hope that it will be useful, but WITHOUT\r
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
12  * more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along with\r
15  * this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
17  *\r
18  *\r
19  ******************************************************************************/\r
20 \r
21 #ifndef __PHYDMCFOTRACK_H__\r
22 #define    __PHYDMCFOTRACK_H__\r
23 \r
24 #define CFO_TRACKING_VERSION    "1.2" /*2015.06.17*/\r
25 \r
26 #define         CFO_TH_XTAL_HIGH                        20                      // kHz\r
27 #define         CFO_TH_XTAL_LOW                 10                      // kHz\r
28 #define         CFO_TH_ATC                                      80                      // kHz\r
29 \r
30 typedef struct _CFO_TRACKING_\r
31 {\r
32         BOOLEAN                 bATCStatus;\r
33         BOOLEAN                 largeCFOHit;\r
34         BOOLEAN                 bAdjust;\r
35         u1Byte                  CrystalCap;\r
36         u1Byte                  DefXCap;\r
37         int                             CFO_tail[2];\r
38         int                             CFO_ave_pre;\r
39         u4Byte                  packetCount;\r
40         u4Byte                  packetCount_pre;\r
41 \r
42         BOOLEAN                 bForceXtalCap;\r
43         BOOLEAN                 bReset;\r
44 }CFO_TRACKING, *PCFO_TRACKING;\r
45 \r
46 VOID\r
47 ODM_CfoTrackingReset(\r
48         IN              PVOID                                   pDM_VOID\r
49 );\r
50 \r
51 VOID\r
52 ODM_CfoTrackingInit(\r
53         IN              PVOID                                   pDM_VOID\r
54 );\r
55 \r
56 VOID\r
57 ODM_CfoTracking(\r
58         IN              PVOID                                   pDM_VOID\r
59 );\r
60 \r
61 VOID\r
62 ODM_ParsingCFO(\r
63         IN              PVOID                                   pDM_VOID,\r
64         IN              PVOID                                   pPktinfo_VOID,\r
65         IN      s1Byte*                                         pcfotail\r
66 );\r
67 \r
68 #endif