net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / hal / phydm / phydm_antdect.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 __PHYDMANTDECT_H__
22 #define    __PHYDMANTDECT_H__
23
24 #define ANTDECT_VERSION "2.1"   /*2015.07.29 by YuChen*/
25
26 #if(defined(CONFIG_ANT_DETECTION))
27 //#if( DM_ODM_SUPPORT_TYPE & (ODM_WIN |ODM_CE))
28 //ANT Test
29 #define         ANTTESTALL              0x00    /*Ant A or B will be Testing*/   
30 #define         ANTTESTA                0x01    /*Ant A will be Testing*/       
31 #define         ANTTESTB                0x02    /*Ant B will be testing*/
32
33 #define MAX_ANTENNA_DETECTION_CNT       10 
34
35
36 typedef struct _ANT_DETECTED_INFO{
37         BOOLEAN                 bAntDetected;
38         u4Byte                  dBForAntA;
39         u4Byte                  dBForAntB;
40         u4Byte                  dBForAntO;
41 }ANT_DETECTED_INFO, *PANT_DETECTED_INFO;
42
43
44 typedef enum tag_SW_Antenna_Switch_Definition
45 {
46         Antenna_A = 1,
47         Antenna_B = 2,  
48         Antenna_MAX = 3,
49 }DM_SWAS_E;
50
51
52
53 //1 [1. Single Tone Method] ===================================================
54
55
56
57 VOID
58 ODM_SingleDualAntennaDefaultSetting(
59         IN              PVOID           pDM_VOID
60         );
61
62 BOOLEAN
63 ODM_SingleDualAntennaDetection(
64         IN              PVOID           pDM_VOID,
65         IN              u1Byte                  mode
66         );
67
68 //1 [2. Scan AP RSSI Method] ==================================================
69
70 #define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink
71
72 BOOLEAN 
73 ODM_SwAntDivCheckBeforeLink(
74         IN              PVOID           pDM_VOID
75         );
76
77
78
79
80 //1 [3. PSD Method] ==========================================================
81
82
83 VOID
84 ODM_SingleDualAntennaDetection_PSD(
85         IN              PVOID           pDM_VOID
86 );
87
88 #endif
89
90 VOID
91 odm_SwAntDetectInit(
92         IN              PVOID           pDM_VOID
93         );
94
95
96 #endif
97
98