1 //===========================================
2 // The following is for 8723A 2Ant BT Co-exist definition
3 //===========================================
4 #define BT_INFO_8723A_2ANT_B_FTP BIT7
5 #define BT_INFO_8723A_2ANT_B_A2DP BIT6
6 #define BT_INFO_8723A_2ANT_B_HID BIT5
7 #define BT_INFO_8723A_2ANT_B_SCO_BUSY BIT4
8 #define BT_INFO_8723A_2ANT_B_ACL_BUSY BIT3
9 #define BT_INFO_8723A_2ANT_B_INQ_PAGE BIT2
10 #define BT_INFO_8723A_2ANT_B_SCO_ESCO BIT1
11 #define BT_INFO_8723A_2ANT_B_CONNECTION BIT0
13 #define BTC_RSSI_COEX_THRESH_TOL_8723A_2ANT 2
15 typedef enum _BT_INFO_SRC_8723A_2ANT{
16 BT_INFO_SRC_8723A_2ANT_WIFI_FW = 0x0,
17 BT_INFO_SRC_8723A_2ANT_BT_RSP = 0x1,
18 BT_INFO_SRC_8723A_2ANT_BT_ACTIVE_SEND = 0x2,
19 BT_INFO_SRC_8723A_2ANT_MAX
20 }BT_INFO_SRC_8723A_2ANT,*PBT_INFO_SRC_8723A_2ANT;
22 typedef enum _BT_8723A_2ANT_BT_STATUS{
23 BT_8723A_2ANT_BT_STATUS_IDLE = 0x0,
24 BT_8723A_2ANT_BT_STATUS_CONNECTED_IDLE = 0x1,
25 BT_8723A_2ANT_BT_STATUS_NON_IDLE = 0x2,
26 BT_8723A_2ANT_BT_STATUS_MAX
27 }BT_8723A_2ANT_BT_STATUS,*PBT_8723A_2ANT_BT_STATUS;
29 typedef enum _BT_8723A_2ANT_COEX_ALGO{
30 BT_8723A_2ANT_COEX_ALGO_UNDEFINED = 0x0,
31 BT_8723A_2ANT_COEX_ALGO_SCO = 0x1,
32 BT_8723A_2ANT_COEX_ALGO_HID = 0x2,
33 BT_8723A_2ANT_COEX_ALGO_A2DP = 0x3,
34 BT_8723A_2ANT_COEX_ALGO_PANEDR = 0x4,
35 BT_8723A_2ANT_COEX_ALGO_PANHS = 0x5,
36 BT_8723A_2ANT_COEX_ALGO_PANEDR_A2DP = 0x6,
37 BT_8723A_2ANT_COEX_ALGO_PANEDR_HID = 0x7,
38 BT_8723A_2ANT_COEX_ALGO_HID_A2DP_PANEDR = 0x8,
39 BT_8723A_2ANT_COEX_ALGO_HID_A2DP = 0x9,
40 BT_8723A_2ANT_COEX_ALGO_MAX
41 }BT_8723A_2ANT_COEX_ALGO,*PBT_8723A_2ANT_COEX_ALGO;
43 typedef struct _COEX_DM_8723A_2ANT{
47 //BOOLEAN bPreBtLnaConstrain;
48 //BOOLEAN bCurBtLnaConstrain;
49 //u1Byte bPreBtPsdMode;
50 //u1Byte bCurBtPsdMode;
51 u1Byte preFwDacSwingLvl;
52 u1Byte curFwDacSwingLvl;
53 BOOLEAN bCurIgnoreWlanAct;
54 BOOLEAN bPreIgnoreWlanAct;
58 u1Byte psTdmaDuAdjType;
59 BOOLEAN bResetTdmaAdjust;
62 //BOOLEAN bPreBtAutoReport;
63 //BOOLEAN bCurBtAutoReport;
66 BOOLEAN bPreRfRxLpfShrink;
67 BOOLEAN bCurRfRxLpfShrink;
68 u4Byte btRf0x1eBackup;
69 BOOLEAN bPreLowPenaltyRa;
70 BOOLEAN bCurLowPenaltyRa;
71 BOOLEAN bPreDacSwingOn;
72 u4Byte preDacSwingLvl;
73 BOOLEAN bCurDacSwingOn;
74 u4Byte curDacSwingLvl;
75 BOOLEAN bPreAdcBackOff;
76 BOOLEAN bCurAdcBackOff;
77 BOOLEAN bPreAgcTableEn;
78 BOOLEAN bCurAgcTableEn;
91 u1Byte wifiChnlInfo[3];
92 } COEX_DM_8723A_2ANT, *PCOEX_DM_8723A_2ANT;
94 typedef struct _COEX_STA_8723A_2ANT{
95 u4Byte highPriorityTx;
96 u4Byte highPriorityRx;
100 u1Byte preBtRssiState;
101 u1Byte preBtRssiState1;
102 u1Byte preWifiRssiState[4];
103 BOOLEAN bC2hBtInfoReqSent;
104 u1Byte btInfoC2h[BT_INFO_SRC_8723A_2ANT_MAX][10];
105 u4Byte btInfoC2hCnt[BT_INFO_SRC_8723A_2ANT_MAX];
106 BOOLEAN bC2hBtInquiryPage;
109 BOOLEAN bHoldForStackOperation;
110 u1Byte bHoldPeriodCnt;
111 // this is for c2h hang work-around
112 u4Byte c2hHangDetectCnt;
113 }COEX_STA_8723A_2ANT, *PCOEX_STA_8723A_2ANT;
115 //===========================================
116 // The following is interface which will notify coex module.
117 //===========================================
119 EXhalbtc8723a2ant_PowerOnSetting(
120 IN PBTC_COEXIST pBtCoexist
123 EXhalbtc8723a2ant_InitHwConfig(
124 IN PBTC_COEXIST pBtCoexist,
128 EXhalbtc8723a2ant_InitCoexDm(
129 IN PBTC_COEXIST pBtCoexist
132 EXhalbtc8723a2ant_IpsNotify(
133 IN PBTC_COEXIST pBtCoexist,
137 EXhalbtc8723a2ant_LpsNotify(
138 IN PBTC_COEXIST pBtCoexist,
142 EXhalbtc8723a2ant_ScanNotify(
143 IN PBTC_COEXIST pBtCoexist,
147 EXhalbtc8723a2ant_ConnectNotify(
148 IN PBTC_COEXIST pBtCoexist,
152 EXhalbtc8723a2ant_MediaStatusNotify(
153 IN PBTC_COEXIST pBtCoexist,
157 EXhalbtc8723a2ant_SpecialPacketNotify(
158 IN PBTC_COEXIST pBtCoexist,
162 EXhalbtc8723a2ant_HaltNotify(
163 IN PBTC_COEXIST pBtCoexist
166 EXhalbtc8723a2ant_Periodical(
167 IN PBTC_COEXIST pBtCoexist
170 EXhalbtc8723a2ant_BtInfoNotify(
171 IN PBTC_COEXIST pBtCoexist,
176 EXhalbtc8723a2ant_StackOperationNotify(
177 IN PBTC_COEXIST pBtCoexist,
181 EXhalbtc8723a2ant_DisplayCoexInfo(
182 IN PBTC_COEXIST pBtCoexist