aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adi/bfin_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/adi/bfin_mac.h')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.h b/drivers/net/ethernet/adi/bfin_mac.h
index 960905c08223..7a07ee07906b 100644
--- a/drivers/net/ethernet/adi/bfin_mac.h
+++ b/drivers/net/ethernet/adi/bfin_mac.h
@@ -11,8 +11,7 @@
11#define _BFIN_MAC_H_ 11#define _BFIN_MAC_H_
12 12
13#include <linux/net_tstamp.h> 13#include <linux/net_tstamp.h>
14#include <linux/clocksource.h> 14#include <linux/ptp_clock_kernel.h>
15#include <linux/timecompare.h>
16#include <linux/timer.h> 15#include <linux/timer.h>
17#include <linux/etherdevice.h> 16#include <linux/etherdevice.h>
18#include <linux/bfin_mac.h> 17#include <linux/bfin_mac.h>
@@ -94,10 +93,14 @@ struct bfin_mac_local {
94 struct mii_bus *mii_bus; 93 struct mii_bus *mii_bus;
95 94
96#if defined(CONFIG_BFIN_MAC_USE_HWSTAMP) 95#if defined(CONFIG_BFIN_MAC_USE_HWSTAMP)
97 struct cyclecounter cycles; 96 u32 addend;
98 struct timecounter clock; 97 unsigned int shift;
99 struct timecompare compare; 98 s32 max_ppb;
100 struct hwtstamp_config stamp_cfg; 99 struct hwtstamp_config stamp_cfg;
100 struct ptp_clock_info caps;
101 struct ptp_clock *clock;
102 int phc_index;
103 spinlock_t phc_lock; /* protects time lo/hi registers */
101#endif 104#endif
102}; 105};
103 106