halbtcoutsrc.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009-2012 Realtek Corporation.
  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. * The full GNU General Public License is included in this distribution in the
  15. * file called LICENSE.
  16. *
  17. * Contact Information:
  18. * wlanfae <wlanfae@realtek.com>
  19. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  20. * Hsinchu 300, Taiwan.
  21. *
  22. * Larry Finger <Larry.Finger@lwfinger.net>
  23. *
  24. *****************************************************************************/
  25. #ifndef __HALBTC_OUT_SRC_H__
  26. #define __HALBTC_OUT_SRC_H__
  27. #include "../wifi.h"
  28. #define NORMAL_EXEC false
  29. #define FORCE_EXEC true
  30. #define BTC_RF_A RF90_PATH_A
  31. #define BTC_RF_B RF90_PATH_B
  32. #define BTC_RF_C RF90_PATH_C
  33. #define BTC_RF_D RF90_PATH_D
  34. #define BTC_SMSP SINGLEMAC_SINGLEPHY
  35. #define BTC_DMDP DUALMAC_DUALPHY
  36. #define BTC_DMSP DUALMAC_SINGLEPHY
  37. #define BTC_MP_UNKNOWN 0xff
  38. #define IN
  39. #define OUT
  40. #define BT_TMP_BUF_SIZE 100
  41. #define BT_COEX_ANT_TYPE_PG 0
  42. #define BT_COEX_ANT_TYPE_ANTDIV 1
  43. #define BT_COEX_ANT_TYPE_DETECTED 2
  44. #define BTC_MIMO_PS_STATIC 0
  45. #define BTC_MIMO_PS_DYNAMIC 1
  46. #define BTC_RATE_DISABLE 0
  47. #define BTC_RATE_ENABLE 1
  48. #define BTC_ANT_PATH_WIFI 0
  49. #define BTC_ANT_PATH_BT 1
  50. #define BTC_ANT_PATH_PTA 2
  51. enum btc_chip_interface {
  52. BTC_INTF_UNKNOWN = 0,
  53. BTC_INTF_PCI = 1,
  54. BTC_INTF_USB = 2,
  55. BTC_INTF_SDIO = 3,
  56. BTC_INTF_GSPI = 4,
  57. BTC_INTF_MAX
  58. };
  59. enum BTC_CHIP_TYPE {
  60. BTC_CHIP_UNDEF = 0,
  61. BTC_CHIP_CSR_BC4 = 1,
  62. BTC_CHIP_CSR_BC8 = 2,
  63. BTC_CHIP_RTL8723A = 3,
  64. BTC_CHIP_RTL8821 = 4,
  65. BTC_CHIP_RTL8723B = 5,
  66. BTC_CHIP_MAX
  67. };
  68. enum BTC_MSG_TYPE {
  69. BTC_MSG_INTERFACE = 0x0,
  70. BTC_MSG_ALGORITHM = 0x1,
  71. BTC_MSG_MAX
  72. };
  73. extern u32 btc_dbg_type[];
  74. /* following is for BTC_MSG_INTERFACE */
  75. #define INTF_INIT BIT0
  76. #define INTF_NOTIFY BIT2
  77. /* following is for BTC_ALGORITHM */
  78. #define ALGO_BT_RSSI_STATE BIT0
  79. #define ALGO_WIFI_RSSI_STATE BIT1
  80. #define ALGO_BT_MONITOR BIT2
  81. #define ALGO_TRACE BIT3
  82. #define ALGO_TRACE_FW BIT4
  83. #define ALGO_TRACE_FW_DETAIL BIT5
  84. #define ALGO_TRACE_FW_EXEC BIT6
  85. #define ALGO_TRACE_SW BIT7
  86. #define ALGO_TRACE_SW_DETAIL BIT8
  87. #define ALGO_TRACE_SW_EXEC BIT9
  88. #define BT_COEX_ANT_TYPE_PG 0
  89. #define BT_COEX_ANT_TYPE_ANTDIV 1
  90. #define BT_COEX_ANT_TYPE_DETECTED 2
  91. #define BTC_MIMO_PS_STATIC 0
  92. #define BTC_MIMO_PS_DYNAMIC 1
  93. #define BTC_RATE_DISABLE 0
  94. #define BTC_RATE_ENABLE 1
  95. #define BTC_ANT_PATH_WIFI 0
  96. #define BTC_ANT_PATH_BT 1
  97. #define BTC_ANT_PATH_PTA 2
  98. #define CL_SPRINTF snprintf
  99. #define CL_PRINTF printk
  100. #define BTC_PRINT(dbgtype, dbgflag, printstr, ...) \
  101. do { \
  102. if (unlikely(btc_dbg_type[dbgtype] & dbgflag)) {\
  103. printk(printstr, ##__VA_ARGS__); \
  104. } \
  105. } while (0)
  106. #define BTC_PRINT_F(dbgtype, dbgflag, printstr, ...) \
  107. do { \
  108. if (unlikely(btc_dbg_type[dbgtype] & dbgflag)) {\
  109. pr_info("%s: ", __func__); \
  110. printk(printstr, ##__VA_ARGS__); \
  111. } \
  112. } while (0)
  113. #define BTC_PRINT_ADDR(dbgtype, dbgflag, printstr, _ptr) \
  114. do { \
  115. if (unlikely(btc_dbg_type[dbgtype] & dbgflag)) { \
  116. int __i; \
  117. u8 *__ptr = (u8 *)_ptr; \
  118. printk printstr; \
  119. for (__i = 0; __i < 6; __i++) \
  120. printk("%02X%s", __ptr[__i], (__i == 5) ? \
  121. "" : "-"); \
  122. pr_info("\n"); \
  123. } \
  124. } while (0)
  125. #define BTC_PRINT_DATA(dbgtype, dbgflag, _titlestring, _hexdata, _hexdatalen) \
  126. do { \
  127. if (unlikely(btc_dbg_type[dbgtype] & dbgflag)) { \
  128. int __i; \
  129. u8 *__ptr = (u8 *)_hexdata; \
  130. printk(_titlestring); \
  131. for (__i = 0; __i < (int)_hexdatalen; __i++) { \
  132. printk("%02X%s", __ptr[__i], (((__i + 1) % 4) \
  133. == 0) ? " " : " ");\
  134. if (((__i + 1) % 16) == 0) \
  135. printk("\n"); \
  136. } \
  137. pr_debug("\n"); \
  138. } \
  139. } while (0)
  140. #define BTC_ANT_PATH_WIFI 0
  141. #define BTC_ANT_PATH_BT 1
  142. #define BTC_ANT_PATH_PTA 2
  143. enum btc_power_save_type {
  144. BTC_PS_WIFI_NATIVE = 0,
  145. BTC_PS_LPS_ON = 1,
  146. BTC_PS_LPS_OFF = 2,
  147. BTC_PS_LPS_MAX
  148. };
  149. struct btc_board_info {
  150. /* The following is some board information */
  151. u8 bt_chip_type;
  152. u8 pg_ant_num; /* pg ant number */
  153. u8 btdm_ant_num; /* ant number for btdm */
  154. u8 btdm_ant_pos;
  155. bool bt_exist;
  156. };
  157. enum btc_dbg_opcode {
  158. BTC_DBG_SET_COEX_NORMAL = 0x0,
  159. BTC_DBG_SET_COEX_WIFI_ONLY = 0x1,
  160. BTC_DBG_SET_COEX_BT_ONLY = 0x2,
  161. BTC_DBG_MAX
  162. };
  163. enum btc_rssi_state {
  164. BTC_RSSI_STATE_HIGH = 0x0,
  165. BTC_RSSI_STATE_MEDIUM = 0x1,
  166. BTC_RSSI_STATE_LOW = 0x2,
  167. BTC_RSSI_STATE_STAY_HIGH = 0x3,
  168. BTC_RSSI_STATE_STAY_MEDIUM = 0x4,
  169. BTC_RSSI_STATE_STAY_LOW = 0x5,
  170. BTC_RSSI_MAX
  171. };
  172. enum btc_wifi_role {
  173. BTC_ROLE_STATION = 0x0,
  174. BTC_ROLE_AP = 0x1,
  175. BTC_ROLE_IBSS = 0x2,
  176. BTC_ROLE_HS_MODE = 0x3,
  177. BTC_ROLE_MAX
  178. };
  179. enum btc_wifi_bw_mode {
  180. BTC_WIFI_BW_LEGACY = 0x0,
  181. BTC_WIFI_BW_HT20 = 0x1,
  182. BTC_WIFI_BW_HT40 = 0x2,
  183. BTC_WIFI_BW_MAX
  184. };
  185. enum btc_wifi_traffic_dir {
  186. BTC_WIFI_TRAFFIC_TX = 0x0,
  187. BTC_WIFI_TRAFFIC_RX = 0x1,
  188. BTC_WIFI_TRAFFIC_MAX
  189. };
  190. enum btc_wifi_pnp {
  191. BTC_WIFI_PNP_WAKE_UP = 0x0,
  192. BTC_WIFI_PNP_SLEEP = 0x1,
  193. BTC_WIFI_PNP_MAX
  194. };
  195. enum btc_get_type {
  196. /* type bool */
  197. BTC_GET_BL_HS_OPERATION,
  198. BTC_GET_BL_HS_CONNECTING,
  199. BTC_GET_BL_WIFI_CONNECTED,
  200. BTC_GET_BL_WIFI_BUSY,
  201. BTC_GET_BL_WIFI_SCAN,
  202. BTC_GET_BL_WIFI_LINK,
  203. BTC_GET_BL_WIFI_DHCP,
  204. BTC_GET_BL_WIFI_SOFTAP_IDLE,
  205. BTC_GET_BL_WIFI_SOFTAP_LINKING,
  206. BTC_GET_BL_WIFI_IN_EARLY_SUSPEND,
  207. BTC_GET_BL_WIFI_ROAM,
  208. BTC_GET_BL_WIFI_4_WAY_PROGRESS,
  209. BTC_GET_BL_WIFI_UNDER_5G,
  210. BTC_GET_BL_WIFI_AP_MODE_ENABLE,
  211. BTC_GET_BL_WIFI_ENABLE_ENCRYPTION,
  212. BTC_GET_BL_WIFI_UNDER_B_MODE,
  213. BTC_GET_BL_EXT_SWITCH,
  214. /* type s4Byte */
  215. BTC_GET_S4_WIFI_RSSI,
  216. BTC_GET_S4_HS_RSSI,
  217. /* type u32 */
  218. BTC_GET_U4_WIFI_BW,
  219. BTC_GET_U4_WIFI_TRAFFIC_DIRECTION,
  220. BTC_GET_U4_WIFI_FW_VER,
  221. BTC_GET_U4_BT_PATCH_VER,
  222. /* type u1Byte */
  223. BTC_GET_U1_WIFI_DOT11_CHNL,
  224. BTC_GET_U1_WIFI_CENTRAL_CHNL,
  225. BTC_GET_U1_WIFI_HS_CHNL,
  226. BTC_GET_U1_MAC_PHY_MODE,
  227. /* for 1Ant */
  228. BTC_GET_U1_LPS_MODE,
  229. BTC_GET_BL_BT_SCO_BUSY,
  230. /* for test mode */
  231. BTC_GET_DRIVER_TEST_CFG,
  232. BTC_GET_MAX
  233. };
  234. enum btc_set_type {
  235. /* type bool */
  236. BTC_SET_BL_BT_DISABLE,
  237. BTC_SET_BL_BT_TRAFFIC_BUSY,
  238. BTC_SET_BL_BT_LIMITED_DIG,
  239. BTC_SET_BL_FORCE_TO_ROAM,
  240. BTC_SET_BL_TO_REJ_AP_AGG_PKT,
  241. BTC_SET_BL_BT_CTRL_AGG_SIZE,
  242. BTC_SET_BL_INC_SCAN_DEV_NUM,
  243. /* type u1Byte */
  244. BTC_SET_U1_RSSI_ADJ_VAL_FOR_AGC_TABLE_ON,
  245. BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE,
  246. BTC_SET_UI_SCAN_SIG_COMPENSATION,
  247. BTC_SET_U1_AGG_BUF_SIZE,
  248. /* type trigger some action */
  249. BTC_SET_ACT_GET_BT_RSSI,
  250. BTC_SET_ACT_AGGREGATE_CTRL,
  251. /********* for 1Ant **********/
  252. /* type bool */
  253. BTC_SET_BL_BT_SCO_BUSY,
  254. /* type u1Byte */
  255. BTC_SET_U1_1ANT_LPS,
  256. BTC_SET_U1_1ANT_RPWM,
  257. /* type trigger some action */
  258. BTC_SET_ACT_LEAVE_LPS,
  259. BTC_SET_ACT_ENTER_LPS,
  260. BTC_SET_ACT_NORMAL_LPS,
  261. BTC_SET_ACT_INC_FORCE_EXEC_PWR_CMD_CNT,
  262. BTC_SET_ACT_DISABLE_LOW_POWER,
  263. BTC_SET_ACT_UPDATE_ra_mask,
  264. BTC_SET_ACT_SEND_MIMO_PS,
  265. /* BT Coex related */
  266. BTC_SET_ACT_CTRL_BT_INFO,
  267. BTC_SET_ACT_CTRL_BT_COEX,
  268. /***************************/
  269. BTC_SET_MAX
  270. };
  271. enum btc_dbg_disp_type {
  272. BTC_DBG_DISP_COEX_STATISTICS = 0x0,
  273. BTC_DBG_DISP_BT_LINK_INFO = 0x1,
  274. BTC_DBG_DISP_BT_FW_VER = 0x2,
  275. BTC_DBG_DISP_FW_PWR_MODE_CMD = 0x3,
  276. BTC_DBG_DISP_MAX
  277. };
  278. enum btc_notify_type_ips {
  279. BTC_IPS_LEAVE = 0x0,
  280. BTC_IPS_ENTER = 0x1,
  281. BTC_IPS_MAX
  282. };
  283. enum btc_notify_type_lps {
  284. BTC_LPS_DISABLE = 0x0,
  285. BTC_LPS_ENABLE = 0x1,
  286. BTC_LPS_MAX
  287. };
  288. enum btc_notify_type_scan {
  289. BTC_SCAN_FINISH = 0x0,
  290. BTC_SCAN_START = 0x1,
  291. BTC_SCAN_MAX
  292. };
  293. enum btc_notify_type_associate {
  294. BTC_ASSOCIATE_FINISH = 0x0,
  295. BTC_ASSOCIATE_START = 0x1,
  296. BTC_ASSOCIATE_MAX
  297. };
  298. enum btc_notify_type_media_status {
  299. BTC_MEDIA_DISCONNECT = 0x0,
  300. BTC_MEDIA_CONNECT = 0x1,
  301. BTC_MEDIA_MAX
  302. };
  303. enum btc_notify_type_special_packet {
  304. BTC_PACKET_UNKNOWN = 0x0,
  305. BTC_PACKET_DHCP = 0x1,
  306. BTC_PACKET_ARP = 0x2,
  307. BTC_PACKET_EAPOL = 0x3,
  308. BTC_PACKET_MAX
  309. };
  310. enum btc_notify_type_stack_operation {
  311. BTC_STACK_OP_NONE = 0x0,
  312. BTC_STACK_OP_INQ_PAGE_PAIR_START = 0x1,
  313. BTC_STACK_OP_INQ_PAGE_PAIR_FINISH = 0x2,
  314. BTC_STACK_OP_MAX
  315. };
  316. typedef u8 (*bfp_btc_r1)(void *btc_context, u32 reg_addr);
  317. typedef u16 (*bfp_btc_r2)(void *btc_context, u32 reg_addr);
  318. typedef u32 (*bfp_btc_r4)(void *btc_context, u32 reg_addr);
  319. typedef void (*bfp_btc_w1)(void *btc_context, u32 reg_addr, u8 data);
  320. typedef void (*bfp_btc_w1_bit_mak)(void *btc_context, u32 reg_addr,
  321. u32 bit_mask, u8 data1b);
  322. typedef void (*bfp_btc_w2)(void *btc_context, u32 reg_addr, u16 data);
  323. typedef void (*bfp_btc_w4)(void *btc_context, u32 reg_addr, u32 data);
  324. typedef void (*bfp_btc_wr_1byte_bit_mask)(void *btc_context, u32 reg_addr,
  325. u8 bit_mask, u8 data);
  326. typedef void (*bfp_btc_set_bb_reg)(void *btc_context, u32 reg_addr,
  327. u32 bit_mask, u32 data);
  328. typedef u32 (*bfp_btc_get_bb_reg)(void *btc_context, u32 reg_addr,
  329. u32 bit_mask);
  330. typedef void (*bfp_btc_set_rf_reg)(void *btc_context, u8 rf_path, u32 reg_addr,
  331. u32 bit_mask, u32 data);
  332. typedef u32 (*bfp_btc_get_rf_reg)(void *btc_context, u8 rf_path,
  333. u32 reg_addr, u32 bit_mask);
  334. typedef void (*bfp_btc_fill_h2c)(void *btc_context, u8 element_id,
  335. u32 cmd_len, u8 *cmd_buffer);
  336. typedef bool (*bfp_btc_get)(void *btcoexist, u8 get_type, void *out_buf);
  337. typedef bool (*bfp_btc_set)(void *btcoexist, u8 set_type, void *in_buf);
  338. typedef void (*bfp_btc_disp_dbg_msg)(void *btcoexist, u8 disp_type);
  339. struct btc_bt_info {
  340. bool bt_disabled;
  341. u8 rssi_adjust_for_agc_table_on;
  342. u8 rssi_adjust_for_1ant_coex_type;
  343. bool bt_busy;
  344. u8 agg_buf_size;
  345. bool limited_dig;
  346. bool reject_agg_pkt;
  347. bool b_bt_ctrl_buf_size;
  348. bool increase_scan_dev_num;
  349. u16 bt_hci_ver;
  350. u16 bt_real_fw_ver;
  351. u8 bt_fw_ver;
  352. /* the following is for 1Ant solution */
  353. bool bt_ctrl_lps;
  354. bool bt_pwr_save_mode;
  355. bool bt_lps_on;
  356. bool force_to_roam;
  357. u8 force_exec_pwr_cmd_cnt;
  358. u8 lps_1ant;
  359. u8 rpwm_1ant;
  360. u32 ra_mask;
  361. };
  362. struct btc_stack_info {
  363. bool profile_notified;
  364. u16 hci_version; /* stack hci version */
  365. u8 num_of_link;
  366. bool bt_link_exist;
  367. bool sco_exist;
  368. bool acl_exist;
  369. bool a2dp_exist;
  370. bool hid_exist;
  371. u8 num_of_hid;
  372. bool pan_exist;
  373. bool unknown_acl_exist;
  374. char min_bt_rssi;
  375. };
  376. struct btc_statistics {
  377. u32 cnt_bind;
  378. u32 cnt_init_hw_config;
  379. u32 cnt_init_coex_dm;
  380. u32 cnt_ips_notify;
  381. u32 cnt_lps_notify;
  382. u32 cnt_scan_notify;
  383. u32 cnt_connect_notify;
  384. u32 cnt_media_status_notify;
  385. u32 cnt_special_packet_notify;
  386. u32 cnt_bt_info_notify;
  387. u32 cnt_periodical;
  388. u32 cnt_stack_operation_notify;
  389. u32 cnt_dbg_ctrl;
  390. };
  391. struct btc_bt_link_info {
  392. bool bt_link_exist;
  393. bool sco_exist;
  394. bool sco_only;
  395. bool a2dp_exist;
  396. bool a2dp_only;
  397. bool hid_exist;
  398. bool hid_only;
  399. bool pan_exist;
  400. bool pan_only;
  401. };
  402. enum btc_antenna_pos {
  403. BTC_ANTENNA_AT_MAIN_PORT = 0x1,
  404. BTC_ANTENNA_AT_AUX_PORT = 0x2,
  405. };
  406. struct btc_coexist {
  407. /* make sure only one adapter can bind the data context */
  408. bool binded;
  409. /* default adapter */
  410. void *adapter;
  411. struct btc_board_info board_info;
  412. /* some bt info referenced by non-bt module */
  413. struct btc_bt_info bt_info;
  414. struct btc_stack_info stack_info;
  415. enum btc_chip_interface chip_interface;
  416. struct btc_bt_link_info bt_link_info;
  417. bool initilized;
  418. bool stop_coex_dm;
  419. bool manual_control;
  420. u8 *cli_buf;
  421. struct btc_statistics statistics;
  422. u8 pwr_mode_val[10];
  423. /* function pointers - io related */
  424. bfp_btc_r1 btc_read_1byte;
  425. bfp_btc_w1 btc_write_1byte;
  426. bfp_btc_w1_bit_mak btc_write_1byte_bitmask;
  427. bfp_btc_r2 btc_read_2byte;
  428. bfp_btc_w2 btc_write_2byte;
  429. bfp_btc_r4 btc_read_4byte;
  430. bfp_btc_w4 btc_write_4byte;
  431. bfp_btc_set_bb_reg btc_set_bb_reg;
  432. bfp_btc_get_bb_reg btc_get_bb_reg;
  433. bfp_btc_set_rf_reg btc_set_rf_reg;
  434. bfp_btc_get_rf_reg btc_get_rf_reg;
  435. bfp_btc_fill_h2c btc_fill_h2c;
  436. bfp_btc_disp_dbg_msg btc_disp_dbg_msg;
  437. bfp_btc_get btc_get;
  438. bfp_btc_set btc_set;
  439. };
  440. bool halbtc_is_wifi_uplink(struct rtl_priv *adapter);
  441. extern struct btc_coexist gl_bt_coexist;
  442. bool exhalbtc_initlize_variables(struct rtl_priv *adapter);
  443. void exhalbtc_init_hw_config(struct btc_coexist *btcoexist);
  444. void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist);
  445. void exhalbtc_ips_notify(struct btc_coexist *btcoexist, u8 type);
  446. void exhalbtc_lps_notify(struct btc_coexist *btcoexist, u8 type);
  447. void exhalbtc_scan_notify(struct btc_coexist *btcoexist, u8 type);
  448. void exhalbtc_connect_notify(struct btc_coexist *btcoexist, u8 action);
  449. void exhalbtc_mediastatus_notify(struct btc_coexist *btcoexist,
  450. enum _RT_MEDIA_STATUS media_status);
  451. void exhalbtc_special_packet_notify(struct btc_coexist *btcoexist, u8 pkt_type);
  452. void exhalbtc_bt_info_notify(struct btc_coexist *btcoexist, u8 *tmp_buf,
  453. u8 length);
  454. void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type);
  455. void exhalbtc_halt_notify(struct btc_coexist *btcoexist);
  456. void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state);
  457. void exhalbtc_periodical(struct btc_coexist *btcoexist);
  458. void exhalbtc_dbg_control(struct btc_coexist *btcoexist, u8 code, u8 len,
  459. u8 *data);
  460. void exhalbtc_stack_update_profile_info(void);
  461. void exhalbtc_set_hci_version(u16 hci_version);
  462. void exhalbtc_set_bt_patch_version(u16 bt_hci_version, u16 bt_patch_version);
  463. void exhalbtc_update_min_bt_rssi(char bt_rssi);
  464. void exhalbtc_set_bt_exist(bool bt_exist);
  465. void exhalbtc_set_chip_type(u8 chip_type);
  466. void exhalbtc_set_ant_num(u8 type, u8 ant_num);
  467. void exhalbtc_display_bt_coex_info(struct btc_coexist *btcoexist);
  468. void exhalbtc_signal_compensation(struct btc_coexist *btcoexist,
  469. u8 *rssi_wifi, u8 *rssi_bt);
  470. void exhalbtc_lps_leave(struct btc_coexist *btcoexist);
  471. void exhalbtc_low_wifi_traffic_notify(struct btc_coexist *btcoexist);
  472. #endif