mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
- support Android-14 - support Linux kernel 6.9 - support 6G regulation - support Thermal protection - support TX shortcut to reduce CPU loading - fix some coverity issues - Use RTW regulatory version rtk_8852CE_M.2_2230-67-52 - default enable con-current and MCC Bug 4667769 Bug 4667981 Change-Id: Iee069ecdd1f00a0b78285d0a4ef5778ed9ace478 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3195601 Tested-by: Shobek Attupurath <sattupurath@nvidia.com> Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
109 lines
3.6 KiB
C
109 lines
3.6 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2019 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.
|
|
*
|
|
*****************************************************************************/
|
|
#ifndef _PHL_CHANA_H_
|
|
#define _PHL_CHANA_H_
|
|
|
|
u8 phl_chanctx_get_rnum(struct phl_info_t *phl_info,
|
|
struct phl_queue *chan_ctx_queue,
|
|
struct rtw_chan_ctx *chanctx);
|
|
|
|
u8 phl_chanctx_get_rnum_with_lock(struct phl_info_t *phl_info,
|
|
struct phl_queue *chan_ctx_queue,
|
|
struct rtw_chan_ctx *chanctx);
|
|
|
|
u8 phl_get_chanctx_rolemap(struct phl_info_t *phl_info, u8 band_idx);
|
|
|
|
enum rtw_phl_status
|
|
phl_chanctx_free(struct phl_info_t *phl_info, struct hw_band_ctl_t *band_ctl);
|
|
|
|
enum rtw_phl_status
|
|
phl_set_ch_bw(struct phl_info_t *phl_info, u8 band_idx,
|
|
struct rtw_chan_def *chdef, enum rfk_tri_type rt_type);
|
|
|
|
|
|
bool rtw_phl_chanctx_add(void *phl,
|
|
struct rtw_wifi_role_t *wifi_role,
|
|
struct rtw_wifi_role_link_t *rlink,
|
|
struct rtw_chan_def *new_chdef,
|
|
struct rtw_mr_chctx_info *mr_cc_info);
|
|
|
|
int rtw_phl_chanctx_del(void *phl,
|
|
struct rtw_wifi_role_t *wifi_role,
|
|
struct rtw_wifi_role_link_t *rlink,
|
|
struct rtw_chan_def *chan_def);
|
|
|
|
#ifdef CONFIG_CMD_DISP
|
|
struct setch_param {
|
|
struct rtw_wifi_role_t *wrole;
|
|
struct rtw_wifi_role_link_t *rlink;
|
|
struct rtw_chan_def chdef;
|
|
enum rfk_tri_type rt_type;
|
|
};
|
|
|
|
enum rtw_phl_status
|
|
phl_cmd_chg_op_chdef_start_hdl(struct phl_info_t *phl, u8 *param);
|
|
|
|
enum rtw_phl_status
|
|
phl_cmd_set_ch_bw_hdl(struct phl_info_t *phl_info, u8 *param);
|
|
enum rtw_phl_status
|
|
rtw_phl_cmd_set_ch_bw(struct rtw_wifi_role_t *wifi_role,
|
|
struct rtw_wifi_role_link_t *rlink,
|
|
struct rtw_chan_def *chdef,
|
|
enum rfk_tri_type rt_type,
|
|
enum phl_cmd_type cmd_type,
|
|
u32 cmd_timeout);
|
|
enum rtw_phl_status
|
|
phl_cmd_dfs_tx_pause_hdl(struct phl_info_t *phl_info, u8 *param);
|
|
#endif
|
|
|
|
#ifdef DBG_PHL_CHAN
|
|
void phl_chan_dump_chandef(const char *caller, const int line, bool show_caller,
|
|
struct rtw_chan_def *chandef);
|
|
#define PHL_DUMP_CHAN_DEF(_chandef) phl_chan_dump_chandef(__FUNCTION__, __LINE__, false, _chandef);
|
|
#define PHL_DUMP_CHAN_DEF_EX(_chandef) phl_chan_dump_chandef(__FUNCTION__, __LINE__, true, _chandef);
|
|
#else
|
|
#define PHL_DUMP_CHAN_DEF(_chandef)
|
|
#define PHL_DUMP_CHAN_DEF_EX(_chandef)
|
|
#endif
|
|
|
|
#ifdef CONFIG_DBCC_SUPPORT
|
|
enum rtw_phl_status
|
|
phl_chanctx_switch(struct phl_info_t *phl_info,
|
|
struct hw_band_ctl_t *dest, struct hw_band_ctl_t *src);
|
|
#endif
|
|
|
|
u8 rtw_phl_get_center_ch(struct rtw_chan_def *chan_def);
|
|
int rtw_phl_bch2freq(enum band_type band, int ch);
|
|
bool rtw_phl_bchbw_to_freq_range(enum band_type band, u8 ch
|
|
, enum channel_width bw, enum chan_offset offset, u32 *hi, u32 *lo);
|
|
u8
|
|
rtw_phl_get_operating_class(
|
|
struct rtw_chan_def chan_def
|
|
);
|
|
|
|
bool
|
|
rtw_phl_get_chandef_from_operating_class(
|
|
u8 channel,
|
|
u8 operating_class,
|
|
struct rtw_chan_def *chan_def
|
|
);
|
|
|
|
#ifdef CONFIG_PHL_CHSWOFLD
|
|
void rtw_phl_set_chsw_ofld_info(struct rtw_phl_com_t *phl_com,
|
|
bool chsw_ofld_en, bool rf_reload, bool skip_normal_watchdog);
|
|
#endif
|
|
|
|
#endif /*_PHL_CHANA_H_*/
|