Merge tag 'riscv-firmware-for-v6.9' of https://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / include / linux / net_tstamp.h
index bb289c2..eb01c37 100644 (file)
@@ -5,6 +5,11 @@
 
 #include <uapi/linux/net_tstamp.h>
 
+enum hwtstamp_source {
+       HWTSTAMP_SOURCE_NETDEV,
+       HWTSTAMP_SOURCE_PHYLIB,
+};
+
 /**
  * struct kernel_hwtstamp_config - Kernel copy of struct hwtstamp_config
  *
@@ -15,8 +20,8 @@
  *     a legacy implementation of a lower driver
  * @copied_to_user: request was passed to a legacy implementation which already
  *     copied the ioctl request back to user space
- * @source: indication whether timestamps should come from software, the netdev
- *     or from an attached phylib PHY
+ * @source: indication whether timestamps should come from the netdev or from
+ *     an attached phylib PHY
  *
  * Prefer using this structure for in-kernel processing of hardware
  * timestamping configuration, over the inextensible struct hwtstamp_config
@@ -28,7 +33,7 @@ struct kernel_hwtstamp_config {
        int rx_filter;
        struct ifreq *ifr;
        bool copied_to_user;
-       enum timestamping_layer source;
+       enum hwtstamp_source source;
 };
 
 static inline void hwtstamp_config_to_kernel(struct kernel_hwtstamp_config *kernel_cfg,