summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice.h
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2023-09-08 23:37:14 +0200
committerTony Nguyen <anthony.l.nguyen@intel.com>2023-09-18 19:46:11 +0200
commit42d40bb21e332151da6fb689bf7d4af8195866ed (patch)
treef4071a87e49c3f360a2b8aa76148c1d6566cfedc /drivers/net/ethernet/intel/ice/ice.h
parentice: fix pin assignment for E810-T without SMA control (diff)
downloadlinux-42d40bb21e332151da6fb689bf7d4af8195866ed.tar.xz
linux-42d40bb21e332151da6fb689bf7d4af8195866ed.zip
ice: introduce ice_pf_src_tmr_owned
Add ice_pf_src_tmr_owned() macro to check the function capability bit indicating if the current function owns the PTP hardware clock. This is slightly shorter than the more verbose access via hw.func_caps.ts_func_info.src_tmr_owned. Use this where possible rather than open coding its equivalent. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice.h')
-rw-r--r--drivers/net/ethernet/intel/ice/ice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h
index 04665aff2234..d30ae39c19f0 100644
--- a/drivers/net/ethernet/intel/ice/ice.h
+++ b/drivers/net/ethernet/intel/ice/ice.h
@@ -196,6 +196,8 @@
#define ice_pf_to_dev(pf) (&((pf)->pdev->dev))
+#define ice_pf_src_tmr_owned(pf) ((pf)->hw.func_caps.ts_func_info.src_tmr_owned)
+
enum ice_feature {
ICE_F_DSCP,
ICE_F_PHY_RCLK,