diff options
| author | Jeff Johnson <jjohnson@qca.qualcomm.com> | 2014-04-17 14:48:22 -0700 |
|---|---|---|
| committer | Pitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com> | 2014-04-22 11:48:42 +0530 |
| commit | 5791dcfd40ce2efe22fe6dd807db37c5a1d68b5d (patch) | |
| tree | beb1b56e2fa907d732b3cf482bcccc019b3fabb4 | |
| parent | d5258512464041cf43a6f34f579bc2ebf13d472c (diff) | |
qcacld: vos: Remove obsolete vos_power code
The APIs exposed by vos_power are not applicable to the current
driver, so remove all references to them to help clean up the
codebase.
Change-Id: Ie0641bb9612f1afcb4af690f9ae28b44900d0d96
CRs-fixed: 651119
| -rw-r--r-- | CORE/VOSS/inc/vos_power.h | 601 | ||||
| -rw-r--r-- | CORE/VOSS/src/vos_power.c | 676 | ||||
| -rw-r--r-- | CORE/VOSS/src/vos_sched.c | 5 | ||||
| -rw-r--r-- | CORE/VOSS/src/vos_sched.h | 5 | ||||
| -rw-r--r-- | Kbuild | 1 |
5 files changed, 1 insertions, 1287 deletions
diff --git a/CORE/VOSS/inc/vos_power.h b/CORE/VOSS/inc/vos_power.h deleted file mode 100644 index 8b620b1a6d50..000000000000 --- a/CORE/VOSS/inc/vos_power.h +++ /dev/null @@ -1,601 +0,0 @@ -/* - * Copyright (c) 2014 The Linux Foundation. All rights reserved. - * - * Previously licensed under the ISC license by Qualcomm Atheros, Inc. - * - * - * Permission to use, copy, modify, and/or distribute this software for - * any purpose with or without fee is hereby granted, provided that the - * above copyright notice and this permission notice appear in all - * copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE - * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL - * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR - * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER - * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* - * This file was originally distributed by Qualcomm Atheros, Inc. - * under proprietary terms before Copyright ownership was assigned - * to the Linux Foundation. - */ - -#ifndef _VOS_POWER_H_ -#define _VOS_POWER_H_ - -/*! - @file - vos_power.h - - @brief - This is the interface to VOSS power APIs using for power management - of the WLAN Libra module from the MSM PMIC. These implementation of - these APIs is very target dependent, also these APIs should only be - used when the WLAN Libra module is powered from the MSM PMIC and not - from an external independent power source - -*/ - -/*=========================================================================== - - EDIT HISTORY FOR MODULE - -This section contains comments describing changes made to the module. -Notice that changes are listed in reverse chronological order. - -$Header: $ - -when who what, where, why --------- --- ---------------------------------------------------------- -01/20/09 rg Initial creation (based on Henri's slides) -===========================================================================*/ - -/*=========================================================================== - - INCLUDE FILES - -===========================================================================*/ -#include "vos_api.h" - -/*=========================================================================== - - DEFINITIONS AND TYPES - -===========================================================================*/ -typedef enum -{ - VOS_CHIP_RESET_CMD53_FAILURE, /* Reset Chip due to CMD53 Failure */ - VOS_CHIP_RESET_FW_EXCEPTION, /* Reset Chip due to FW Failure */ - VOS_CHIP_RESET_MUTEX_READ_FAILURE, /* Reset Chip due to Mutex Read Failure */ - VOS_CHIP_RESET_MIF_EXCEPTION, /* Reset Chip due to MAC exception e.g. BMU fatal, MIF error */ - VOS_CHIP_RESET_UNKNOWN_EXCEPTION /* Reset Chip due to any other exception */ -}vos_chip_reset_reason_type; - -typedef enum -{ - VOS_CALL_SYNC, /* operation is synchronous */ - VOS_CALL_ASYNC /* operation is asynchronous */ - -} vos_call_status_type; - -typedef v_VOID_t (*vos_power_cb_type) -( - v_PVOID_t user_data, /* user cookie */ - VOS_STATUS result /* result of operation: - VOS_STATUS_SUCCESS for success - VOS_STATUS_E_FAILURE for failure */ -); - -/*=========================================================================== - - FUNCTION PROTOTYPES - -===========================================================================*/ - -/** - @brief vos_chipPowerUp() - This API will power up the Libra chip - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - The Libra SDIO core will have been initialized if the operation completes - successfully - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipPowerUp -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipPowerDown() - This API will power down the Libra chip - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipPowerDown -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipReset() - This API will reset the Libra chip - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - A hard reset will involve a powerDown followed by a PowerUp; a soft reset - can potentially be accomplished by writing to some device registers - - The Libra SDIO core will have been initialized if the operation completes - successfully - - @param status [out] : whether this operation will complete sync or async - @param soft [in] : VOS_TRUE if a soft reset is desired - VOS_FALSE for a hard reset i.e. powerDown followed by powerUp - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_NOSUPPORT - soft reset asked for but not supported - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipReset -( - vos_call_status_type* status, - v_BOOL_t soft, - vos_power_cb_type callback, - v_PVOID_t user_data, - vos_chip_reset_reason_type reason -); - -/** - @brief vos_chipVoteOnPASupply() - This API will power up the PA supply - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnPASupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipVoteOffPASupply() - This API will vote to turn off the - PA supply. Even if we succeed in voting, there is a chance PA supply will not - be turned off. This will be treated the same as a failure. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffPASupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipAssertDeepSleep() - This API will assert the deep - sleep signal to Libra - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipAssertDeepSleep -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipDeAssertDeepSleep() - This API will de-assert the deep sleep - signal to Libra - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipDeAssertDeepSleep -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipVoteOnRFSupply() - This API will power up the RF supply - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnRFSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipVoteOffRFSupply() - This API will vote to turn off the - RF supply. Even if we succeed in voting, there is a chance RF supply will not - be turned off as RF rails could be shared with other modules (outside WLAN) - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffRFSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); -/** - @brief vos_chipVoteOnBBAnalogSupply() - This API will power up the I/P voltage - used by Base band Analog. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnBBAnalogSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipVoteOffBBAnalogSupply() - This API will vote off the BB Analog supply. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffBBAnalogSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); -/** - @brief vos_chipVoteOnXOBuffer() - This API will vote to turn on the XO buffer from - PMIC. This API will be used when Libra uses the TCXO from PMIC on the MSM - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnXOBuffer -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipVoteOffXOBuffer() - This API will vote off PMIC XO buffer. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffXOBuffer -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -); - -/** - @brief vos_chipVoteXOCore() - This API will FORCE vote ON PMIC XO CORE. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - @param force_enable[in] : user supplied input for turning ON/OFF Xo Core - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteXOCore -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data, - v_BOOL_t force_enable -); - - -/** - @brief vos_chipVoteFreqFor1p3VSupply() - This API will vote for frequency for 1.3V RF supply. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - EVM issue is observed with 1.6Mhz freq for 1.3V supply in wlan standalone case. - During concurrent operation (e.g. WLAN and WCDMA) this issue is not observed. - To workaround, wlan will vote for 3.2Mhz during startup and will vote for 1.6Mhz - during exit. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - @param freq [in] : Frequency for 1.3V Supply for which WLAN driver needs to vote for. - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteFreqFor1p3VSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data, - v_U32_t freq -); - - -#endif /* _VOS_POWER_H_ */ diff --git a/CORE/VOSS/src/vos_power.c b/CORE/VOSS/src/vos_power.c deleted file mode 100644 index 7c05c6e0d426..000000000000 --- a/CORE/VOSS/src/vos_power.c +++ /dev/null @@ -1,676 +0,0 @@ -/* - * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved. - * - * Previously licensed under the ISC license by Qualcomm Atheros, Inc. - * - * - * Permission to use, copy, modify, and/or distribute this software for - * any purpose with or without fee is hereby granted, provided that the - * above copyright notice and this permission notice appear in all - * copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE - * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL - * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR - * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER - * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* - * This file was originally distributed by Qualcomm Atheros, Inc. - * under proprietary terms before Copyright ownership was assigned - * to the Linux Foundation. - */ - -/*! - @file - vos_power.c - - @brief - This is the interface to VOSS power APIs using for power management - of the WLAN Libra module from the MSM PMIC. These implementation of - these APIs is very target dependent, also these APIs should only be - used when the WLAN Libra module is powered from the MSM PMIC and not - from an external independent power source - -*/ - -/*=========================================================================== - - EDIT HISTORY FOR MODULE - -This section contains comments describing changes made to the module. -Notice that changes are listed in reverse chronological order. - -$Header: $ - -when who what, where, why --------- --- ---------------------------------------------------------- - -===========================================================================*/ - -/*=========================================================================== - - INCLUDE FILES - -===========================================================================*/ -#include <vos_power.h> -#include <vos_sched.h> - -//To work around issues of fail to turn WIFI back on after turning it off -#define VOS_PWR_WIFI_ON_OFF_HACK -#ifdef VOS_PWR_WIFI_ON_OFF_HACK -#define VOS_PWR_SLEEP(ms) msleep(ms) -#else -#define VOS_PWR_SLEEP(ms) -#endif - -/*=========================================================================== - - DEFINITIONS AND TYPES - -===========================================================================*/ - -#define CHIP_POWER_ON 1 -#define CHIP_POWER_OFF 0 - -// SDIO Config Cycle Clock Frequency -#define WLAN_LOW_SD_CONFIG_CLOCK_FREQ 400000 - -/*=========================================================================== - - FUNCTION PROTOTYPES - -===========================================================================*/ - -/** - @brief vos_chipPowerUp() - This API will power up the Libra chip - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - The Libra SDIO core will have been initialized if the operation completes - successfully - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipPowerUp -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipPowerDown() - This API will power down the Libra chip - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipPowerDown -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipReset() - This API will reset the Libra chip - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - A hard reset will involve a powerDown followed by a PowerUp; a soft reset - can potentially be accomplished by writing to some device registers - - The Libra SDIO core will have been initialized if the operation completes - successfully - - @param status [out] : whether this operation will complete sync or async - @param soft [in] : VOS_TRUE if a soft reset is desired - VOS_FALSE for a hard reset i.e. powerDown followed by powerUp - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_NOSUPPORT - soft reset asked for but not supported - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipReset -( - vos_call_status_type* status, - v_BOOL_t soft, - vos_power_cb_type callback, - v_PVOID_t user_data, - vos_chip_reset_reason_type reason -) -{ - VOS_STATUS vstatus; - vstatus = vos_watchdog_chip_reset(reason); - return vstatus; -} - - -/** - @brief vos_chipVoteOnPASupply() - This API will power up the PA supply - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnPASupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - - -/** - @brief vos_chipVoteOffPASupply() - This API will vote to turn off the - PA supply. Even if we succeed in voting, there is a chance PA supply will not - be turned off. This will be treated the same as a failure. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffPASupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - - -/** - @brief vos_chipAssertDeepSleep() - This API will assert the deep - sleep signal to Libra - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipAssertDeepSleep -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - - -/** - @brief vos_chipDeAssertDeepSleep() - This API will de-assert the deep sleep - signal to Libra - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipDeAssertDeepSleep -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipExitDeepSleepVREGHandler() - This API will initialize the required VREG - after exit from deep sleep. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipExitDeepSleepVREGHandler -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteOnRFSupply() - This API will power up the RF supply - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnRFSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteOffRFSupply() - This API will vote to turn off the - RF supply. Even if we succeed in voting, there is a chance RF supply will not - be turned off as RF rails could be shared with other modules (outside WLAN) - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffRFSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteOnBBAnalogSupply() - This API will power up the I/P voltage - used by Base band Analog. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnBBAnalogSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteOffBBAnalogSupply() - This API will vote off the BB Analog supply. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffBBAnalogSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteOnXOBuffer() - This API will vote to turn on the XO buffer from - PMIC. This API will be used when Libra uses the TCXO from PMIC on the MSM - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOnXOBuffer -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteOffXOBuffer() - This API will vote off PMIC XO buffer. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteOffXOBuffer -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data -) -{ - return VOS_STATUS_SUCCESS; -} - -/** - @brief vos_chipVoteXOCore - This API will vote PMIC XO Core. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - @param force_enable [in] : Force enable XO CORE or not - - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteXOCore -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data, - v_BOOL_t force_enable -) -{ - - return VOS_STATUS_SUCCESS; -} - - -/** - @brief vos_chipVoteFreqFor1p3VSupply() - This API will vote for frequency for 1.3V RF supply. - - This operation may be asynchronous. If so, the supplied callback will - be invoked when operation is complete with the result. The callback will - be called with the user supplied data. If the operation is known to be - sync, there is no need to supply a callback and user data. - - EVM issue is observed with 1.6Mhz freq for 1.3V supply in wlan standalone case. - During concurrent operation (e.g. WLAN and WCDMA) this issue is not observed. - To workaround, wlan will vote for 3.2Mhz during startup and will vote for 1.6Mhz - during exit. - - @param status [out] : whether this operation will complete sync or async - @param callback [in] : user supplied callback invoked when operation completes - @param user_data [in] : user supplied context callback is called with - @param freq [in] : Frequency for 1.3V Supply for which WLAN driver needs to vote for. - @return - VOS_STATUS_E_INVAL - status is NULL - VOS_STATUS_E_FAULT - the operation needs to complete async and a callback - and user_data has not been specified (status will be - set to VOS_CALL_ASYNC) - VOS_STATUS_E_ALREADY - operation needs to complete async but another request - is already in progress (status will be set to VOS_CALL_ASYNC) - VOS_STATUS_E_FAILURE - operation failed (status will be set appropriately) could be - because the voting algorithm decided not to power down PA - VOS_STATUS_SUCCESS - operation completed successfully if status is SYNC (will be set) - OR operation started successfully if status is ASYNC (will be set) - -*/ -VOS_STATUS vos_chipVoteFreqFor1p3VSupply -( - vos_call_status_type* status, - vos_power_cb_type callback, - v_PVOID_t user_data, - v_U32_t freq -) -{ - return VOS_STATUS_SUCCESS; -} diff --git a/CORE/VOSS/src/vos_sched.c b/CORE/VOSS/src/vos_sched.c index 32a83cfbb635..3abb6569e881 100644 --- a/CORE/VOSS/src/vos_sched.c +++ b/CORE/VOSS/src/vos_sched.c @@ -1714,11 +1714,6 @@ VOS_STATUS vos_watchdog_close ( v_PVOID_t pVosContext ) return VOS_STATUS_SUCCESS; } /* vos_watchdog_close() */ -VOS_STATUS vos_watchdog_chip_reset ( vos_chip_reset_reason_type reason ) -{ - return VOS_STATUS_SUCCESS; -} /* vos_watchdog_chip_reset() */ - /*--------------------------------------------------------------------------- \brief vos_sched_init_mqs: Initialize the vOSS Scheduler message queues The \a vos_sched_init_mqs() function initializes the vOSS Scheduler diff --git a/CORE/VOSS/src/vos_sched.h b/CORE/VOSS/src/vos_sched.h index 0b7059432611..6dc346c027ff 100644 --- a/CORE/VOSS/src/vos_sched.h +++ b/CORE/VOSS/src/vos_sched.h @@ -72,7 +72,7 @@ #ifdef WLAN_OPEN_SOURCE #include <linux/wakelock.h> #endif -#include <vos_power.h> +#include <vos_mq.h> #ifdef QCA_WIFI_2_0 #include <adf_os_types.h> #endif @@ -330,8 +330,6 @@ typedef struct _VosWatchdogContext v_BOOL_t resetInProgress; - vos_chip_reset_reason_type reason; - /* Lock for preventing multiple reset being triggered simultaneously */ spinlock_t wdLock; @@ -646,7 +644,6 @@ void vos_sched_deinit_mqs (pVosSchedContext pSchedContext); void vos_sched_flush_mc_mqs (pVosSchedContext pSchedContext); void vos_sched_flush_tx_mqs (pVosSchedContext pSchedContext); void vos_sched_flush_rx_mqs (pVosSchedContext pSchedContext); -VOS_STATUS vos_watchdog_chip_reset ( vos_chip_reset_reason_type reason ); void clearWlanResetReason(void); void vos_timer_module_init( void ); @@ -624,7 +624,6 @@ VOSS_OBJS := $(VOSS_SRC_DIR)/vos_api.o \ $(VOSS_SRC_DIR)/vos_mq.o \ $(VOSS_SRC_DIR)/vos_nvitem.o \ $(VOSS_SRC_DIR)/vos_packet.o \ - $(VOSS_SRC_DIR)/vos_power.o \ $(VOSS_SRC_DIR)/vos_sched.o \ $(VOSS_SRC_DIR)/vos_threads.o \ $(VOSS_SRC_DIR)/vos_timer.o \ |
