halbtcoutsrc.h 14 KB

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