diff options
author | Barry Song <barry.song@analog.com> | 2010-05-18 00:19:40 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 00:19:40 (GMT) |
commit | fe92afedee23e1d91f0133360a24d2bf48270739 (patch) | |
tree | 20564c377f57af2a94644abcd18b953a6aba8c7c /drivers/net/bfin_mac.h | |
parent | ab6e3feba1f1bc3b9418b854da6f481408d243de (diff) | |
download | linux-fe92afedee23e1d91f0133360a24d2bf48270739.tar.xz |
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.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/bfin_mac.h b/drivers/net/bfin_mac.h index 052b5dc..87c454f 100644 --- a/drivers/net/bfin_mac.h +++ b/drivers/net/bfin_mac.h @@ -7,6 +7,12 @@ * * Licensed under the GPL-2 or later. */ +#ifndef _BFIN_MAC_H_ +#define _BFIN_MAC_H_ + +#include <linux/net_tstamp.h> +#include <linux/clocksource.h> +#include <linux/timecompare.h> #define BFIN_MAC_CSUM_OFFLOAD @@ -67,6 +73,15 @@ struct bfin_mac_local { struct phy_device *phydev; struct mii_bus *mii_bus; + +#if defined(CONFIG_BFIN_MAC_USE_HWSTAMP) + struct cyclecounter cycles; + struct timecounter clock; + struct timecompare compare; + struct hwtstamp_config stamp_cfg; +#endif }; extern void bfin_get_ether_addr(char *addr); + +#endif |