diff options
author | 2019-12-18 11:33:05 +0100 | |
---|---|---|
committer | 2019-12-18 12:17:10 -0800 | |
commit | 504723af0d85434be5fb6f2dde0b62644a7f1ead (patch) | |
tree | 600f370e586416d0d7d74b1c4d785205a1f367e3 /include/linux/stmmac.h | |
parent | Merge branch 'stmmac-next' (diff) | |
download | linux-504723af0d85434be5fb6f2dde0b62644a7f1ead.tar.gz linux-504723af0d85434be5fb6f2dde0b62644a7f1ead.tar.bz2 linux-504723af0d85434be5fb6f2dde0b62644a7f1ead.zip |
net: stmmac: Add basic EST support for GMAC5+
Adds the support for EST in GMAC5+ cores. This feature allows to offload
scheduling of queues opening time to the IP.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index d4bcd9387136..0531afa9b21e 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -109,6 +109,18 @@ struct stmmac_axi { bool axi_rb; }; +#define EST_GCL 1024 +struct stmmac_est { + int enable; + u32 btr_offset[2]; + u32 btr[2]; + u32 ctr[2]; + u32 ter; + u32 gcl_unaligned[EST_GCL]; + u32 gcl[EST_GCL]; + u32 gcl_size; +}; + struct stmmac_rxq_cfg { u8 mode_to_use; u32 chan; @@ -139,6 +151,7 @@ struct plat_stmmacenet_data { struct device_node *phylink_node; struct device_node *mdio_node; struct stmmac_dma_cfg *dma_cfg; + struct stmmac_est *est; int clk_csr; int has_gmac; int enh_desc; |