aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.h
diff options
context:
space:
mode:
authorBarry Song <barry.song@analog.com>2010-05-17 20:19:40 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-17 20:19:40 -0400
commitfe92afedee23e1d91f0133360a24d2bf48270739 (patch)
tree20564c377f57af2a94644abcd18b953a6aba8c7c /drivers/net/bfin_mac.h
parentab6e3feba1f1bc3b9418b854da6f481408d243de (diff)
netdev: bfin_mac: add support for IEEE 1588 PTP
Newer on-chip MAC peripherals support IEEE 1588 PTP in the hardware, so extend the driver to support this functionality. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David S. Miller <davem@davemloft.net>
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