qcacld-3.0: Move IPA stats and debug info API to IPA component

IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA stats and debug info  APIs to
the IPA component.

Change-Id: Ieb68a1579986c835f66c84e5e3b7aa2a4004383d
CRs-Fixed: 2177925
This commit is contained in:
Sravan Kumar Kairam
2018-03-07 18:57:41 +05:30
committed by nshrivas
parent b9a3f3dedc
commit 04a16084bf
8 changed files with 1457 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ void ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
/**
* ucfg_ipa_set_txrx_handle() - register pdev txrx handler
* @psoc: psoc handle
* @psoc: psoc obj
* @txrx_handle: data path pdev txrx handle
*
* Return: None
@@ -69,7 +70,7 @@ void ucfg_ipa_set_txrx_handle(struct wlan_objmgr_psoc *psoc,
/**
* ucfg_ipa_set_perf_level() - Set IPA perf level
* @pdev: Pdev obj handle
* @pdev: pdev obj
* @tx_packets: Number of packets transmitted in the last sample period
* @rx_packets: Number of packets received in the last sample period
*
@@ -78,6 +79,60 @@ void ucfg_ipa_set_txrx_handle(struct wlan_objmgr_psoc *psoc,
QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
uint64_t tx_packets, uint64_t rx_packets);
/**
* ucfg_ipa_uc_info() - Print IPA uC resource and session information
* @pdev: pdev obj
*
* Return: None
*/
void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev);
/**
* ucfg_ipa_uc_stat() - Print IPA uC stats
* @pdev: pdev obj
*
* Return: None
*/
void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev);
/**
* ucfg_ipa_uc_rt_debug_host_dump() - IPA rt debug host dump
* @pdev: pdev obj
*
* Return: None
*/
void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev);
/**
* ucfg_ipa_dump_info() - Dump IPA context information
* @pdev: pdev obj
*
* Return: None
*/
void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev);
/**
* ucfg_ipa_uc_stat_request() - Get IPA stats from IPA.
* @pdev: pdev obj
* @reason: STAT REQ Reason
*
* Return: None
*/
void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
uint8_t reason);
/**
* ucfg_ipa_uc_stat_query() - Query the IPA stats
* @pdev: pdev obj
* @ipa_tx_diff: tx packet count diff from previous tx packet count
* @ipa_rx_diff: rx packet count diff from previous rx packet count
*
* Return: None
*/
void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff);
#else
static inline bool ucfg_ipa_is_present(void)
@@ -109,5 +164,37 @@ QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
{
return QDF_STATUS_SUCCESS;
}
static inline
void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev)
{
}
static inline
void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev)
{
}
static inline
void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev)
{
}
static inline
void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev)
{
}
static inline
void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
uint8_t reason)
{
}
static inline
void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff)
{
}
#endif /* IPA_OFFLOAD */
#endif /* _WLAN_IPA_UCFG_API_H_ */