diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-04-18 00:36:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-18 20:11:08 +0200 |
commit | 7c8e5141ca633ae6dc7489dc85cabcfed2144a2d (patch) | |
tree | 16ad0fc3d1a5cef8293a4e6037d5c30bd5e2b456 /drivers/net/ethernet/faraday/ftgmac100.h | |
parent | ftgmac100: Add ethtool n-way reset call (diff) | |
download | linux-7c8e5141ca633ae6dc7489dc85cabcfed2144a2d.tar.xz linux-7c8e5141ca633ae6dc7489dc85cabcfed2144a2d.zip |
ftgmac100: Add pause frames configuration and support
Hopefully my understanding of how the hardware works is correct,
as the documentation isn't completely clear. So far I have seen
no obvious issue. Pause seem to also work with NC-SI.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftgmac100.h')
-rw-r--r-- | drivers/net/ethernet/faraday/ftgmac100.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.h b/drivers/net/ethernet/faraday/ftgmac100.h index 97912c456e80..0653d8176e6a 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.h +++ b/drivers/net/ethernet/faraday/ftgmac100.h @@ -199,6 +199,13 @@ #define FTGMAC100_PHYDATA_MIIRDATA(phydata) (((phydata) >> 16) & 0xffff) /* + * Flow control register + */ +#define FTGMAC100_FCR_FC_EN (1 << 0) +#define FTGMAC100_FCR_FCTHR_EN (1 << 2) +#define FTGMAC100_FCR_PAUSE_TIME(x) (((x) & 0xffff) << 16) + +/* * Transmit descriptor, aligned to 16 bytes */ struct ftgmac100_txdes { |