FreeBSD kernel ATH device code
ah_btcoex.h
Go to the documentation of this file.
1/*-
2 * SPDX-License-Identifier: ISC
3 *
4 * Copyright (c) 2014 Qualcomm Atheros, Inc.
5 * All Rights Reserved.
6 *
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 *
19 * $FreeBSD$
20 */
21#ifndef __ATH_HAL_BTCOEX_H__
22#define __ATH_HAL_BTCOEX_H__
23
24/*
25 * General BT coexistence definitions.
26 */
27typedef enum {
28 HAL_BT_MODULE_CSR_BC4 = 0, /* CSR BlueCore v4 */
29 HAL_BT_MODULE_JANUS = 1, /* Kite + Valkyrie combo */
30 HAL_BT_MODULE_HELIUS = 2, /* Kiwi + Valkyrie combo */
33
34typedef struct {
42 u_int8_t bt_isolation;
44
45typedef enum {
46 HAL_BT_COEX_MODE_LEGACY = 0, /* legacy rx_clear mode */
47 HAL_BT_COEX_MODE_UNSLOTTED = 1, /* untimed/unslotted mode */
48 HAL_BT_COEX_MODE_SLOTTED = 2, /* slotted mode */
49 HAL_BT_COEX_MODE_DISALBED = 3, /* coexistence disabled */
51
52typedef enum {
53 HAL_BT_COEX_CFG_NONE, /* No bt coex enabled */
54 HAL_BT_COEX_CFG_2WIRE_2CH, /* 2-wire with 2 chains */
55 HAL_BT_COEX_CFG_2WIRE_CH1, /* 2-wire with ch1 */
56 HAL_BT_COEX_CFG_2WIRE_CH0, /* 2-wire with ch0 */
58 HAL_BT_COEX_CFG_MCI /* MCI */
60
61typedef enum {
62 HAL_BT_COEX_SET_ACK_PWR = 0, /* Change ACK power setting */
63 HAL_BT_COEX_LOWER_TX_PWR, /* Change transmit power */
64 HAL_BT_COEX_ANTENNA_DIVERSITY, /* Enable RX diversity for Kite */
65 HAL_BT_COEX_MCI_MAX_TX_PWR, /* Set max tx power for concurrent tx */
66 HAL_BT_COEX_MCI_FTP_STOMP_RX, /* Use a different weight for stomp low */
68
69/*
70 * MCI specific coexistence definitions.
71 */
72
73#define HAL_BT_COEX_FLAG_LOW_ACK_PWR 0x00000001
74#define HAL_BT_COEX_FLAG_LOWER_TX_PWR 0x00000002
75/* Check Rx Diversity is allowed */
76#define HAL_BT_COEX_FLAG_ANT_DIV_ALLOW 0x00000004
77/* Check Diversity is on or off */
78#define HAL_BT_COEX_FLAG_ANT_DIV_ENABLE 0x00000008
79
80#define HAL_BT_COEX_ANTDIV_CONTROL1_ENABLE 0x0b
81/* main: LNA1, alt: LNA2 */
82#define HAL_BT_COEX_ANTDIV_CONTROL2_ENABLE 0x09
83#define HAL_BT_COEX_ANTDIV_CONTROL1_FIXED_A 0x04
84#define HAL_BT_COEX_ANTDIV_CONTROL2_FIXED_A 0x09
85#define HAL_BT_COEX_ANTDIV_CONTROL1_FIXED_B 0x02
86#define HAL_BT_COEX_ANTDIV_CONTROL2_FIXED_B 0x06
87
88#define HAL_BT_COEX_ISOLATION_FOR_NO_COEX 30
89
90#define HAL_BT_COEX_ANT_DIV_SWITCH_COM 0x66666666
91
92#define HAL_BT_COEX_HELIUS_CHAINMASK 0x02
93
94#define HAL_BT_COEX_LOW_ACK_POWER 0x0
95#define HAL_BT_COEX_HIGH_ACK_POWER 0x3f3f3f
96
97typedef enum {
106
107typedef struct {
108 /* extend rx_clear after tx/rx to protect the burst (in usec). */
110
111 /*
112 * extend rx_clear as long as txsm is
113 * transmitting or waiting for ack.
114 */
116
117 /*
118 * extend rx_clear so that when tx_frame
119 * is asserted, rx_clear will drop.
120 */
122
123 /*
124 * coexistence mode
125 */
127
128 /*
129 * treat BT high priority traffic as
130 * a quiet collision
131 */
133
134 /*
135 * invert rx_clear as WLAN_ACTIVE
136 */
138
139 /*
140 * slotted mode only. indicate the time in usec
141 * from the rising edge of BT_ACTIVE to the time
142 * BT_PRIORITY can be sampled to indicate priority.
143 */
145
146 /*
147 * slotted mode only. indicate the time in usec
148 * from the rising edge of BT_ACTIVE to the time
149 * BT_PRIORITY can be sampled to indicate tx/rx and
150 * BT_FREQ is sampled.
151 */
153
154 /*
155 * slotted mode only. rx_clear and bt_ant decision
156 * will be held the entire time that BT_ACTIVE is asserted,
157 * otherwise the decision is made before every slot boundary.
158 */
161
162#define HAL_BT_COEX_FLAG_LOW_ACK_PWR 0x00000001
163#define HAL_BT_COEX_FLAG_LOWER_TX_PWR 0x00000002
164#define HAL_BT_COEX_FLAG_ANT_DIV_ALLOW 0x00000004 /* Check Rx Diversity is allowed */
165#define HAL_BT_COEX_FLAG_ANT_DIV_ENABLE 0x00000008 /* Check Diversity is on or off */
166#define HAL_BT_COEX_FLAG_MCI_MAX_TX_PWR 0x00000010
167#define HAL_BT_COEX_FLAG_MCI_FTP_STOMP_RX 0x00000020
168
169#define HAL_MCI_FLAG_DISABLE_TIMESTAMP 0x00000001 /* Disable time stamp */
170
171typedef enum mci_message_header {
172 MCI_LNA_CTRL = 0x10, /* len = 0 */
173 MCI_CONT_NACK = 0x20, /* len = 0 */
174 MCI_CONT_INFO = 0x30, /* len = 4 */
175 MCI_CONT_RST = 0x40, /* len = 0 */
176 MCI_SCHD_INFO = 0x50, /* len = 16 */
177 MCI_CPU_INT = 0x60, /* len = 4 */
178 MCI_SYS_WAKING = 0x70, /* len = 0 */
179 MCI_GPM = 0x80, /* len = 16 */
180 MCI_LNA_INFO = 0x90, /* len = 1 */
184 MCI_SYS_SLEEPING = 0xa0, /* len = 0 */
185 MCI_REQ_WAKE = 0xc0, /* len = 0 */
186 MCI_DEBUG_16 = 0xfe, /* len = 2 */
187 MCI_REMOTE_RESET = 0xff /* len = 16 */
189
190/* Default remote BT device MCI COEX version */
191#define MCI_GPM_COEX_MAJOR_VERSION_DEFAULT 3
192#define MCI_GPM_COEX_MINOR_VERSION_DEFAULT 0
193/* Local WLAN MCI COEX version */
194#define MCI_GPM_COEX_MAJOR_VERSION_WLAN 3
195#define MCI_GPM_COEX_MINOR_VERSION_WLAN 0
196
197typedef enum mci_gpm_subtype {
207 MCI_GPM_BT_DEBUG = 0xFF
209
220
222 /* WLAN information */
224 /* BT information */
229
234
244
249
254
259
264
265#define MCI_GPM_INVALID_PROFILE_HANDLE 0xff
266
272
273/* MCI GPM/Coex opcode/type definitions */
274enum {
278 /* MCI_GPM_WLAN_CAL_REQ, MCI_GPM_WLAN_CAL_DONE */
280 /* MCI_GPM_COEX_VERSION_QUERY */
281 /* MCI_GPM_COEX_VERSION_RESPONSE */
284 /* MCI_GPM_COEX_STATUS_QUERY */
287 /* MCI_GPM_COEX_HALT_BT_GPM */
289 /* MCI_GPM_COEX_WLAN_CHANNELS */
291 /* MCI_GPM_COEX_BT_PROFILE_INFO */
301 /* MCI_GPM_COEX_BT_STATUS_UPDATE */
305 /* MCI_GPM_COEX_BT_UPDATE_FLAGS */
309
310#define MCI_GPM_RECYCLE(_p_gpm) \
311 { \
312 *(((u_int32_t *)(_p_gpm)) + MCI_GPM_COEX_W_GPM_PAYLOAD) = MCI_GPM_RSVD_PATTERN32; \
313 }
314#define MCI_GPM_TYPE(_p_gpm) \
315 (*(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_TYPE) & 0xff)
316#define MCI_GPM_OPCODE(_p_gpm) \
317 (*(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_OPCODE) & 0xff)
318
319#define MCI_GPM_SET_CAL_TYPE(_p_gpm, _cal_type) \
320 { \
321 *(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_TYPE) = (_cal_type) & 0xff; \
322 }
323#define MCI_GPM_SET_TYPE_OPCODE(_p_gpm, _type, _opcode) \
324 { \
325 *(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_TYPE) = (_type) & 0xff; \
326 *(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_OPCODE) = (_opcode) & 0xff; \
327 }
328#define MCI_GPM_IS_CAL_TYPE(_type) ((_type) <= MCI_GPM_WLAN_CAL_DONE)
329
330#define MCI_NUM_BT_CHANNELS 79
331
332#define MCI_GPM_SET_CHANNEL_BIT(_p_gpm, _bt_chan) \
333 { \
334 if (_bt_chan < MCI_NUM_BT_CHANNELS) { \
335 *(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_CHANNEL_MAP + \
336 (_bt_chan / 8)) |= 1 << (_bt_chan & 7); \
337 } \
338 }
339
340#define MCI_GPM_CLR_CHANNEL_BIT(_p_gpm, _bt_chan) \
341 { \
342 if (_bt_chan < MCI_NUM_BT_CHANNELS) { \
343 *(((u_int8_t *)(_p_gpm)) + MCI_GPM_COEX_B_CHANNEL_MAP + \
344 (_bt_chan / 8)) &= ~(1 << (_bt_chan & 7)); \
345 } \
346 }
347
348#define HAL_MCI_INTERRUPT_SW_MSG_DONE 0x00000001
349#define HAL_MCI_INTERRUPT_CPU_INT_MSG 0x00000002
350#define HAL_MCI_INTERRUPT_RX_CHKSUM_FAIL 0x00000004
351#define HAL_MCI_INTERRUPT_RX_INVALID_HDR 0x00000008
352#define HAL_MCI_INTERRUPT_RX_HW_MSG_FAIL 0x00000010
353#define HAL_MCI_INTERRUPT_RX_SW_MSG_FAIL 0x00000020
354#define HAL_MCI_INTERRUPT_TX_HW_MSG_FAIL 0x00000080
355#define HAL_MCI_INTERRUPT_TX_SW_MSG_FAIL 0x00000100
356#define HAL_MCI_INTERRUPT_RX_MSG 0x00000200
357#define HAL_MCI_INTERRUPT_REMOTE_SLEEP_UPDATE 0x00000400
358#define HAL_MCI_INTERRUPT_CONT_INFO_TIMEOUT 0x80000000
359#define HAL_MCI_INTERRUPT_MSG_FAIL_MASK ( HAL_MCI_INTERRUPT_RX_HW_MSG_FAIL | \
360 HAL_MCI_INTERRUPT_RX_SW_MSG_FAIL | \
361 HAL_MCI_INTERRUPT_TX_HW_MSG_FAIL | \
362 HAL_MCI_INTERRUPT_TX_SW_MSG_FAIL )
363
364#define HAL_MCI_INTERRUPT_RX_MSG_REMOTE_RESET 0x00000001
365#define HAL_MCI_INTERRUPT_RX_MSG_LNA_CONTROL 0x00000002
366#define HAL_MCI_INTERRUPT_RX_MSG_CONT_NACK 0x00000004
367#define HAL_MCI_INTERRUPT_RX_MSG_CONT_INFO 0x00000008
368#define HAL_MCI_INTERRUPT_RX_MSG_CONT_RST 0x00000010
369#define HAL_MCI_INTERRUPT_RX_MSG_SCHD_INFO 0x00000020
370#define HAL_MCI_INTERRUPT_RX_MSG_CPU_INT 0x00000040
371#define HAL_MCI_INTERRUPT_RX_MSG_GPM 0x00000100
372#define HAL_MCI_INTERRUPT_RX_MSG_LNA_INFO 0x00000200
373#define HAL_MCI_INTERRUPT_RX_MSG_SYS_SLEEPING 0x00000400
374#define HAL_MCI_INTERRUPT_RX_MSG_SYS_WAKING 0x00000800
375#define HAL_MCI_INTERRUPT_RX_MSG_REQ_WAKE 0x00001000
376#define HAL_MCI_INTERRUPT_RX_MSG_MONITOR (HAL_MCI_INTERRUPT_RX_MSG_LNA_CONTROL | \
377 HAL_MCI_INTERRUPT_RX_MSG_LNA_INFO | \
378 HAL_MCI_INTERRUPT_RX_MSG_CONT_NACK | \
379 HAL_MCI_INTERRUPT_RX_MSG_CONT_INFO | \
380 HAL_MCI_INTERRUPT_RX_MSG_CONT_RST)
381
382typedef enum mci_bt_state {
388
389/* Type of state query */
390typedef enum mci_state_type {
420
421#define HAL_MCI_STATE_DEBUG_REQ_BT_DEBUG 1
422
423#define HAL_MCI_BT_MCI_FLAGS_UPDATE_CORR 0x00000002
424#define HAL_MCI_BT_MCI_FLAGS_UPDATE_HDR 0x00000004
425#define HAL_MCI_BT_MCI_FLAGS_UPDATE_PLD 0x00000008
426#define HAL_MCI_BT_MCI_FLAGS_LNA_CTRL 0x00000010
427#define HAL_MCI_BT_MCI_FLAGS_DEBUG 0x00000020
428#define HAL_MCI_BT_MCI_FLAGS_SCHED_MSG 0x00000040
429#define HAL_MCI_BT_MCI_FLAGS_CONT_MSG 0x00000080
430#define HAL_MCI_BT_MCI_FLAGS_COEX_GPM 0x00000100
431#define HAL_MCI_BT_MCI_FLAGS_CPU_INT_MSG 0x00000200
432#define HAL_MCI_BT_MCI_FLAGS_MCI_MODE 0x00000400
433#define HAL_MCI_BT_MCI_FLAGS_EGRET_MODE 0x00000800
434#define HAL_MCI_BT_MCI_FLAGS_JUPITER_MODE 0x00001000
435#define HAL_MCI_BT_MCI_FLAGS_OTHER 0x00010000
436
437#define HAL_MCI_DEFAULT_BT_MCI_FLAGS 0x00011dde
438/*
439 HAL_MCI_BT_MCI_FLAGS_UPDATE_CORR = 1
440 HAL_MCI_BT_MCI_FLAGS_UPDATE_HDR = 1
441 HAL_MCI_BT_MCI_FLAGS_UPDATE_PLD = 1
442 HAL_MCI_BT_MCI_FLAGS_LNA_CTRL = 1
443 HAL_MCI_BT_MCI_FLAGS_DEBUG = 0
444 HAL_MCI_BT_MCI_FLAGS_SCHED_MSG = 1
445 HAL_MCI_BT_MCI_FLAGS_CONT_MSG = 1
446 HAL_MCI_BT_MCI_FLAGS_COEX_GPM = 1
447 HAL_MCI_BT_MCI_FLAGS_CPU_INT_MSG = 0
448 HAL_MCI_BT_MCI_FLAGS_MCI_MODE = 1
449 HAL_MCI_BT_MCI_FLAGS_EGRET_MODE = 1
450 HAL_MCI_BT_MCI_FLAGS_JUPITER_MODE = 1
451 HAL_MCI_BT_MCI_FLAGS_OTHER = 1
452*/
453
454#define HAL_MCI_TOGGLE_BT_MCI_FLAGS \
455 ( HAL_MCI_BT_MCI_FLAGS_UPDATE_CORR | \
456 HAL_MCI_BT_MCI_FLAGS_UPDATE_HDR | \
457 HAL_MCI_BT_MCI_FLAGS_UPDATE_PLD | \
458 HAL_MCI_BT_MCI_FLAGS_MCI_MODE )
459
460#define HAL_MCI_2G_FLAGS_CLEAR_MASK 0x00000000
461#define HAL_MCI_2G_FLAGS_SET_MASK HAL_MCI_TOGGLE_BT_MCI_FLAGS
462#define HAL_MCI_2G_FLAGS HAL_MCI_DEFAULT_BT_MCI_FLAGS
463
464#define HAL_MCI_5G_FLAGS_CLEAR_MASK HAL_MCI_TOGGLE_BT_MCI_FLAGS
465#define HAL_MCI_5G_FLAGS_SET_MASK 0x00000000
466#define HAL_MCI_5G_FLAGS (HAL_MCI_DEFAULT_BT_MCI_FLAGS & \
467 ~HAL_MCI_TOGGLE_BT_MCI_FLAGS)
468
469#define HAL_MCI_GPM_NOMORE 0
470#define HAL_MCI_GPM_MORE 1
471#define HAL_MCI_GPM_INVALID 0xffffffff
472
473#define ATH_AIC_MAX_BT_CHANNEL 79
474
475/*
476 * Default value for Jupiter is 0x00002201
477 * Default value for Aphrodite is 0x00002282
478 */
479#define ATH_MCI_CONFIG_CONCUR_TX 0x00000003
480#define ATH_MCI_CONFIG_MCI_OBS_MCI 0x00000004
481#define ATH_MCI_CONFIG_MCI_OBS_TXRX 0x00000008
482#define ATH_MCI_CONFIG_MCI_OBS_BT 0x00000010
483#define ATH_MCI_CONFIG_DISABLE_MCI_CAL 0x00000020
484#define ATH_MCI_CONFIG_DISABLE_OSLA 0x00000040
485#define ATH_MCI_CONFIG_DISABLE_FTP_STOMP 0x00000080
486#define ATH_MCI_CONFIG_AGGR_THRESH 0x00000700
487#define ATH_MCI_CONFIG_AGGR_THRESH_S 8
488#define ATH_MCI_CONFIG_DISABLE_AGGR_THRESH 0x00000800
489#define ATH_MCI_CONFIG_CLK_DIV 0x00003000
490#define ATH_MCI_CONFIG_CLK_DIV_S 12
491#define ATH_MCI_CONFIG_DISABLE_TUNING 0x00004000
492#define ATH_MCI_CONFIG_DISABLE_AIC 0x00008000
493#define ATH_MCI_CONFIG_AIC_CAL_NUM_CHAN 0x007f0000
494#define ATH_MCI_CONFIG_AIC_CAL_NUM_CHAN_S 16
495#define ATH_MCI_CONFIG_NO_QUIET_ACK 0x00800000
496#define ATH_MCI_CONFIG_NO_QUIET_ACK_S 23
497#define ATH_MCI_CONFIG_ANT_ARCH 0x07000000
498#define ATH_MCI_CONFIG_ANT_ARCH_S 24
499#define ATH_MCI_CONFIG_FORCE_QUIET_ACK 0x08000000
500#define ATH_MCI_CONFIG_FORCE_QUIET_ACK_S 27
501#define ATH_MCI_CONFIG_FORCE_2CHAIN_ACK 0x10000000
502#define ATH_MCI_CONFIG_MCI_STAT_DBG 0x20000000
503#define ATH_MCI_CONFIG_MCI_WEIGHT_DBG 0x40000000
504#define ATH_MCI_CONFIG_DISABLE_MCI 0x80000000
505
506#define ATH_MCI_CONFIG_MCI_OBS_MASK ( ATH_MCI_CONFIG_MCI_OBS_MCI | \
507 ATH_MCI_CONFIG_MCI_OBS_TXRX | \
508 ATH_MCI_CONFIG_MCI_OBS_BT )
509#define ATH_MCI_CONFIG_MCI_OBS_GPIO 0x0000002F
510
511#define ATH_MCI_ANT_ARCH_1_ANT_PA_LNA_NON_SHARED 0x00
512#define ATH_MCI_ANT_ARCH_1_ANT_PA_LNA_SHARED 0x01
513#define ATH_MCI_ANT_ARCH_2_ANT_PA_LNA_NON_SHARED 0x02
514#define ATH_MCI_ANT_ARCH_2_ANT_PA_LNA_SHARED 0x03
515#define ATH_MCI_ANT_ARCH_3_ANT 0x04
516
517#define MCI_ANT_ARCH_PA_LNA_SHARED(c) \
518 ((MS(c, ATH_MCI_CONFIG_ANT_ARCH) == ATH_MCI_ANT_ARCH_1_ANT_PA_LNA_SHARED) || \
519 (MS(c, ATH_MCI_CONFIG_ANT_ARCH) == ATH_MCI_ANT_ARCH_2_ANT_PA_LNA_SHARED))
520
521#define ATH_MCI_CONCUR_TX_SHARED_CHN 0x01
522#define ATH_MCI_CONCUR_TX_UNSHARED_CHN 0x02
523#define ATH_MCI_CONCUR_TX_DEBUG 0x03
524
525#endif
HAL_BOOL
Definition: ah.h:93
enum mci_gpm_coex_bt_status_type MCI_GPM_COEX_BT_STATUS_TYPE_T
enum mci_gpm_coex_query_type MCI_GPM_COEX_QUERY_TYPE_T
enum mci_bt_state MCI_BT_STATE_T
HAL_BT_COEX_CFG
Definition: ah_btcoex.h:52
@ HAL_BT_COEX_CFG_2WIRE_CH1
Definition: ah_btcoex.h:55
@ HAL_BT_COEX_CFG_MCI
Definition: ah_btcoex.h:58
@ HAL_BT_COEX_CFG_3WIRE
Definition: ah_btcoex.h:57
@ HAL_BT_COEX_CFG_NONE
Definition: ah_btcoex.h:53
@ HAL_BT_COEX_CFG_2WIRE_2CH
Definition: ah_btcoex.h:54
@ HAL_BT_COEX_CFG_2WIRE_CH0
Definition: ah_btcoex.h:56
mci_gpm_coex_profile_role
Definition: ah_btcoex.h:250
@ MCI_GPM_COEX_PROFILE_SLAVE
Definition: ah_btcoex.h:251
@ MCI_GPM_COEX_PROFILE_MASTER
Definition: ah_btcoex.h:252
mci_gpm_coex_query_type
Definition: ah_btcoex.h:221
@ MCI_GPM_COEX_QUERY_BT_DEBUG
Definition: ah_btcoex.h:227
@ MCI_GPM_COEX_QUERY_BT_ALL_INFO
Definition: ah_btcoex.h:225
@ MCI_GPM_COEX_QUERY_WLAN_ALL_INFO
Definition: ah_btcoex.h:223
@ MCI_GPM_COEX_QUERY_BT_TOPOLOGY
Definition: ah_btcoex.h:226
mci_gpm_coex_opcode
Definition: ah_btcoex.h:210
@ MCI_GPM_COEX_HALT_BT_GPM
Definition: ah_btcoex.h:214
@ MCI_GPM_COEX_BT_UPDATE_FLAGS
Definition: ah_btcoex.h:218
@ MCI_GPM_COEX_BT_PROFILE_INFO
Definition: ah_btcoex.h:216
@ MCI_GPM_COEX_VERSION_QUERY
Definition: ah_btcoex.h:211
@ MCI_GPM_COEX_VERSION_RESPONSE
Definition: ah_btcoex.h:212
@ MCI_GPM_COEX_WLAN_CHANNELS
Definition: ah_btcoex.h:215
@ MCI_GPM_COEX_STATUS_QUERY
Definition: ah_btcoex.h:213
@ MCI_GPM_COEX_BT_STATUS_UPDATE
Definition: ah_btcoex.h:217
enum mci_gpm_coex_opcode MCI_GPM_COEX_OPCODE_T
mci_gpm_coex_bt_status_state
Definition: ah_btcoex.h:260
@ MCI_GPM_COEX_BT_CRITICAL_STATUS
Definition: ah_btcoex.h:262
@ MCI_GPM_COEX_BT_NORMAL_STATUS
Definition: ah_btcoex.h:261
mci_gpm_coex_bt_status_type
Definition: ah_btcoex.h:255
@ MCI_GPM_COEX_BT_LINK_STATUS
Definition: ah_btcoex.h:257
@ MCI_GPM_COEX_BT_NONLINK_STATUS
Definition: ah_btcoex.h:256
mci_gpm_coex_profile_type
Definition: ah_btcoex.h:235
@ MCI_GPM_COEX_PROFILE_HID
Definition: ah_btcoex.h:239
@ MCI_GPM_COEX_PROFILE_UNKNOWN
Definition: ah_btcoex.h:236
@ MCI_GPM_COEX_PROFILE_BNEP
Definition: ah_btcoex.h:240
@ MCI_GPM_COEX_PROFILE_VOICE
Definition: ah_btcoex.h:241
@ MCI_GPM_COEX_PROFILE_MAX
Definition: ah_btcoex.h:242
@ MCI_GPM_COEX_PROFILE_RFCOMM
Definition: ah_btcoex.h:237
@ MCI_GPM_COEX_PROFILE_A2DP
Definition: ah_btcoex.h:238
mci_bt_state
Definition: ah_btcoex.h:382
@ MCI_BT_CAL
Definition: ah_btcoex.h:386
@ MCI_BT_CAL_START
Definition: ah_btcoex.h:385
@ MCI_BT_AWAKE
Definition: ah_btcoex.h:384
@ MCI_BT_SLEEP
Definition: ah_btcoex.h:383
enum mci_gpm_subtype MCI_GPM_SUBTYPE_T
enum mci_gpm_coex_profile_role MCI_GPM_COEX_PROFILE_ROLE_T
enum mci_gpm_coex_bt_status_state MCI_GPM_COEX_BT_STATUS_STATE_T
enum mci_gpm_coex_bt_updata_flags_op MCI_GPM_COEX_BT_FLAGS_OP_T
enum mci_message_header MCI_MESSAGE_HEADER
mci_gpm_coex_halt_bt_gpm
Definition: ah_btcoex.h:230
@ MCI_GPM_COEX_BT_GPM_UNHALT
Definition: ah_btcoex.h:231
@ MCI_GPM_COEX_BT_GPM_HALT
Definition: ah_btcoex.h:232
mci_gpm_coex_bt_updata_flags_op
Definition: ah_btcoex.h:267
@ MCI_GPM_COEX_BT_FLAGS_SET
Definition: ah_btcoex.h:269
@ MCI_GPM_COEX_BT_FLAGS_READ
Definition: ah_btcoex.h:268
@ MCI_GPM_COEX_BT_FLAGS_CLEAR
Definition: ah_btcoex.h:270
HAL_BT_COEX_MODE
Definition: ah_btcoex.h:45
@ HAL_BT_COEX_MODE_UNSLOTTED
Definition: ah_btcoex.h:47
@ HAL_BT_COEX_MODE_SLOTTED
Definition: ah_btcoex.h:48
@ HAL_BT_COEX_MODE_LEGACY
Definition: ah_btcoex.h:46
@ HAL_BT_COEX_MODE_DISALBED
Definition: ah_btcoex.h:49
enum mci_gpm_coex_profile_type MCI_GPM_COEX_PROFILE_TYPE_T
enum mci_gpm_coex_profile_state MCI_GPM_COEX_PROFILE_STATE_T
HAL_BT_COEX_SET_PARAMETER
Definition: ah_btcoex.h:61
@ HAL_BT_COEX_MCI_MAX_TX_PWR
Definition: ah_btcoex.h:65
@ HAL_BT_COEX_ANTENNA_DIVERSITY
Definition: ah_btcoex.h:64
@ HAL_BT_COEX_MCI_FTP_STOMP_RX
Definition: ah_btcoex.h:66
@ HAL_BT_COEX_LOWER_TX_PWR
Definition: ah_btcoex.h:63
@ HAL_BT_COEX_SET_ACK_PWR
Definition: ah_btcoex.h:62
mci_gpm_coex_profile_state
Definition: ah_btcoex.h:245
@ MCI_GPM_COEX_PROFILE_STATE_END
Definition: ah_btcoex.h:246
@ MCI_GPM_COEX_PROFILE_STATE_START
Definition: ah_btcoex.h:247
enum mci_state_type HAL_MCI_STATE_TYPE
HAL_BT_MODULE
Definition: ah_btcoex.h:27
@ HAL_MAX_BT_MODULES
Definition: ah_btcoex.h:31
@ HAL_BT_MODULE_JANUS
Definition: ah_btcoex.h:29
@ HAL_BT_MODULE_CSR_BC4
Definition: ah_btcoex.h:28
@ HAL_BT_MODULE_HELIUS
Definition: ah_btcoex.h:30
mci_gpm_subtype
Definition: ah_btcoex.h:197
@ MCI_GPM_WLAN_CAL_DONE
Definition: ah_btcoex.h:203
@ MCI_GPM_BT_CAL_REQ
Definition: ah_btcoex.h:198
@ MCI_GPM_RSVD_PATTERN
Definition: ah_btcoex.h:205
@ MCI_GPM_WLAN_CAL_GRANT
Definition: ah_btcoex.h:202
@ MCI_GPM_BT_CAL_GRANT
Definition: ah_btcoex.h:199
@ MCI_GPM_COEX_AGENT
Definition: ah_btcoex.h:204
@ MCI_GPM_RSVD_PATTERN32
Definition: ah_btcoex.h:206
@ MCI_GPM_BT_CAL_DONE
Definition: ah_btcoex.h:200
@ MCI_GPM_BT_DEBUG
Definition: ah_btcoex.h:207
@ MCI_GPM_WLAN_CAL_REQ
Definition: ah_btcoex.h:201
@ MCI_GPM_WLAN_CAL_W_SEQUENCE
Definition: ah_btcoex.h:279
@ MCI_GPM_COEX_W_GPM_PAYLOAD
Definition: ah_btcoex.h:275
@ MCI_GPM_COEX_B_BT_FLAGS_OP
Definition: ah_btcoex.h:306
@ MCI_GPM_COEX_B_PROFILE_RATE
Definition: ah_btcoex.h:296
@ MCI_GPM_COEX_B_PROFILE_VOTYPE
Definition: ah_btcoex.h:297
@ MCI_GPM_COEX_B_GPM_TYPE
Definition: ah_btcoex.h:276
@ MCI_GPM_COEX_B_PROFILE_STATE
Definition: ah_btcoex.h:294
@ MCI_GPM_COEX_B_CHANNEL_MAP
Definition: ah_btcoex.h:290
@ MCI_GPM_COEX_B_PROFILE_LINKID
Definition: ah_btcoex.h:293
@ MCI_GPM_COEX_B_PROFILE_TYPE
Definition: ah_btcoex.h:292
@ MCI_GPM_COEX_H_PROFILE_T
Definition: ah_btcoex.h:298
@ MCI_GPM_COEX_B_MAJOR_VERSION
Definition: ah_btcoex.h:282
@ MCI_GPM_COEX_B_GPM_OPCODE
Definition: ah_btcoex.h:277
@ MCI_GPM_COEX_B_STATUS_STATE
Definition: ah_btcoex.h:304
@ MCI_GPM_COEX_B_PROFILE_W
Definition: ah_btcoex.h:299
@ MCI_GPM_COEX_B_BT_BITMAP
Definition: ah_btcoex.h:285
@ MCI_GPM_COEX_B_STATUS_LINKID
Definition: ah_btcoex.h:303
@ MCI_GPM_COEX_B_STATUS_TYPE
Definition: ah_btcoex.h:302
@ MCI_GPM_COEX_B_WLAN_BITMAP
Definition: ah_btcoex.h:286
@ MCI_GPM_COEX_W_BT_FLAGS
Definition: ah_btcoex.h:307
@ MCI_GPM_COEX_B_PROFILE_ROLE
Definition: ah_btcoex.h:295
@ MCI_GPM_COEX_B_HALT_STATE
Definition: ah_btcoex.h:288
@ MCI_GPM_COEX_B_PROFILE_A
Definition: ah_btcoex.h:300
@ MCI_GPM_COEX_B_MINOR_VERSION
Definition: ah_btcoex.h:283
HAL_BT_COEX_STOMP_TYPE
Definition: ah_btcoex.h:97
@ HAL_BT_COEX_STOMP_ALL_FORCE
Definition: ah_btcoex.h:102
@ HAL_BT_COEX_STOMP_LOW
Definition: ah_btcoex.h:100
@ HAL_BT_COEX_STOMP_AUDIO
Definition: ah_btcoex.h:104
@ HAL_BT_COEX_STOMP_LOW_FORCE
Definition: ah_btcoex.h:103
@ HAL_BT_COEX_NO_STOMP
Definition: ah_btcoex.h:98
@ HAL_BT_COEX_STOMP_NONE
Definition: ah_btcoex.h:101
@ HAL_BT_COEX_STOMP_ALL
Definition: ah_btcoex.h:99
mci_state_type
Definition: ah_btcoex.h:390
@ HAL_MCI_STATE_CONT_PRIORITY
Definition: ah_btcoex.h:403
@ HAL_MCI_STATE_INIT_GPM_OFFSET
Definition: ah_btcoex.h:392
@ HAL_MCI_STATE_RECOVER_RX
Definition: ah_btcoex.h:413
@ HAL_MCI_STATE_RESET_REQ_WAKE
Definition: ah_btcoex.h:405
@ HAL_MCI_STATE_BT
Definition: ah_btcoex.h:395
@ HAL_MCI_STATE_LAST_SCHD_MSG_OFFSET
Definition: ah_btcoex.h:400
@ HAL_MCI_STATE_LAST_GPM_OFFSET
Definition: ah_btcoex.h:394
@ HAL_MCI_STATE_NEXT_GPM_OFFSET
Definition: ah_btcoex.h:393
@ HAL_MCI_STATE_SEND_WLAN_CHANNELS
Definition: ah_btcoex.h:408
@ HAL_MCI_STATE_SET_BT_SLEEP
Definition: ah_btcoex.h:396
@ HAL_MCI_STATE_NEED_FTP_STOMP
Definition: ah_btcoex.h:414
@ HAL_MCI_STATE_SET_CONCUR_TX_PRI
Definition: ah_btcoex.h:412
@ HAL_MCI_STATE_DEBUG
Definition: ah_btcoex.h:417
@ HAL_MCI_STATE_SEND_VERSION_QUERY
Definition: ah_btcoex.h:409
@ HAL_MCI_STATE_CONT_TXRX
Definition: ah_btcoex.h:404
@ HAL_MCI_STATE_SEND_STATUS_QUERY
Definition: ah_btcoex.h:410
@ HAL_MCI_STATE_SEND_WLAN_COEX_VERSION
Definition: ah_btcoex.h:406
@ HAL_MCI_STATE_NEED_FLUSH_BT_INFO
Definition: ah_btcoex.h:411
@ HAL_MCI_STATE_SHARED_CHAIN_CONCUR_TX
Definition: ah_btcoex.h:416
@ HAL_MCI_STATE_ENABLE
Definition: ah_btcoex.h:391
@ HAL_MCI_STATE_SET_BT_COEX_VERSION
Definition: ah_btcoex.h:407
@ HAL_MCI_STATE_NEED_TUNING
Definition: ah_btcoex.h:415
@ HAL_MCI_STATE_CONT_RSSI_POWER
Definition: ah_btcoex.h:402
@ HAL_MCI_STATE_SET_BT_CAL_START
Definition: ah_btcoex.h:398
@ HAL_MCI_STATE_MAX
Definition: ah_btcoex.h:418
@ HAL_MCI_STATE_SET_BT_CAL
Definition: ah_btcoex.h:399
@ HAL_MCI_STATE_REMOTE_SLEEP
Definition: ah_btcoex.h:401
@ HAL_MCI_STATE_SET_BT_AWAKE
Definition: ah_btcoex.h:397
mci_message_header
Definition: ah_btcoex.h:171
@ MCI_GPM
Definition: ah_btcoex.h:179
@ MCI_SYS_SLEEPING
Definition: ah_btcoex.h:184
@ MCI_REMOTE_RESET
Definition: ah_btcoex.h:187
@ MCI_LNA_STATE
Definition: ah_btcoex.h:181
@ MCI_SCHD_INFO
Definition: ah_btcoex.h:176
@ MCI_DEBUG_16
Definition: ah_btcoex.h:186
@ MCI_REQ_WAKE
Definition: ah_btcoex.h:185
@ MCI_CONT_INFO
Definition: ah_btcoex.h:174
@ MCI_SYS_WAKING
Definition: ah_btcoex.h:178
@ MCI_CONT_NACK
Definition: ah_btcoex.h:173
@ MCI_LNA_TAKE
Definition: ah_btcoex.h:182
@ MCI_CONT_RST
Definition: ah_btcoex.h:175
@ MCI_LNA_TRANS
Definition: ah_btcoex.h:183
@ MCI_LNA_CTRL
Definition: ah_btcoex.h:172
@ MCI_CPU_INT
Definition: ah_btcoex.h:177
@ MCI_LNA_INFO
Definition: ah_btcoex.h:180
enum mci_gpm_coex_halt_bt_gpm MCI_GPM_COEX_HALT_BT_GPM_T
HAL_BOOL bt_rxclear_polarity
Definition: ah_btcoex.h:137
u_int8_t bt_priority_time
Definition: ah_btcoex.h:144
u_int8_t bt_time_extend
Definition: ah_btcoex.h:109
HAL_BOOL bt_quiet_collision
Definition: ah_btcoex.h:132
u_int8_t bt_first_slot_time
Definition: ah_btcoex.h:152
HAL_BT_COEX_MODE bt_mode
Definition: ah_btcoex.h:126
HAL_BOOL bt_hold_rxclear
Definition: ah_btcoex.h:159
HAL_BOOL bt_txframe_extend
Definition: ah_btcoex.h:121
HAL_BOOL bt_txstate_extend
Definition: ah_btcoex.h:115
u_int8_t bt_coex_config
Definition: ah_btcoex.h:36
u_int8_t bt_gpio_bt_priority
Definition: ah_btcoex.h:38
HAL_BT_MODULE bt_module
Definition: ah_btcoex.h:35
u_int8_t bt_active_polarity
Definition: ah_btcoex.h:40
HAL_BOOL bt_single_ant
Definition: ah_btcoex.h:41
u_int8_t bt_gpio_bt_active
Definition: ah_btcoex.h:37
u_int8_t bt_gpio_wlan_active
Definition: ah_btcoex.h:39
u_int8_t bt_isolation
Definition: ah_btcoex.h:42