Add definitions for timesync enabling.

Signed-off-by: Simei Su <simei...@intel.com>
---
 drivers/net/igc/base/igc_defines.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/net/igc/base/igc_defines.h 
b/drivers/net/igc/base/igc_defines.h
index 61964bc..dd7330a 100644
--- a/drivers/net/igc/base/igc_defines.h
+++ b/drivers/net/igc/base/igc_defines.h
@@ -795,6 +795,17 @@
 
 #define TSYNC_INTERRUPTS       TSINTR_TXTS
 
+/* Split Replication Receive Control */
+#define IGC_SRRCTL_TIMESTAMP           0x40000000
+#define IGC_SRRCTL_TIMER1SEL(timer)    (((timer) & 0x3) << 14)
+#define IGC_SRRCTL_TIMER0SEL(timer)    (((timer) & 0x3) << 17)
+
+/* Sample RX tstamp in PHY sop */
+#define IGC_TSYNCRXCTL_RXSYNSIG         0x00000400
+
+/* Sample TX tstamp in PHY sop */
+#define IGC_TSYNCTXCTL_TXSYNSIG         0x00000020
+
 /* TSAUXC Configuration Bits */
 #define TSAUXC_EN_TT0  (1 << 0)  /* Enable target time 0. */
 #define TSAUXC_EN_TT1  (1 << 1)  /* Enable target time 1. */
-- 
2.9.5

Reply via email to