Go to the documentation of this file.
20 #define MCI_FLAG_DISABLE_TIMESTAMP 0x00000001
23 #define MCI_GPM_COEX_MAJOR_VERSION_DEFAULT 3
24 #define MCI_GPM_COEX_MINOR_VERSION_DEFAULT 0
27 #define MCI_GPM_COEX_MAJOR_VERSION_WLAN 3
28 #define MCI_GPM_COEX_MINOR_VERSION_WLAN 0
47 #define MCI_NUM_BT_CHANNELS 79
49 #define MCI_BT_MCI_FLAGS_UPDATE_CORR 0x00000002
50 #define MCI_BT_MCI_FLAGS_UPDATE_HDR 0x00000004
51 #define MCI_BT_MCI_FLAGS_UPDATE_PLD 0x00000008
52 #define MCI_BT_MCI_FLAGS_LNA_CTRL 0x00000010
53 #define MCI_BT_MCI_FLAGS_DEBUG 0x00000020
54 #define MCI_BT_MCI_FLAGS_SCHED_MSG 0x00000040
55 #define MCI_BT_MCI_FLAGS_CONT_MSG 0x00000080
56 #define MCI_BT_MCI_FLAGS_COEX_GPM 0x00000100
57 #define MCI_BT_MCI_FLAGS_CPU_INT_MSG 0x00000200
58 #define MCI_BT_MCI_FLAGS_MCI_MODE 0x00000400
59 #define MCI_BT_MCI_FLAGS_AR9462_MODE 0x00001000
60 #define MCI_BT_MCI_FLAGS_OTHER 0x00010000
62 #define MCI_DEFAULT_BT_MCI_FLAGS 0x00011dde
64 #define MCI_TOGGLE_BT_MCI_FLAGS (MCI_BT_MCI_FLAGS_UPDATE_CORR | \
65 MCI_BT_MCI_FLAGS_UPDATE_HDR | \
66 MCI_BT_MCI_FLAGS_UPDATE_PLD | \
67 MCI_BT_MCI_FLAGS_MCI_MODE)
69 #define MCI_2G_FLAGS_CLEAR_MASK 0x00000000
70 #define MCI_2G_FLAGS_SET_MASK MCI_TOGGLE_BT_MCI_FLAGS
71 #define MCI_2G_FLAGS MCI_DEFAULT_BT_MCI_FLAGS
73 #define MCI_5G_FLAGS_CLEAR_MASK MCI_TOGGLE_BT_MCI_FLAGS
74 #define MCI_5G_FLAGS_SET_MASK 0x00000000
75 #define MCI_5G_FLAGS (MCI_DEFAULT_BT_MCI_FLAGS & \
76 ~MCI_TOGGLE_BT_MCI_FLAGS)
81 #define ATH_MCI_CONFIG_CONCUR_TX 0x00000003
82 #define ATH_MCI_CONFIG_MCI_OBS_MCI 0x00000004
83 #define ATH_MCI_CONFIG_MCI_OBS_TXRX 0x00000008
84 #define ATH_MCI_CONFIG_MCI_OBS_BT 0x00000010
85 #define ATH_MCI_CONFIG_DISABLE_MCI_CAL 0x00000020
86 #define ATH_MCI_CONFIG_DISABLE_OSLA 0x00000040
87 #define ATH_MCI_CONFIG_DISABLE_FTP_STOMP 0x00000080
88 #define ATH_MCI_CONFIG_AGGR_THRESH 0x00000700
89 #define ATH_MCI_CONFIG_AGGR_THRESH_S 8
90 #define ATH_MCI_CONFIG_DISABLE_AGGR_THRESH 0x00000800
91 #define ATH_MCI_CONFIG_CLK_DIV 0x00003000
92 #define ATH_MCI_CONFIG_CLK_DIV_S 12
93 #define ATH_MCI_CONFIG_DISABLE_TUNING 0x00004000
94 #define ATH_MCI_CONFIG_MCI_WEIGHT_DBG 0x40000000
95 #define ATH_MCI_CONFIG_DISABLE_MCI 0x80000000
97 #define ATH_MCI_CONFIG_MCI_OBS_MASK (ATH_MCI_CONFIG_MCI_OBS_MCI | \
98 ATH_MCI_CONFIG_MCI_OBS_TXRX | \
99 ATH_MCI_CONFIG_MCI_OBS_BT)
100 #define ATH_MCI_CONFIG_MCI_OBS_GPIO 0x0000002F
219 #define MCI_GPM_NOMORE 0
220 #define MCI_GPM_MORE 1
221 #define MCI_GPM_INVALID 0xffffffff
223 #define MCI_GPM_RECYCLE(_p_gpm) do { \
224 *(((u32 *)_p_gpm) + MCI_GPM_COEX_W_GPM_PAYLOAD) = \
225 MCI_GPM_RSVD_PATTERN32; \
228 #define MCI_GPM_TYPE(_p_gpm) \
229 (*(((u8 *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_TYPE) & 0xff)
231 #define MCI_GPM_OPCODE(_p_gpm) \
232 (*(((u8 *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_OPCODE) & 0xff)
234 #define MCI_GPM_SET_CAL_TYPE(_p_gpm, _cal_type) do { \
235 *(((u8 *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_TYPE) = (_cal_type) & 0xff;\
238 #define MCI_GPM_SET_TYPE_OPCODE(_p_gpm, _type, _opcode) do { \
239 *(((u8 *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_TYPE) = (_type) & 0xff; \
240 *(((u8 *)(_p_gpm)) + MCI_GPM_COEX_B_GPM_OPCODE) = (_opcode) & 0xff;\
243 #define MCI_GPM_IS_CAL_TYPE(_type) ((_type) <= MCI_GPM_WLAN_CAL_DONE)
264 #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT