aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bfin_mac.h')
-rw-r--r--drivers/net/bfin_mac.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/bfin_mac.h b/drivers/net/bfin_mac.h
index 052b5dce3e3c..87c454fc0319 100644
--- a/drivers/net/bfin_mac.h
+++ b/drivers/net/bfin_mac.h
@@ -7,6 +7,12 @@
7 * 7 *
8 * Licensed under the GPL-2 or later. 8 * Licensed under the GPL-2 or later.
9 */ 9 */
10#ifndef _BFIN_MAC_H_
11#define _BFIN_MAC_H_
12
13#include <linux/net_tstamp.h>
14#include <linux/clocksource.h>
15#include <linux/timecompare.h>
10 16
11#define BFIN_MAC_CSUM_OFFLOAD 17#define BFIN_MAC_CSUM_OFFLOAD
12 18
@@ -67,6 +73,15 @@ struct bfin_mac_local {
67 73
68 struct phy_device *phydev; 74 struct phy_device *phydev;
69 struct mii_bus *mii_bus; 75 struct mii_bus *mii_bus;
76
77#if defined(CONFIG_BFIN_MAC_USE_HWSTAMP)
78 struct cyclecounter cycles;
79 struct timecounter clock;
80 struct timecompare compare;
81 struct hwtstamp_config stamp_cfg;
82#endif
70}; 83};
71 84
72extern void bfin_get_ether_addr(char *addr); 85extern void bfin_get_ether_addr(char *addr);
86
87#endif