summaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorTan Tee Min <tee.min.tan@intel.com>2021-04-14 08:16:17 +0800
committerDavid S. Miller <davem@davemloft.net>2021-04-14 12:57:45 -0700
commitf4da56529da602010979e8497d1f02eaf5df8883 (patch)
treed052a0738def1cd83b584580ed7b030a29da0869 /include/linux/stmmac.h
parent945c6ff851d8cc41571a8bb5735fb40a925a7aa2 (diff)
downloadlinux-f4da56529da602010979e8497d1f02eaf5df8883.tar.gz
linux-f4da56529da602010979e8497d1f02eaf5df8883.tar.bz2
linux-f4da56529da602010979e8497d1f02eaf5df8883.zip
net: stmmac: Add support for external trigger timestamping
The Synopsis MAC controller supports auxiliary snapshot feature that allows user to store a snapshot of the system time based on an external event. This patch add supports to the above mentioned feature. Users will be able to triggered capturing the time snapshot from user-space using application such as testptp or any other applications that uses the PTP_EXTTS_REQUEST ioctl request. Cc: Richard Cochran <richardcochran@gmail.com> Signed-off-by: Tan Tee Min <tee.min.tan@intel.com> Co-developed-by: Wong Vee Khee <vee.khee.wong@linux.intel.com> Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r--include/linux/stmmac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index e338ef7abc00..97edb31d6310 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -238,6 +238,8 @@ struct plat_stmmacenet_data {
struct pci_dev *pdev;
bool has_crossts;
int int_snapshot_num;
+ int ext_snapshot_num;
+ bool ext_snapshot_en;
bool multi_msi_en;
int msi_mac_vec;
int msi_wol_vec;