OSDN Git Service

staging: rtl8723bs: update to the latest driver
[android-x86/kernel.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 {
25         bool                    bATCStatus;
26         bool                    largeCFOHit;
27         bool                    bAdjust;
28         u8      CrystalCap;
29         u8      DefXCap;
30         int                             CFO_tail[2];
31         int                             CFO_ave_pre;
32         u32             packetCount;
33         u32             packetCount_pre;
34
35         bool                    bForceXtalCap;
36         bool                    bReset;
37 } CFO_TRACKING, *PCFO_TRACKING;
38
39 void ODM_CfoTrackingReset(void *pDM_VOID
40 );
41
42 void ODM_CfoTrackingInit(void *pDM_VOID);
43
44 void ODM_CfoTracking(void *pDM_VOID);
45
46 void ODM_ParsingCFO(void *pDM_VOID, void *pPktinfo_VOID, s8 *pcfotail);
47
48 #endif