net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / hal / phydm / phydm_cfotracking.h
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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20
21 #ifndef __PHYDMCFOTRACK_H__
22 #define    __PHYDMCFOTRACK_H__
23
24 #define CFO_TRACKING_VERSION    "1.2" /*2015.06.17*/
25
26 #define         CFO_TH_XTAL_HIGH                        20                      // kHz
27 #define         CFO_TH_XTAL_LOW                 10                      // kHz
28 #define         CFO_TH_ATC                                      80                      // kHz
29
30 typedef struct _CFO_TRACKING_
31 {
32         BOOLEAN                 bATCStatus;
33         BOOLEAN                 largeCFOHit;
34         BOOLEAN                 bAdjust;
35         u1Byte                  CrystalCap;
36         u1Byte                  DefXCap;
37         int                             CFO_tail[2];
38         int                             CFO_ave_pre;
39         u4Byte                  packetCount;
40         u4Byte                  packetCount_pre;
41
42         BOOLEAN                 bForceXtalCap;
43         BOOLEAN                 bReset;
44 }CFO_TRACKING, *PCFO_TRACKING;
45
46 VOID
47 ODM_CfoTrackingReset(
48         IN              PVOID                                   pDM_VOID
49 );
50
51 VOID
52 ODM_CfoTrackingInit(
53         IN              PVOID                                   pDM_VOID
54 );
55
56 VOID
57 ODM_CfoTracking(
58         IN              PVOID                                   pDM_VOID
59 );
60
61 VOID
62 ODM_ParsingCFO(
63         IN              PVOID                                   pDM_VOID,
64         IN              PVOID                                   pPktinfo_VOID,
65         IN      s1Byte*                                         pcfotail
66 );
67
68 #endif