summaryrefslogtreecommitdiff
path: root/backport/compat
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@kpanic.de>2014-01-29 10:19:05 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2014-02-01 00:31:05 +0100
commitb3c578eba470126a5cda33275b26adb841b803ae (patch)
treeb9a08efee376eba6a0a20fca5d155efc0b9a570a /backport/compat
parent8e146028ec1281bb5bad65e66aff2f8d520d981d (diff)
backports: igb fixes for linux-3.4
- add struct timestamp_event_queue - add struct ptp_clock - add ptp_clock_index() - add patches/collateral-evolutions/network/84-ethernet/0007-igb_ethtool_ops.patch Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/compat')
-rw-r--r--backport/compat/compat-3.5.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/backport/compat/compat-3.5.c b/backport/compat/compat-3.5.c
index 95f52b98..f9590d73 100644
--- a/backport/compat/compat-3.5.c
+++ b/backport/compat/compat-3.5.c
@@ -12,6 +12,7 @@
#include <linux/highuid.h>
#include <linux/ktime.h>
#include <linux/hrtimer.h>
+#include <linux/ptp_clock_kernel.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
#include <linux/device.h>
@@ -64,3 +65,11 @@ int overflowgid = DEFAULT_OVERFLOWGID;
EXPORT_SYMBOL_GPL(overflowuid);
EXPORT_SYMBOL_GPL(overflowgid);
#endif
+
+#ifdef CONFIG_PTP_1588_CLOCK
+int ptp_clock_index(struct ptp_clock *ptp)
+{
+ return ptp->index;
+}
+EXPORT_SYMBOL(ptp_clock_index);
+#endif /* CONFIG_PTP_1588_CLOCK */