GNU Linux-libre 4.14.290-gnu1
[releases.git] / drivers / staging / rtl8723bs / hal / 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  ******************************************************************************/
15
16 #ifndef __ODMCFOTRACK_H__
17 #define    __ODMCFOTRACK_H__
18
19 #define         CFO_TH_XTAL_HIGH                20              /*  kHz */
20 #define         CFO_TH_XTAL_LOW                 10              /*  kHz */
21 #define         CFO_TH_ATC                      80              /*  kHz */
22
23 typedef struct _CFO_TRACKING_ {
24         bool bATCStatus;
25         bool largeCFOHit;
26         bool bAdjust;
27         u8 CrystalCap;
28         u8 DefXCap;
29         int CFO_tail[2];
30         int CFO_ave_pre;
31         u32 packetCount;
32         u32 packetCount_pre;
33
34         bool bForceXtalCap;
35         bool bReset;
36 } CFO_TRACKING, *PCFO_TRACKING;
37
38 void ODM_CfoTrackingReset(void *pDM_VOID
39 );
40
41 void ODM_CfoTrackingInit(void *pDM_VOID);
42
43 void ODM_CfoTracking(void *pDM_VOID);
44
45 void ODM_ParsingCFO(void *pDM_VOID, void *pPktinfo_VOID, s8 *pcfotail);
46
47 #endif