hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/******************************************************************************
 *
 * Copyright(c) 2007 - 2020  Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * The full GNU General Public License is included in this distribution in the
 * file called LICENSE.
 *
 * Contact Information:
 * wlanfae <wlanfae@realtek.com>
 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
 * Hsinchu 300, Taiwan.
 *
 * Larry Finger <Larry.Finger@lwfinger.net>
 *
 *****************************************************************************/
#ifndef __HALRF_8852B_H__
#define __HALRF_8852B_H__
#ifdef RF_8852B_SUPPORT
 
#define RXDCK_VER_8852B 0x1
#define RCK_VER_8852B 0x1
 
void halrf_lo_test_8852b(struct rf_info *rf, bool is_on, enum rf_path path);
u8 halrf_kpath_8852b(struct rf_info *rf, enum phl_phy_idx phy_idx);
void halrf_set_rx_dck_8852b(struct rf_info *rf, enum phl_phy_idx phy, enum rf_path path, bool is_afe);
void halrf_rx_dck_8852b(struct rf_info *rf, enum phl_phy_idx phy, bool is_afe);
void halrf_rx_dck_onoff_8852b(struct rf_info *rf, bool is_enable);
void halrf_rck_8852b(struct rf_info *rf, enum rf_path path);
void halrf_rf_direct_cntrl_8852b(struct rf_info *rf, enum rf_path path, bool is_bybb);
void halrf_drf_direct_cntrl_8852b(struct rf_info *rf, enum rf_path path, bool is_bybb);
void halrf_bf_config_rf_8852b(struct rf_info *rf);
extern struct rfk_iqk_info rf_iqk_hwspec_8852b;
void halrf_dpk_init_8852b(struct rf_info *rf);
bool halrf_ctrl_ch_8852b(struct rf_info *rf,  u8 central_ch);
bool halrf_ctrl_bw_8852b(struct rf_info *rf, enum channel_width bw);
void halrf_rxbb_bw_8852b(struct rf_info *rf, enum phl_phy_idx phy, enum channel_width bw);
void halrf_fw_ntfy_8852b(struct rf_info *rf, enum phl_phy_idx phy_idx); 
void halrf_disconnect_notify_8852b(struct rf_info *rf, struct rtw_chan_def *chandef  ) ;
bool halrf_check_mcc_ch_8852b(struct rf_info *rf, struct rtw_chan_def *chandef) ;
void halrf_quick_checkrf_8852b(struct rf_info *rf);
 
void halrf_before_one_shot_enable_8852b(struct rf_info *rf);
bool halrf_one_shot_nctl_done_check_8852b(struct rf_info *rf, enum rf_path path);
 
#endif
#endif /*  __HALRF_8852b_H__ */