summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorThierry Reding2017-03-10 17:34:58 +0100
committerDavid S. Miller2017-03-13 07:35:20 +0100
commit11fbf811c8e8a11529214a494eab25e21ca86739 (patch)
tree003e80bff73a58ebd9ff3f144a3a1f068842c49b /drivers/net/ethernet/stmicro/stmmac/common.h
parentnet: stmmac: Check for DMA mapping errors (diff)
downloadkernel-qcow2-linux-11fbf811c8e8a11529214a494eab25e21ca86739.tar.gz
kernel-qcow2-linux-11fbf811c8e8a11529214a494eab25e21ca86739.tar.xz
kernel-qcow2-linux-11fbf811c8e8a11529214a494eab25e21ca86739.zip
net: stmmac: Parse FIFO sizes from feature registers
New version of this core encode the FIFO sizes in one of the feature registers. Use these sizes as default, but still allow device tree to override them for backwards compatibility. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 04d9245b7149..3ca36744007b 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -324,6 +324,9 @@ struct dma_features {
unsigned int number_tx_queues;
/* Alternate (enhanced) DESC mode */
unsigned int enh_desc;
+ /* TX and RX FIFO sizes */
+ unsigned int tx_fifo_size;
+ unsigned int rx_fifo_size;
};
/* GMAC TX FIFO is 8K, Rx FIFO is 16K */