Files
linux-nv-oot/drivers/net/wireless/realtek/rtl8852ce/phl/phl_watchdog.h
Shobek Attupurath 7dd632ff96 rtl8852ce: Add base driver v1.19.16.1-0-g1fe335ba1.20240815_PC
- 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>
2025-07-24 10:19:08 +00:00

69 lines
2.2 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_WATCHDOG_H_
#define _PHL_WATCHDOG_H_
#define WDOG_PERIOD 2000
enum watchdog_state {
WD_STATE_INIT,
WD_STATE_STARTED,
#ifdef CONFIG_POST_CORE_KEEP_ALIVE
WD_STATE_KEEPALIVE,
#endif
WD_STATE_STOP,
};
struct phl_watchdog {
_os_timer wdog_timer;
enum watchdog_state state;
/* Only sw statistics or sw behavior or trigger FG cmd */
void (*core_sw_wdog)(void *drv_priv);
#ifdef CONFIG_POST_CORE_KEEP_ALIVE
struct rtw_keep_alive_param klive_param;
void (*core_keep_alive)(void *drv_priv, struct rtw_keep_alive_param *klive);
#endif
/* I/O, tx behavior, request power, ... */
void (*core_hw_wdog)(void *drv_priv);
#ifdef PHL_WATCHDOG_REFINE
/* Only sw statistics or sw behavior, this is will be call before trigger next watchdog */
void (*core_post_sw_wdog)(void *drv_priv);
#endif
u16 period;
};
void
phl_watchdog_cmd_complete_hdl(struct phl_info_t *phl_info);
enum rtw_phl_status
phl_watchdog_hw_cmd_hdl(struct phl_info_t *phl_info, enum rtw_phl_status psts);
enum rtw_phl_status
phl_watchdog_sw_cmd_hdl(struct phl_info_t *phl_info, enum rtw_phl_status psts);
void rtw_phl_watchdog_start(void *phl);
void rtw_phl_watchdog_stop(void *phl);
#ifdef CONFIG_POST_CORE_KEEP_ALIVE
enum rtw_phl_status phl_keep_alive_hdl(struct phl_info_t *phl_info);
bool phl_wdog_state_is_keep_alive(struct phl_info_t *phl_info);
enum rtw_phl_status rtw_phl_set_wdog_state_keep_alive(void *phl,
bool enable, struct rtw_keep_alive_param *klive_param);
#endif
#ifdef CONFIG_FSM
void rtw_phl_watchdog_callback(void *phl);
#endif
#endif /*_PHL_WATCHDOG_H_*/