qcacmn: Add API to read tsf time
Add API to read tsf time from scratch registers. Change-Id: If736c31f9ae522a9f853e7b83b6b8a61cad990da CRs-Fixed: 3287544
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
b8f5d7c27a
commit
163dd20054
@@ -2905,4 +2905,29 @@ cdp_enable_mon_reap_timer(ol_txrx_soc_handle soc,
|
||||
return soc->ops->mon_ops->txrx_enable_mon_reap_timer(soc, source,
|
||||
enable);
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_get_tsf_time() - get tsf time
|
||||
* @soc: Datapath soc handle
|
||||
* @mac_id: mac_id
|
||||
* @tsf: pointer to update tsf value
|
||||
* @tsf_sync_soc_time: pointer to update tsf sync time
|
||||
*
|
||||
* Return: None.
|
||||
*/
|
||||
static inline void
|
||||
cdp_get_tsf_time(ol_txrx_soc_handle soc, uint32_t tsf_id, uint32_t mac_id,
|
||||
uint64_t *tsf, uint64_t *tsf_sync_soc_time)
|
||||
{
|
||||
if (!soc) {
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
return;
|
||||
}
|
||||
if (!soc->ops->cmn_drv_ops || !soc->ops->cmn_drv_ops->txrx_get_tsf_time)
|
||||
return;
|
||||
|
||||
soc->ops->cmn_drv_ops->txrx_get_tsf_time(soc, tsf_id, mac_id, tsf,
|
||||
tsf_sync_soc_time);
|
||||
}
|
||||
|
||||
#endif /* _CDP_TXRX_CMN_H_ */
|
||||
|
Reference in New Issue
Block a user