diff options
author | Artem Panfilov <panfilov.artyom@gmail.com> | 2019-01-20 19:05:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-23 04:37:04 +0300 |
commit | d6228b7cdd6e790e6c21a844b9b3ab35d01a1974 (patch) | |
tree | dd0a5ce7a189848d14e58973e08124512276560a /drivers/net/ethernet/stmicro/stmmac/stmmac.h | |
parent | bbc318f6248e6da85cc9e2b15ded854654b56bf7 (diff) | |
download | linux-d6228b7cdd6e790e6c21a844b9b3ab35d01a1974.tar.xz |
net: stmmac: implement the SIOCGHWTSTAMP ioctl
This patch adds support for the SIOCGHWTSTAMP ioctl which enables user
processes to read the current hwtstamp_config settings
non-destructively.
Signed-off-by: Artem Panfilov <panfilov.artyom@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 63e1064b27a2..f9b42b0c20f4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h @@ -28,6 +28,7 @@ #include <linux/pci.h> #include "common.h" #include <linux/ptp_clock_kernel.h> +#include <linux/net_tstamp.h> #include <linux/reset.h> struct stmmac_resources { @@ -174,6 +175,7 @@ struct stmmac_priv { unsigned int mode; unsigned int chain_mode; int extend_desc; + struct hwtstamp_config tstamp_config; struct ptp_clock *ptp_clock; struct ptp_clock_info ptp_clock_ops; unsigned int default_addend; |