aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adi/bfin_mac.h
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2012-10-31 06:27:23 +0000
committerDavid S. Miller <davem@davemloft.net>2012-11-01 11:41:35 -0400
commitbc3c5f634de23ca767c2d04d356ddf5bbe2144e2 (patch)
treecb152135d7336f280762ed2aaa6450e6d9d4d688 /drivers/net/ethernet/adi/bfin_mac.h
parentbfin_mac: only advertise hardware time stamped when enabled. (diff)
downloadlinux-dev-bc3c5f634de23ca767c2d04d356ddf5bbe2144e2.tar.xz
linux-dev-bc3c5f634de23ca767c2d04d356ddf5bbe2144e2.zip
bfin_mac: replace sys time stamps with raw ones instead.
This patch replaces the sys time stamps and timecompare code with simple raw hardware time stamps in nanosecond resolution. The only tricky bit is to find a PTP Hardware Clock period slower than the input clock period and a power of two. Compile tested only. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Tested-by: Bob Liu <lliubbo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.h b/drivers/net/ethernet/adi/bfin_mac.h
index 960905c08223..57f042c3111c 100644
--- a/drivers/net/ethernet/adi/bfin_mac.h
+++ b/drivers/net/ethernet/adi/bfin_mac.h
@@ -11,8 +11,6 @@
#define _BFIN_MAC_H_
#include <linux/net_tstamp.h>
-#include <linux/clocksource.h>
-#include <linux/timecompare.h>
#include <linux/timer.h>
#include <linux/etherdevice.h>
#include <linux/bfin_mac.h>
@@ -94,9 +92,8 @@ struct bfin_mac_local {
struct mii_bus *mii_bus;
#if defined(CONFIG_BFIN_MAC_USE_HWSTAMP)
- struct cyclecounter cycles;
- struct timecounter clock;
- struct timecompare compare;
+ u32 addend;
+ unsigned int shift;
struct hwtstamp_config stamp_cfg;
#endif
};