video: rockchip: tve: support rk3228
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bu / hal / OUTSRC / odm_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 __ODMCFOTRACK_H__
22 #define    __ODMCFOTRACK_H__
23
24 #define         CFO_TH_XTAL_HIGH                        20                      // kHz
25 #define         CFO_TH_XTAL_LOW                 10                      // kHz
26 #define         CFO_TH_ATC                                      80                      // kHz
27
28 typedef struct _CFO_TRACKING_
29 {
30         BOOLEAN                 bATCStatus;
31         BOOLEAN                 largeCFOHit;
32         BOOLEAN                 bAdjust;
33         u1Byte                  CrystalCap;
34         u1Byte                  DefXCap;
35         int                             CFO_tail[2];
36         int                             CFO_ave_pre;
37         u4Byte                  packetCount;
38         u4Byte                  packetCount_pre;
39
40         BOOLEAN                 bForceXtalCap;
41         BOOLEAN                 bReset;
42 }CFO_TRACKING, *PCFO_TRACKING;
43
44 VOID
45 ODM_CfoTrackingReset(
46         IN              PVOID                                   pDM_VOID
47 );
48
49 VOID
50 ODM_CfoTrackingInit(
51         IN              PVOID                                   pDM_VOID
52 );
53
54 VOID
55 ODM_CfoTracking(
56         IN              PVOID                                   pDM_VOID
57 );
58
59 VOID
60 ODM_ParsingCFO(
61         IN              PVOID                                   pDM_VOID,
62         IN              PVOID                                   pPktinfo_VOID,
63         IN      s1Byte*                                         pcfotail
64 );
65
66 #endif