halbtc8821c2ant.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2017 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. *****************************************************************************/
  15. #if (BT_SUPPORT == 1 && COEX_SUPPORT == 1)
  16. #if (RTL8821C_SUPPORT == 1)
  17. /* *******************************************
  18. * The following is for 8821C 2Ant BT Co-exist definition
  19. * ******************************************* */
  20. #define BT_8821C_2ANT_COEX_DBG 0
  21. #define BT_AUTO_REPORT_ONLY_8821C_2ANT 1
  22. #define BT_INFO_8821C_2ANT_B_FTP BIT(7)
  23. #define BT_INFO_8821C_2ANT_B_A2DP BIT(6)
  24. #define BT_INFO_8821C_2ANT_B_HID BIT(5)
  25. #define BT_INFO_8821C_2ANT_B_SCO_BUSY BIT(4)
  26. #define BT_INFO_8821C_2ANT_B_ACL_BUSY BIT(3)
  27. #define BT_INFO_8821C_2ANT_B_INQ_PAGE BIT(2)
  28. #define BT_INFO_8821C_2ANT_B_SCO_ESCO BIT(1)
  29. #define BT_INFO_8821C_2ANT_B_CONNECTION BIT(0)
  30. #define BTC_RSSI_COEX_THRESH_TOL_8821C_2ANT 2
  31. #define BT_8821C_2ANT_WIFI_RSSI_COEXSWITCH_THRES1 80
  32. #define BT_8821C_2ANT_BT_RSSI_COEXSWITCH_THRES1 80
  33. #define BT_8821C_2ANT_WIFI_RSSI_COEXSWITCH_THRES2 80
  34. #define BT_8821C_2ANT_BT_RSSI_COEXSWITCH_THRES2 80
  35. #define BT_8821C_2ANT_DEFAULT_ISOLATION 15
  36. #define BT_8821C_2ANT_WIFI_MAX_TX_POWER 15
  37. #define BT_8821C_2ANT_BT_MAX_TX_POWER 3
  38. #define BT_8821C_2ANT_WIFI_SIR_THRES1 -15
  39. #define BT_8821C_2ANT_WIFI_SIR_THRES2 -30
  40. #define BT_8821C_2ANT_BT_SIR_THRES1 -15
  41. #define BT_8821C_2ANT_BT_SIR_THRES2 -30
  42. enum bt_8821c_2ant_signal_state {
  43. BT_8821C_2ANT_GNT_SET_TO_LOW = 0x0,
  44. BT_8821C_2ANT_GNT_SET_TO_HIGH = 0x1,
  45. BT_8821C_2ANT_GNT_SET_BY_HW = 0x2,
  46. BT_8821C_2ANT_GNT_SET_MAX
  47. };
  48. enum bt_8821c_2ant_path_ctrl_owner {
  49. BT_8821C_2ANT_PCO_BTSIDE = 0x0,
  50. BT_8821C_2ANT_PCO_WLSIDE = 0x1,
  51. BT_8821C_2ANT_PCO_MAX
  52. };
  53. enum bt_8821c_2ant_gnt_ctrl_type {
  54. BT_8821C_2ANT_GNT_TYPE_CTRL_BY_PTA = 0x0,
  55. BT_8821C_2ANT_GNT_TYPE_CTRL_BY_SW = 0x1,
  56. BT_8821C_2ANT_GNT_TYPE_MAX
  57. };
  58. enum bt_8821c_2ant_gnt_ctrl_block {
  59. BT_8821C_2ANT_GNT_BLOCK_RFC_BB = 0x0,
  60. BT_8821C_2ANT_GNT_BLOCK_RFC = 0x1,
  61. BT_8821C_2ANT_GNT_BLOCK_BB = 0x2,
  62. BT_8821C_2ANT_GNT_BLOCK_MAX
  63. };
  64. enum bt_8821c_2ant_lte_coex_table_type {
  65. BT_8821C_2ANT_CTT_WL_VS_LTE = 0x0,
  66. BT_8821C_2ANT_CTT_BT_VS_LTE = 0x1,
  67. BT_8821C_2ANT_CTT_MAX
  68. };
  69. enum bt_8821c_2ant_lte_break_table_type {
  70. BT_8821C_2ANT_LBTT_WL_BREAK_LTE = 0x0,
  71. BT_8821C_2ANT_LBTT_BT_BREAK_LTE = 0x1,
  72. BT_8821C_2ANT_LBTT_LTE_BREAK_WL = 0x2,
  73. BT_8821C_2ANT_LBTT_LTE_BREAK_BT = 0x3,
  74. BT_8821C_2ANT_LBTT_MAX
  75. };
  76. enum bt_info_src_8821c_2ant {
  77. BT_8821C_2ANT_INFO_SRC_WIFI_FW = 0x0,
  78. BT_8821C_2ANT_INFO_SRC_BT_RSP = 0x1,
  79. BT_8821C_2ANT_INFO_SRC_BT_ACT = 0x2,
  80. BT_8821C_2ANT_INFO_SRC_MAX
  81. };
  82. enum bt_8821c_2ant_bt_status {
  83. BT_8821C_2ANT_BSTATUS_NCON_IDLE = 0x0,
  84. BT_8821C_2ANT_BSTATUS_CON_IDLE = 0x1,
  85. BT_8821C_2ANT_BSTATUS_INQ_PAGE = 0x2,
  86. BT_8821C_2ANT_BSTATUS_ACL_BUSY = 0x3,
  87. BT_8821C_2ANT_BSTATUS_SCO_BUSY = 0x4,
  88. BT_8821C_2ANT_BSTATUS_ACL_SCO_BUSY = 0x5,
  89. BT_8821C_2ANT_BSTATUS_MAX
  90. };
  91. enum bt_8821c_2ant_coex_algo {
  92. BT_8821C_2ANT_COEX_UNDEFINED = 0x0,
  93. BT_8821C_2ANT_COEX_SCO = 0x1,
  94. BT_8821C_2ANT_COEX_HID = 0x2,
  95. BT_8821C_2ANT_COEX_A2DP = 0x3,
  96. BT_8821C_2ANT_COEX_A2DP_PANHS = 0x4,
  97. BT_8821C_2ANT_COEX_PAN = 0x5,
  98. BT_8821C_2ANT_COEX_PANHS = 0x6,
  99. BT_8821C_2ANT_COEX_PAN_A2DP = 0x7,
  100. BT_8821C_2ANT_COEX_PAN_HID = 0x8,
  101. BT_8821C_2ANT_COEX_HID_A2DP_PAN = 0x9,
  102. BT_8821C_2ANT_COEX_HID_A2DP = 0xa,
  103. BT_8821C_2ANT_COEX_NOPROFILEBUSY = 0xb,
  104. BT_8821C_2ANT_COEX_A2DPSINK = 0xc,
  105. BT_8821C_2ANT_COEX_MAX
  106. };
  107. enum bt_8821c_2ant_ext_ant_switch_type {
  108. BT_8821C_2ANT_USE_DPDT = 0x0,
  109. BT_8821C_2ANT_USE_SPDT = 0x1,
  110. BT_8821C_2ANT_SWITCH_NONE = 0x2,
  111. BT_8821C_2ANT_SWITCH_MAX
  112. };
  113. enum bt_8821c_2ant_ext_ant_switch_ctrl_type {
  114. BT_8821C_2ANT_CTRL_BY_BBSW = 0x0,
  115. BT_8821C_2ANT_CTRL_BY_PTA = 0x1,
  116. BT_8821C_2ANT_CTRL_BY_ANTDIV = 0x2,
  117. BT_8821C_2ANT_CTRL_BY_MAC = 0x3,
  118. BT_8821C_2ANT_CTRL_BY_BT = 0x4,
  119. BT_8821C_2ANT_CTRL_BY_FW = 0x5,
  120. BT_8821C_2ANT_CTRL_MAX
  121. };
  122. enum bt_8821c_2ant_ext_ant_switch_pos_type {
  123. BT_8821C_2ANT_TO_BT = 0x0,
  124. BT_8821C_2ANT_TO_WLG = 0x1,
  125. BT_8821C_2ANT_TO_WLA = 0x2,
  126. BT_8821C_2ANT_TO_NOCARE = 0x3,
  127. BT_8821C_2ANT_TO_MAX
  128. };
  129. enum bt_8821c_2ant_phase {
  130. BT_8821C_2ANT_PHASE_INIT = 0x0,
  131. BT_8821C_2ANT_PHASE_WONLY = 0x1,
  132. BT_8821C_2ANT_PHASE_WOFF = 0x2,
  133. BT_8821C_2ANT_PHASE_2G = 0x3,
  134. BT_8821C_2ANT_PHASE_5G = 0x4,
  135. BT_8821C_2ANT_PHASE_BTMP = 0x5,
  136. BT_8821C_2ANT_PHASE_ANTDET = 0x6,
  137. BT_8821C_2ANT_PHASE_POWERON = 0x7,
  138. BT_8821C_2ANT_PHASE_MAX
  139. };
  140. enum bt_8821c_2ant_scoreboard {
  141. BT_8821C_2ANT_SCBD_ACTIVE = BIT(0),
  142. BT_8821C_2ANT_SCBD_ONOFF = BIT(1),
  143. BT_8821C_2ANT_SCBD_SCAN = BIT(2),
  144. BT_8821C_2ANT_SCBD_UNDERTEST = BIT(3),
  145. BT_8821C_2ANT_SCBD_RXGAIN = BIT(4),
  146. BT_8821C_2ANT_SCBD_WLBUSY = BIT(6),
  147. BT_8821C_2ANT_SCBD_BTCQDDR = BIT(10)
  148. };
  149. enum bt_8821c_2ant_RUNREASON {
  150. BT_8821C_2ANT_RSN_2GSCANSTART = 0x0,
  151. BT_8821C_2ANT_RSN_5GSCANSTART = 0x1,
  152. BT_8821C_2ANT_RSN_SCANFINISH = 0x2,
  153. BT_8821C_2ANT_RSN_2GSWITCHBAND = 0x3,
  154. BT_8821C_2ANT_RSN_5GSWITCHBAND = 0x4,
  155. BT_8821C_2ANT_RSN_2GCONSTART = 0x5,
  156. BT_8821C_2ANT_RSN_5GCONSTART = 0x6,
  157. BT_8821C_2ANT_RSN_2GCONFINISH = 0x7,
  158. BT_8821C_2ANT_RSN_5GCONFINISH = 0x8,
  159. BT_8821C_2ANT_RSN_2GMEDIA = 0x9,
  160. BT_8821C_2ANT_RSN_5GMEDIA = 0xa,
  161. BT_8821C_2ANT_RSN_MEDIADISCON = 0xb,
  162. BT_8821C_2ANT_RSN_2GSPECIALPKT = 0xc,
  163. BT_8821C_2ANT_RSN_5GSPECIALPKT = 0xd,
  164. BT_8821C_2ANT_RSN_BTINFO = 0xe,
  165. BT_8821C_2ANT_RSN_PERIODICAL = 0xf,
  166. BT_8821C_2ANT_RSN_PNP = 0x10,
  167. BT_8821C_2ANT_RSN_MAX
  168. };
  169. enum bt_8821c_2ant_WL_LINK_MODE {
  170. BT_8821C_2ANT_WLINK_2G1PORT = 0x0,
  171. BT_8821C_2ANT_WLINK_2GMPORT = 0x1,
  172. BT_8821C_2ANT_WLINK_25GMPORT = 0x2,
  173. BT_8821C_2ANT_WLINK_5G = 0x3,
  174. BT_8821C_2ANT_WLINK_2GGO = 0x4,
  175. BT_8821C_2ANT_WLINK_BTMR = 0x5,
  176. BT_8821C_2ANT_WLINK_MAX
  177. };
  178. struct coex_dm_8821c_2ant {
  179. /* hw setting */
  180. u32 cur_ant_pos_type;
  181. /* fw mechanism */
  182. u8 cur_bt_pwr_lvl;
  183. u8 cur_wl_pwr_lvl;
  184. boolean cur_ignore_wlan_act;
  185. u8 cur_ps_tdma;
  186. u8 ps_tdma_para[5];
  187. boolean reset_tdma_adjust;
  188. boolean cur_ps_tdma_on;
  189. boolean cur_bt_auto_report;
  190. /* sw mechanism */
  191. boolean cur_low_penalty_ra;
  192. u32 cur_val0x6c0;
  193. u32 cur_val0x6c4;
  194. u32 cur_val0x6c8;
  195. u8 cur_val0x6cc;
  196. /* algorithm related */
  197. u8 cur_algorithm;
  198. u8 bt_status;
  199. u8 wifi_chnl_info[3];
  200. u8 cur_lps;
  201. u8 cur_rpwm;
  202. boolean is_switch_to_1dot5_ant;
  203. u32 arp_cnt;
  204. u32 cur_ext_ant_switch_status;
  205. u8 cur_antdiv_type;
  206. u32 setting_tdma;
  207. };
  208. struct coex_sta_8821c_2ant {
  209. boolean bt_disabled;
  210. boolean bt_link_exist;
  211. boolean sco_exist;
  212. boolean a2dp_exist;
  213. boolean hid_exist;
  214. boolean pan_exist;
  215. boolean msft_mr_exist;
  216. boolean under_lps;
  217. boolean under_ips;
  218. u32 high_priority_tx;
  219. u32 high_priority_rx;
  220. u32 low_priority_tx;
  221. u32 low_priority_rx;
  222. boolean is_hi_pri_rx_overhead;
  223. u8 bt_rssi;
  224. u8 pre_bt_rssi_state;
  225. u8 pre_wifi_rssi_state[4];
  226. u8 bt_info_c2h[BT_8821C_2ANT_INFO_SRC_MAX][10];
  227. u32 bt_info_c2h_cnt[BT_8821C_2ANT_INFO_SRC_MAX];
  228. boolean bt_whck_test;
  229. boolean c2h_bt_inquiry_page;
  230. boolean c2h_bt_remote_name_req;
  231. u8 bt_info_ext;
  232. u8 bt_info_ext2;
  233. u32 pop_event_cnt;
  234. u8 scan_ap_num;
  235. u8 bt_retry_cnt;
  236. u32 crc_ok_cck;
  237. u32 crc_ok_11g;
  238. u32 crc_ok_11n;
  239. u32 crc_ok_11n_vht;
  240. u32 crc_err_cck;
  241. u32 crc_err_11g;
  242. u32 crc_err_11n;
  243. u32 crc_err_11n_vht;
  244. u32 cnt_crcok_max_in_10s;
  245. boolean cck_lock;
  246. boolean cck_lock_ever;
  247. boolean cck_lock_warn;
  248. u8 coex_table_type;
  249. boolean force_lps_ctrl;
  250. u8 dis_ver_info_cnt;
  251. u8 a2dp_bit_pool;
  252. u8 cut_version;
  253. boolean concurrent_rx_mode_on;
  254. u16 score_board;
  255. u8 isolation_btween_wb; /* 0~ 50 */
  256. u8 wifi_coex_thres;
  257. u8 bt_coex_thres;
  258. u8 wifi_coex_thres2;
  259. u8 bt_coex_thres2;
  260. u8 num_of_profile;
  261. boolean acl_busy;
  262. boolean bt_create_connection;
  263. boolean wifi_high_pri_task1;
  264. boolean wifi_high_pri_task2;
  265. u32 specific_pkt_period_cnt;
  266. u32 bt_coex_supported_feature;
  267. u32 bt_coex_supported_version;
  268. u8 bt_ble_scan_type;
  269. u32 bt_ble_scan_para[3];
  270. boolean run_time_state;
  271. boolean freeze_coexrun_by_btinfo;
  272. boolean is_A2DP_3M;
  273. boolean voice_over_HOGP;
  274. u8 bt_info;
  275. boolean is_autoslot;
  276. u8 forbidden_slot;
  277. u8 hid_busy_num;
  278. u8 hid_pair_cnt;
  279. u32 cnt_remote_name_req;
  280. u32 cnt_setup_link;
  281. u32 cnt_reinit;
  282. u32 cnt_ign_wlan_act;
  283. u32 cnt_page;
  284. u32 cnt_role_switch;
  285. u16 bt_reg_vendor_ac;
  286. u16 bt_reg_vendor_ae;
  287. boolean is_setup_link;
  288. u8 wl_noisy_level;
  289. u32 gnt_error_cnt;
  290. u8 bt_afh_map[10];
  291. u8 bt_relink_downcount;
  292. boolean is_tdma_btautoslot;
  293. boolean is_tdma_btautoslot_hang;
  294. boolean is_esco_mode;
  295. u8 switch_band_notify_to;
  296. boolean is_rf_state_off;
  297. boolean is_hid_low_pri_tx_overhead;
  298. boolean is_bt_multi_link;
  299. boolean is_bt_a2dp_sink;
  300. boolean is_set_ps_state_fail;
  301. u8 cnt_set_ps_state_fail;
  302. u8 wl_fw_dbg_info[10];
  303. u8 wl_rx_rate;
  304. u8 wl_tx_rate;
  305. u8 wl_rts_rx_rate;
  306. u8 wl_center_channel;
  307. u8 wl_tx_macid;
  308. u8 wl_tx_retry_ratio;
  309. u16 score_board_WB;
  310. boolean is_hid_rcu;
  311. u16 legacy_forbidden_slot;
  312. u16 le_forbidden_slot;
  313. u8 bt_a2dp_vendor_id;
  314. u32 bt_a2dp_device_name;
  315. boolean is_ble_scan_en;
  316. boolean is_bt_opp_exist;
  317. boolean gl_wifi_busy;
  318. u8 connect_ap_period_cnt;
  319. boolean is_bt_reenable;
  320. u8 cnt_bt_reenable;
  321. boolean is_wifi_linkscan_process;
  322. u8 wl_coex_mode;
  323. u8 wl_pnp_wakeup_downcnt;
  324. u32 coex_run_cnt;
  325. };
  326. #define BT_8821C_2ANT_EXT_BAND_SWITCH_USE_DPDT 0
  327. #define BT_8821C_2ANT_EXT_BAND_SWITCH_USE_SPDT 1
  328. struct rfe_type_8821c_2ant {
  329. u8 rfe_module_type;
  330. boolean ext_ant_switch_exist;
  331. /* 0:DPDT, 1:SPDT */
  332. u8 ext_ant_switch_type;
  333. /* iF 0: DPDT_P=0, DPDT_N=1 => BTG to Main, WL_A+G to Aux */
  334. u8 ext_ant_switch_ctrl_polarity;
  335. boolean ext_band_switch_exist;
  336. /* 0:DPDT, 1:SPDT */
  337. u8 ext_band_switch_type;
  338. u8 ext_band_switch_ctrl_polarity;
  339. boolean ant_at_main_port;
  340. /* If TRUE: WLG at BTG, If FALSE: WLG at WLAG */
  341. boolean wlg_locate_at_btg;
  342. /* If diversity on */
  343. boolean ext_ant_switch_diversity;
  344. };
  345. struct wifi_link_info_8821c_2ant {
  346. u8 num_of_active_port;
  347. u32 port_connect_status;
  348. boolean is_all_under_5g;
  349. boolean is_mcc_25g;
  350. boolean is_p2p_connected;
  351. };
  352. /* *******************************************
  353. * The following is interface which will notify coex module.
  354. * ******************************************* */
  355. void ex_halbtc8821c2ant_power_on_setting(struct btc_coexist *btc);
  356. void ex_halbtc8821c2ant_pre_load_firmware(struct btc_coexist *btc);
  357. void ex_halbtc8821c2ant_init_hw_config(struct btc_coexist *btc,
  358. boolean wifi_only);
  359. void ex_halbtc8821c2ant_init_coex_dm(struct btc_coexist *btc);
  360. void ex_halbtc8821c2ant_ips_notify(struct btc_coexist *btc,
  361. u8 type);
  362. void ex_halbtc8821c2ant_lps_notify(struct btc_coexist *btc,
  363. u8 type);
  364. void ex_halbtc8821c2ant_scan_notify(struct btc_coexist *btc,
  365. u8 type);
  366. void ex_halbtc8821c2ant_switchband_notify(struct btc_coexist *btc,
  367. u8 type);
  368. void ex_halbtc8821c2ant_connect_notify(struct btc_coexist *btc,
  369. u8 type);
  370. void ex_halbtc8821c2ant_media_status_notify(struct btc_coexist *btc,
  371. u8 type);
  372. void ex_halbtc8821c2ant_specific_packet_notify(struct btc_coexist *btc,
  373. u8 type);
  374. void ex_halbtc8821c2ant_bt_info_notify(struct btc_coexist *btc,
  375. u8 *tmp_buf, u8 length);
  376. void ex_halbtc8821c2ant_wl_fwdbginfo_notify(struct btc_coexist *btc,
  377. u8 *tmp_buf, u8 length);
  378. void ex_halbtc8821c2ant_rx_rate_change_notify(struct btc_coexist *btc,
  379. BOOLEAN is_data_frame,
  380. u8 btc_rate_id);
  381. void ex_halbtc8821c2ant_tx_rate_change_notify(struct btc_coexist *btc,
  382. u8 tx_rate,
  383. u8 tx_retry_ratio, u8 macid);
  384. void ex_halbtc8821c2ant_rf_status_notify(struct btc_coexist *btc,
  385. u8 type);
  386. void ex_halbtc8821c2ant_halt_notify(struct btc_coexist *btc);
  387. void ex_halbtc8821c2ant_pnp_notify(struct btc_coexist *btc,
  388. u8 pnp_state);
  389. void ex_halbtc8821c2ant_periodical(struct btc_coexist *btc);
  390. void ex_halbtc8821c2ant_display_simple_coex_info(struct btc_coexist *btc);
  391. void ex_halbtc8821c2ant_display_coex_info(struct btc_coexist *btc);
  392. #else
  393. #define ex_halbtc8821c2ant_power_on_setting(btc)
  394. #define ex_halbtc8821c2ant_pre_load_firmware(btc)
  395. #define ex_halbtc8821c2ant_init_hw_config(btc, wifi_only)
  396. #define ex_halbtc8821c2ant_init_coex_dm(btc)
  397. #define ex_halbtc8821c2ant_ips_notify(btc, type)
  398. #define ex_halbtc8821c2ant_lps_notify(btc, type)
  399. #define ex_halbtc8821c2ant_scan_notify(btc, type)
  400. #define ex_halbtc8821c2ant_switchband_notify(btc, type)
  401. #define ex_halbtc8821c2ant_connect_notify(btc, type)
  402. #define ex_halbtc8821c2ant_media_status_notify(btc, type)
  403. #define ex_halbtc8821c2ant_specific_packet_notify(btc, type)
  404. #define ex_halbtc8821c2ant_bt_info_notify(btc, tmp_buf, length)
  405. #define ex_halbtc8821c2ant_wl_fwdbginfo_notify(btc, tmp_buf, length)
  406. #define ex_halbtc8821c2ant_rx_rate_change_notify(btc, is_data_frame, \
  407. btc_rate_id)
  408. #define ex_halbtc8821c2ant_tx_rate_change_notify(btcoexist, tx_rate, \
  409. tx_retry_ratio, macid)
  410. #define ex_halbtc8821c2ant_rf_status_notify(btc, type)
  411. #define ex_halbtc8821c2ant_halt_notify(btc)
  412. #define ex_halbtc8821c2ant_pnp_notify(btc, pnp_state)
  413. #define ex_halbtc8821c2ant_periodical(btc)
  414. #define ex_halbtc8821c2ant_display_simple_coex_info(btc)
  415. #define ex_halbtc8821c2ant_display_coex_info(btc)
  416. #endif
  417. #endif