On Mon, 2016-02-22 at 03:15 -0800, Christopher S. Hall wrote:
Modern Intel systems supports cross timestamping of the network
device
clock and Always Running Timer (ART) in hardware. This allows the
device time and system time to be precisely correlated. The timestamp
pair is returned through e1000e_phc_get_syncdevicetime() used by
get_system_device_crosststamp(). The hardware cross-timestamp result
is made available to applications through the PTP_SYS_OFFSET_PRECISE
ioctl which calls e1000e_phc_getcrosststamp().
Signed-off-by: Christopher S. Hall <redacted>
[jstultz: Reworked to use new interface, commit message tweaks]
Signed-off-by: John Stultz <redacted>
---
drivers/net/ethernet/intel/Kconfig | 9 +++
drivers/net/ethernet/intel/e1000e/defines.h | 5 ++
drivers/net/ethernet/intel/e1000e/ptp.c | 85
+++++++++++++++++++++++++++++
drivers/net/ethernet/intel/e1000e/regs.h | 4 ++
4 files changed, 103 insertions(+)
Acked-by: Jeff Kirsher <redacted>