qcacmn: Add PTP timestamp socket options support(cdp part)
Add tsf64 enable/disable related functions and definitions. Change-Id: Ieea0d8f905eb57629d279f8da0e811857b760b1f CRs-Fixed: 2454513
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2017, 2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -384,4 +384,35 @@ cdp_cfg_get_peer_unmap_conf_support(ol_txrx_soc_handle soc)
|
||||
return soc->ops->cfg_ops->get_peer_unmap_conf_support();
|
||||
}
|
||||
|
||||
static inline void
|
||||
cdp_cfg_set_tx_compl_tsf64(ol_txrx_soc_handle soc,
|
||||
uint8_t val)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
dp_debug("invalid instance");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!soc->ops->cfg_ops ||
|
||||
!soc->ops->cfg_ops->set_tx_compl_tsf64)
|
||||
return;
|
||||
|
||||
soc->ops->cfg_ops->set_tx_compl_tsf64(val);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
cdp_cfg_get_tx_compl_tsf64(ol_txrx_soc_handle soc)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
dp_debug("invalid instance");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!soc->ops->cfg_ops ||
|
||||
!soc->ops->cfg_ops->get_tx_compl_tsf64)
|
||||
return false;
|
||||
|
||||
return soc->ops->cfg_ops->get_tx_compl_tsf64();
|
||||
}
|
||||
|
||||
#endif /* _CDP_TXRX_CFG_H_ */
|
||||
|
Reference in New Issue
Block a user