8723BU: Update 8723BU wifi driver to version v4.3.16_14189.20150519_BTCOEX2015119...
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bu / hal / OUTSRC / phydm_AntDect.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
4  *                                        \r
5  * This program is free software; you can redistribute it and/or modify it\r
6  * under the terms of version 2 of the GNU General Public License as\r
7  * published by the Free Software Foundation.\r
8  *\r
9  * This program is distributed in the hope that it will be useful, but WITHOUT\r
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
12  * more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along with\r
15  * this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
17  *\r
18  *\r
19  ******************************************************************************/\r
20  \r
21 #ifndef __PHYDMANTDECT_H__\r
22 #define    __PHYDMANTDECT_H__\r
23 \r
24 #define ANTDECT_VERSION "2.0" //2014.11.04\r
25 \r
26 #if(defined(CONFIG_ANT_DETECTION))\r
27 //#if( DM_ODM_SUPPORT_TYPE & (ODM_WIN |ODM_CE))\r
28 //ANT Test\r
29 #define         ANTTESTALL              0x00    /*Ant A or B will be Testing*/   \r
30 #define         ANTTESTA                0x01    /*Ant A will be Testing*/       \r
31 #define         ANTTESTB                0x02    /*Ant B will be testing*/\r
32 \r
33 #define MAX_ANTENNA_DETECTION_CNT       10 \r
34 \r
35 \r
36 typedef struct _ANT_DETECTED_INFO{\r
37         BOOLEAN                 bAntDetected;\r
38         u4Byte                  dBForAntA;\r
39         u4Byte                  dBForAntB;\r
40         u4Byte                  dBForAntO;\r
41 }ANT_DETECTED_INFO, *PANT_DETECTED_INFO;\r
42 \r
43 \r
44 typedef enum tag_SW_Antenna_Switch_Definition\r
45 {\r
46         Antenna_A = 1,\r
47         Antenna_B = 2,  \r
48         Antenna_MAX = 3,\r
49 }DM_SWAS_E;\r
50 \r
51 \r
52 \r
53 //1 [1. Single Tone Method] ===================================================\r
54 \r
55 \r
56 \r
57 VOID\r
58 ODM_SingleDualAntennaDefaultSetting(\r
59         IN              PVOID           pDM_VOID\r
60         );\r
61 \r
62 BOOLEAN\r
63 ODM_SingleDualAntennaDetection(\r
64         IN              PVOID           pDM_VOID,\r
65         IN              u1Byte                  mode\r
66         );\r
67 \r
68 //1 [2. Scan AP RSSI Method] ==================================================\r
69 \r
70 #define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink\r
71 \r
72 BOOLEAN \r
73 ODM_SwAntDivCheckBeforeLink(\r
74         IN              PVOID           pDM_VOID\r
75         );\r
76 \r
77 \r
78 \r
79 \r
80 //1 [3. PSD Method] ==========================================================\r
81 \r
82 \r
83 VOID\r
84 ODM_SingleDualAntennaDetection_PSD(\r
85         IN              PVOID           pDM_VOID\r
86 );\r
87 \r
88 #endif\r
89 \r
90 VOID\r
91 odm_SwAntDetectInit(\r
92         IN              PVOID           pDM_VOID\r
93         );\r
94 \r
95 \r
96 #endif\r
97 \r
98 \r