xref: /freebsd/sys/contrib/dev/rtw89/rtw8852c_rfk.h (revision db33c6f3ae9d1231087710068ee4ea5398aacca7)
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2019-2022  Realtek Corporation
3  */
4 
5 #ifndef __RTW89_8852C_RFK_H__
6 #define __RTW89_8852C_RFK_H__
7 
8 #include "core.h"
9 
10 void rtw8852c_mcc_get_ch_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy);
11 void rtw8852c_rck(struct rtw89_dev *rtwdev);
12 void rtw8852c_dack(struct rtw89_dev *rtwdev);
13 void rtw8852c_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
14 void rtw8852c_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool is_afe);
15 void rtw8852c_rx_dck_track(struct rtw89_dev *rtwdev);
16 void rtw8852c_dpk_init(struct rtw89_dev *rtwdev);
17 void rtw8852c_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy);
18 void rtw8852c_dpk_track(struct rtw89_dev *rtwdev);
19 void rtw8852c_tssi(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy);
20 void rtw8852c_tssi_scan(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy);
21 void rtw8852c_tssi_cont_en_phyidx(struct rtw89_dev *rtwdev, bool en, u8 phy_idx);
22 void rtw8852c_wifi_scan_notify(struct rtw89_dev *rtwdev, bool scan_start,
23 			       enum rtw89_phy_idx phy_idx);
24 void rtw8852c_set_channel_rf(struct rtw89_dev *rtwdev,
25 			     const struct rtw89_chan *chan,
26 			     enum rtw89_phy_idx phy_idx);
27 void rtw8852c_lck_init(struct rtw89_dev *rtwdev);
28 void rtw8852c_lck_track(struct rtw89_dev *rtwdev);
29 void rtw8852c_rfk_chanctx_cb(struct rtw89_dev *rtwdev,
30 			     enum rtw89_chanctx_state state);
31 
32 #endif
33